I am fairly new to rails too but it looks to me that you need to mind your routes, unless you modified your config/routes.rb file and failed to mention it. As the routing is set up by default, your url is looking for an action in the admin controller, not the people_controller.
Eric On Oct 22, 12:50 pm, Yzack <[EMAIL PROTECTED]> wrote: > Hi everyone ! > I'm new on rails and insoshi > > I've created a new method, with same content than the "edit" method > in people_controller as : > > def edit_details > @person = Person.find(params[:id]) > respond_to do |format| > format.htm > end > end > > And i've created a new file view in views/people/ with this name : > edit_details.html.erb > In this file, i've simply copy and past the content from the edit.html > (for testing) > > but when i try to access it by this url > :http://localhost:3000/people/1-admin/edit_details > i've got this error : "Unknown action No action responded to 1- > admin" > > and when watching log , it seems there is inversion between action and > id : > "Parameters: {"action"=>"1-admin", "id"=>"edit_details", > "controller"=>"people"} (pid:3596)" > > yep, for the standard edit view it works well as : > Parameters: {"action"=>"edit", "id"=>"1-admin", > "controller"=>"people"} (pid:3596) > > Is anyone aware about my newbie misunderstanding please ? > > Many thanks. --~--~---------~--~----~------------~-------~--~----~ Insoshi developer site: http://dogfood.insoshi.com/ Insoshi documentation: http://docs.insoshi.com/ You received this message because you are subscribed to the Google Groups "Insoshi" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/insoshi?hl=en -~----------~----~----~----~------~----~------~--~---
