Displaying 2 results from an estimated 2 matches for "plonski".
2011 Aug 06
7
Accessing datetime elements from hash passed to method
I''m passing hash (called ''params'') to a method. Some keys (one of them
is called ''starts_at'') in that hash have date as a value (taken from
datetime_select helper). I want to access the date elements like date
only or time only but I''m just out of ideas.
def self.new_meeting(params)
str = params[''starts_at(1i)'']
2011 Aug 09
4
Nesting select and text_field in radio_button
I''m creating my first Rails app and need an idea creating forms.
I have Meeting model with place attribute.
I want to have two fields for Meeting.place = one would be select with
places from other meetings or text_field if the place is being used
first time. User would be selecting radio_button of which field he has
used.
So is there any way to nest select and text_field within 2