gaurav v bagga wrote:
> Hi,
> can you verify parameters to collection_select. Are they proper?
> 
> Regards,
> gaurav
> 
> On May 1, 2:19�pm, Bradley Herman <[email protected]>

After doing some testing, it would appear Rails is just having a major 
problem with my partial.  The parameters are fine, but something about 
having that code in a partial is throwing it off.  When I replace the 
current stuff with the exact same code that I have in my 
browse.html.haml layout, it messes up and gives me weird errors about 
arguments...


wrong number of arguments (0 for 1)

Extracted source (around line #4):

1: - if @models
2:   = form.collection_select :model_id, @models, :id, :name, :prompt => 
"Select Model"
3: - else
4:   = form.collection_select :model_id, Model.find(:all), :id, :name, 
{:prompt => "Select Model"}

If I leave "form." off, I get the "undefined method :map for :id:Symbol 
error" still.
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to