The first problem is that Rails won’t let me add :only =>
[:index, :about]
However the bigger problem is that when following a link in an image
map I get the following error:
Unknown action
No action responded to show. Actions: about and index
Here is the relevant area tag:
As far as I can tell I should have a route for start/about using GET
however Rails is convinced I want the show method, which I am unaware
I was asking for.
As far as I can tell I should have a route for start/about using GET
however Rails is convinced I want the show method, which I am unaware
I was asking for.
Have you tried running ‘rake routes’ to see what routes you’ve actually
created?
Why don’t you start with that and then, maybe, ask something like
‘Here’s what I’ve done and what it’s created. What do I need to do to
create a route that will work with this area tag I want to use?’
Thanks guys that worked. I can also use only with a collection
route. However I’m still puzzled as to why only doesn’t work with a
member route does the syntax just need to be more exact for a member
route? For example something like :only =>
[:index, :start/:id/:about]?
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.