I\'m trying to use radio buttons in my rails application.Currently the buttons are showing up on the page as expected, but the value is not being saved upon submission.I think the problem is actually
I can\'t figure out how to upgrade this code from Rails 2 to Rails 3: <% remote_form_for(item, :update => \'div_id\') do |f| %>
How do I pass a url on the form_for submit? I\'m trying to use one form with each buttons pointing to each controller actions, one is search and another one is create. Is it possible to have 2 submit
I have a very simple model/view but for some reason I can\'t seem to access the new record variable and therefore get the error:
I\'m adapting the authentication system from Rails 3 Tutorial by Michael Hartl to better learn about rails before (most likely) switching to a system like authlogic or devise. My authentication system
I have a model like this: class Search include Mongoid::Document embeds_many :terms accepts_nested_attributes_for :terms
I am working on a Rails project that requires preferences for diferent user types depending on which shool. Thus i have these models:
I have a <% @user.comments.each do |comment| %> and inside it is <%= form_for [????, Subcomment.new],:remote => true do |form| %>
In my Rails app I have a nested form_for in my show action. This form is the same as the one in the edit action, but it has different fields.
I have three resources: Jobs, Questions and Answers. The relationships are: Job has many questions; Question has many Answers.