Displaying 2 results from an estimated 2 matches for "models_control".
2006 Mar 01
1
observe_field question
...ve been working on it for a
couple days and can''t seem to figure out the correct way to structure my
observe_field call. The HTML and Javascript generated all appear
correct, but the AJAX call is never made. Below is the code I''m using
and any help would be much appreciated.
models_controller.rb
def display_compatible
render :partial => "compatible"
end
( Right now the _compatible.rhtml file contains a single HTML statement
just for testing. Going to localhost:3000/app/models/display_compatible
displays the test statement correctly. )
views/new.rhtml
<%= jav...
2005 Apr 20
1
default date in date_select?
Hi there,
I''m new to Rails -- started with this project just about five days ago
-- I''m re-building an in-house ordering tool, and it would be handy to
pre-populate a date_select field with a value two weeks from now. The
calculation isn''t the hard part, it''s getting date_select to
pre-populate itself.
Any suggestions?
Thanks,
--Jim