Action not found

ruby-on-rails

Solution

You need to add a custom route pointing to the action 'calculator'. Something like this:

map.connect 'mycontroller/calculator', :controller => 'mycontroller', :action => 'calculator'

Problem

I want to show a simple HTML template, so I added a new empty action to my controller: ``` def calulator end ``` And created the view calculator.html.erb . Then added a link to it: ``` <%= link_to 'Calculator', {:controller => "mycontroller", :action => "calculator"} %> ``` When I click it my log shows the following error: ``` ActionController::UnknownAction (No action responded to show. Actions: calculator, create, destroy, edit, index, new, and update): ``` Why is looking for a "show" action ? I have map.resources for the controller, as I done it with scaffolding Any ideas?

Original source