search for: submit_value

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

2006 Feb 21
2
Single table inheritance problem
...fferent types of users and while it basically works, my code is quite messy. I.e. i''ve got 2 forms, each for different type of user. To use the same rhtml files for creating and editing the user, i need to pass to the form file @action (which action should be performed on submit) and @submit_value (text on submit button) parameters and in case of edit action also pass :id => @user to the action. It must be done in every action in controller that renders a form. Would it be better (simpler for sure) to create 2 sets of forms, which would have all fields identical and only differ in act...