I have a nested form ,and i want to include city_id in the stores model,is this <%= s.hidden_field :city_id, @city.id %> correct? If yes what do i add in the controller after that? If it is not
In my form I need my admin scope like this <%= form_for [:admin, @event], :html => {:multipart => true} do |f| %>
I\'m using the gem nested_form in a Rails 3.1 application. The problem is that when I click on the link generated by \"link_to_add\", it displays the partial twice, whereas it should display it just o
I have a helper called user_order which returns an instance of Order. Order accepts nested attributes for User and Address. My (abbreviated) form looks like this:
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\'m using nested_form for a situation where: Parent (climb) ==has_one==> Join Model (route_ascent) ==polymorphic has_many==> Children (route_step)
I am using the nested_form_for gem for the first time. I don\'t know if this is an issue or if I am using it wrong, but I am getting an \"undefined method nested_form_for\" error.
I am using hibernate3 in my java app to access sqlserver 2008 enterprise. The hibernate mapping uses composite id and when i try to load model it returns null. I spent days to resolve it but still no