Displaying 2 results from an estimated 2 matches for "post_categori".
Did you mean:
post_category
2008 Sep 19
1
Help with best approach(fairly easy question)
...params[:category]])
elsif params[:user]
@posts = Posts.find(:all, :conditions => ["user_id = ?,
params[:user_id]])
elsif params[:tag]
.
.
.
end
2) Should I create different controllers with only an index action on
it (Create and other actions stay on the posts_controller):
post_categories controller? post_tags controller? user_posts
controller?
So, which approach should I use?
Thanks again,
Elioncho
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to thi...
2008 May 11
3
radio_button_tag and default checked option
Hi, I can''t get my radio button to be checked by default, here is what I
have:
<%= f.radio_button :gender, "male", :checked => ''true'' %><p>Male</p>
<%= f.radio_button :gender, "female" %><p>Female</p>
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received