Displaying 3 results from an estimated 3 matches for "name_field".
2006 Jul 21
5
How to display data using helpers and collections
## application_helper.rb
def name_field(object, options = {} )
html = ""
html << "Title : " + select(object, ''title'')
html << "Given Names :" + text_field(object, ''given_names''
html << "Family Name :" + text_field(object, ''famil...
2005 May 17
2
Noob - ActionView::Helpers::FormOptionsHelper::select
Hi,
I''m just starting with Rails and i''m trying to do something like this:
<%= start_form_tag :action => ''add_user'', :id => @social_event_group %>
<%= select ''user'', ''id'' , User.find_all.collect {|u| [ u.login, u.id ]
}%></p>
<%= submit_tag "Add User" %>
<%= end_form_tag %>
2006 Nov 01
17
So how can I rewrite my app without using with_scope?
So, I hear that with_scope is going to be deprecated.
Which is a bit of a shame, given the stuff I''ve been writing recently.
I have a CMS with multiple clients. A ''client'' is essentially a
company, with multiple users. Content on the site belongs to a client
- content could be messages, images, schedules, etc etc. People
belonging to one client should not be able