welcome
On Wed, Feb 17, 2010 at 9:43 AM, Veena Jose <[email protected]> wrote:
> Bala wrote:
> > on Controller
> > ----------------------------
> >
> > def index
> > @categories = Category.find(:all)
> > end
> >
> > on View
> > ----------------------------------------
> > <%= select("post", "category_id", @categories.collect {|p| [ p.name,
> > p.id ]
> > }, {:include_blank => 'None'})%>
>
>
>
> Thank you so much.....Ur code exactly worked for me....
> --
> 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]<rubyonrails-talk%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>
--
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.