ruby on rails - Template is missing error -
i started programming ruby on rails , have problem.
this controller
def new_card @card = card.new end def create_card @card = card.new(params[:card]) if @card.save flash[:notice] = "card created" redirect_to :action => "card_information", :id => @card.id else render new_card_path end end def card_information @card = card.find(params[:id]) end
these view files:
(create_card)
= form_for @card, :url => create_card_path |f| .row .span3 = f.label "card name" = f.text_field :title %br/ .row .span3 = f.submit "submit", :class => "btn btn-primary"
card_information
.row .span12 %h3 = @card.title
and routes:
match 'card_information/:id' => 'home#card_information' match 'create_card' => 'home#create_card'
when try launch create card page have template missing error page showing up
Comments
Post a Comment