On Mar 19, 4:08 pm, Shandy Nantz <[email protected]>
wrote:
> I changed the find and still nada. Here is what I got now:
>
> <%= select( 'stuff', 'id', Stuff.find( :all, :conditions => ['account_id
> = ?', @account.id.to_s], :order => 'value ASC').collect{ |a| [a.value,
> a.id] }, { :include_blank => true, :selected => @user.stuff_profile })
> %>
>
> @user.stuff_profile is an id

Is it definitely an integer ? (ie "1" is != 1)

Fred
and when I look at the html there is an
> option field with that id as it's value, so it should find it and make
> it the selected option. I beginning to wonder if this is a bug in the
> helper?
> --
> Posted viahttp://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