I want to show a simple HTML template, so I added a new blank action for my controller:
def calulator end
And created view calculator.html.erb. Then added the link:
<%= link_to 'Calculator', {:controller => "mycontroller", :action => "calculator"} %>
When I click on it, the following error is displayed in my log:
ActionController::UnknownAction (No action responded to show. Actions: calculator, create, destroy, edit, index, new, and update):
Why are you looking for a show action? I have map.resources for the controller since I did this using forests
Any ideas?
source share