ruby-on-rails-3.1
Rails flash :notice doesn't work
I have this code : def create login(params[:email], params[:password]) if current_user flash[:notice] = \"Welcom开发者_C百科e back #{current_user.email}\"[详细]
2023-04-11 18:33 分类:问答Alter an uploaded PDF file within a Rails application
I am working on a Rails application (Rails 3.1) and have the ability to upload a PDF file. The PDF file can then be downloaded by other users once they have logged in.[详细]
2023-04-11 18:26 分类:问答How do i access attributes in has_many :through relationship?
How do i access store name here?@deal instance can 开发者_如何学Pythonaccess perfectly item name,but when i try to access store name it gives me[详细]
2023-04-11 18:07 分类:问答Rails 3.1 - Active_admin and Checkboxes
This question is really two questions. Select all button - Active_admin uses formtastic to render forms, so I\'m going to ask in the context of formtastic. How would I create a button that selects a[详细]
2023-04-11 16:37 分类:问答How can I handle this type of multi level forms in rails
I am in rails 3.1. I have the following models class Tool < ActiveRecord::Base has_many :comments end[详细]
2023-04-11 16:35 分类:问答Signing out of App (that uses Devise) after Implementing Rails_admin (and moving to Rails 3.1)
UPDATE: /* I was able to fix the problem by setting up the asset pipeline as described in Railscasts #282*/[详细]
2023-04-11 15:05 分类:问答Ruby on Rails devise http://0.0.0.0:3000/users/sign_out gets routing error
routes.rb => Sendemail::Applicatio开发者_运维知识库n.routes.draw do devise_for :users get \"user/index\"[详细]
2023-04-11 14:34 分类:问答Generating a migration from model
I am a beginner in Ruby on Rails and following the below article:- http://guides.rubyonrails.org/migrations.html[详细]
2023-04-11 14:33 分类:问答Fields_for setting up form not working correcty with accepts_nested_attributes
I\'m sure that this is just a lack of experience on my part so bear with me. I have a model MenuItem that has a Price. Different item types (menu_items, products, events) can have prices.[详细]
2023-04-11 14:12 分类:问答Why is Asset Pipeline trying to compress my CSS twice (or not compressing at all)?
After upgrading our Compass-powered app to Rails 3.1.1.rc1 and Asset Pipeline, I\'ve started getting \"regexp buffer overflow\" error when trying to precompile stylesheets locally. I\'ve discovered th[详细]
2023-04-11 13:04 分类:问答