I\'m trying to make an app where a user can save goals, milestones for those goals, tasks for the milestones, and tasks for the goal itself. I\'m using polymorphic associations, but making a form to i
I\'m making an app with the following attributes, and I\'m working on a creating a single form to be able to save a goal, a goal\'s tasks, a goal\'s milestones, and a milestone\'s tasks.
I have this code in my view (for the \"debate\" class): <%= form_for(@debate) do |f| %> ... <%= f.label :proposition, :body %>
I am trying to DRY up a bunch of forms code that has a repeating set of fields appearing at the end of each form. I wrote a helper that wraps around the form_for rails helper. But I\'m starting to get
Trying to save data from a form to the database. Using the select_tag <%= select_tag :size, options_from_collection_for_select(@plan, \'name\', \'size\') %>
I think this question might have been asked before, but I honestly don\'t know how to search for it. Basically, when I do a render :action => \'edit\' in the update action in controller, somehow the
How do you handle multiple models in a form? I know that nested models exist, but I\'m not su开发者_JAVA技巧re if this is the same situation. Sorry, a bit new to Rails.
I have a form partial for a namespaced and nested resource (\"blog/posts/comments\") which so far has been a pain to get working properly. I managed to get it working for the \"开发者_C百科new\" and \
I have two models, Character and Statistic. Their relationship is Character has_one Statistic and Statistic belongs_to Character.
I have a form_for written in the following manner: <div class=\"field\"> <%= location.label :city %>