search for: save_list

Displaying 3 results from an estimated 3 matches for "save_list".

Did you mean: save_libs
2006 Apr 16
5
render :collection and default value
Hi all, I am having a lot of trouble to get the default value of text fields when they are generated by a partial from a collection. I have been on this for a whole week and I didnt find a single exemple on the internet of someone using a partial that generate text field with a default value. I cant believe that I am the only one having this problem. Anyone has an exemple they can show me?
2006 Apr 11
1
Default value in a Partial that use index
...= ?", @active_client.id] ) end ---------CONTROLER-------- Which call this view (removed irrelevant parts): ----------LIST.RHTML-------------- <p>listes des conceptes existants pour le client actif:<p/> <%= start_form_tag (:action =>"save_list")%> <%= render(:partial => "variation", :collection => @variations )%> <input type="submit" value="Sauvegarder" /> <%= end_form_tag %> -----------LIST.RHTML------------- with this partial: <p> concept:<%= h(variation.c...
2007 Jan 12
9
Nil object in E1 capture the order
...p/views/admin/checkout.rhtml where line #12 raised: You have a nil object when you didn''t expect it! You might have expected an instance of Array. The error occured while evaluating nil.include? Extracted source (around line #12): 9: <% form_for :list, :url => { :action => :save_list } do |form| %> 10: <p> 11: <label for="list_name">List Name:</label> 12: <!-- <%= form.text_field :name, :size => 40 %> --> 13: </p> I have a page with all the product listed. And I''m creating the list by choos...