search for: request_holiday

Displaying 1 result from an estimated 1 matches for "request_holiday".

2006 Feb 16
1
Help with validation
...ve 2 problems: 1) The validation fails but I can''t get hold of the error message 2) I can''t get the form to redisplay the previously entered data for the user to correct. I have 2 controllers: user and holiday. A user can request a new holiday by filling in a form. I have a request_holiday method in the user controller. My request_holiday.rhtml sets up a form as follows: <%= start_form_tag :controller => ''holiday'', :action => ''new'' %> My holiday controller new method does the following: [CODE] def new @holiday = Holiday.new(@para...