[Rails] Re: what / when calls create function in an ActionController ?

2009-02-28 Thread MaD
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

[Rails] Re: what / when calls create function in an ActionController ?

2009-02-27 Thread Starr Horne
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

[Rails] Re: what / when calls create function in an ActionController ?

2009-02-27 Thread MaD
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| % %=

[Rails] Re: what / when calls create function in an ActionController ?

2009-02-27 Thread --- z...@m ---
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

[Rails] Re: what / when calls create function in an ActionController ?

2009-02-27 Thread --- z...@m ---
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