I have created a table containing all the fields which I wanted. In
other words, I customized my own form. But, I do not want the form to be
auto-generated. How do I put my customized form in the new.rhtml?
Course Details: |
|||
*Course Code: |
<%= text_field "course", "course_code", :size=>"5" %> | *Course Name: |
<%= text_field "course", "course_name", :size=>"30" %> |
*Programme Code: |
<%= text_field "course", "programme_code", :size=>"5" %> | *Programme Name: |
<%= text_field "course", "programme_name", :size=>"30" %> |
also, i handled errors in model>course.rb but it doesn’t come out as it
does using the default rails form.
help please!