how can i know weather it is called or not
set a debugger.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To
even deleting the create function , it shows no error but returns to
index page when submit button clicked . it seems that this function is
not called properly
Have you set up your routes.rb file?
SH
--~--~-~--~~~---~--~~
You received this message because you
http://api.rubyonrails.com/classes/ActionView/Helpers/FormHelper.html
example taken form the above link:
# Note: a @person variable will have been created in the controller.
# For example: @person = Person.new
% form_for :person, @person, :url = { :action = create } do |f|
%
%=
i tried % form_for :advertisement, @advertisment, :url = { :action
=
create }, :html = { :multipart = true } do |f| %
but the result is the same !
will on clicking the submit button automatically call the create
function?
how can i know weather it is called or not
My routes.db
ActionController::Routing::Routes.draw do |map|
map.resources :advertisements
map.root :controller = home
map.connect ':controller/:action/:id'
map.connect ':controller/:action/:id.:format'
end
--~--~-~--~~~---~--~~
You received this
5 matches
Mail list logo