I'm relative novice at RoR and I've just built my first application w/
o a tutorial that allows a user to login, buy products, and read/
create reviews about the product.
So the basic structure is like this......there is a layout page which
basically uses <% yield %> to show the product listings and the review
listings (listings/index and listings/review). This works fine.
The problem is making the login page(sessions/new) redirect tot he
listings/index page. So when submit is clicked to submit username and
password, a method called create is called and it can either redirect
back to the login( in the case that the username/pw is invalid) or
redirect to the "listings/index". In my config/routes.rb i've set the
"map.resources :listings" and used redirect_to new_listings_path and
redirect_to new_session_path+'?loginError=1' for the redirects. Both
cases worked fine. However, now the review link on the index page
which redirects to the review page no longer works
This is the error I am getting
No action responded to show
Now that I think about it don't see how the application was working at
all since the lisitings wasn't defined in the resources to begin
with. Anyone care to give insight or have any online references that
better explain the routes.rb file? Any help is much appreciated.