search for: chapter_form

Displaying 2 results from an estimated 2 matches for "chapter_form".

2009 Jun 20
0
AssociationTypeMismatch
...ss Modul < ActiveRecord::Base belongs_to :modulable, :polymorphic => true end class Chapter < ActiveRecord::Base has_many :moduls, :as => :modulable accepts_nested_attributes_for :moduls end New Page: ---------------- <h1>New chapter</h1> <% form_for @chapter do |chapter_form| %> <%= chapter_form.error_messages %> <% chapter_form.fields_for :moduls do |modul_form| %> <p> <%= modul_form.label :name %><br /> <%= modul_form.text_field :name %> </p> <p> <%= modul_form.label :alias %&gt...
2009 Aug 16
2
rails form_for submit button
Hi, Presently the submit button is coming as a button in below case. <% form_for @chapter do |chapter_form| %> ... labels ... text_areas.. <%= chapter_form.submit ''Create'' %> I want to build a custom button in CSS and show that instead of the button. Can anyone help me please?