Hi people. 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?