Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Refinery 2.0 Routes
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Mike S  
View profile  
 More options May 15 2012, 11:29 am
From: Mike S <mskwa...@purdue.edu>
Date: Tue, 15 May 2012 08:29:15 -0700 (PDT)
Local: Tues, May 15 2012 11:29 am
Subject: Refinery 2.0 Routes
So I've added a couple custom routes to my config/routes.rb file. They
show up when I do a rake routes, but none of the work in my app.
Example:

Routes.rb

  mount Refinery::Core::Engine, :at => '/'

  root :to => 'pages#home'
  match 'cache' => 'application#clear_cache'
  match 'HowToLIVEUNITED' => 'application#flash_fix'

rake routes give me:

       refinery  /                          Refinery::Core::Engine
       root       /                          pages#home
       cache    /cache(.:format)    application#clear_cache
       HowToLIVEUNITED           /HowToLIVEUNITED(.:format)
application#flash_fix

But if I try to go to /cache or /HowToLIVEUNITED all I get is Sorry,
Page not found.

What's going on here?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.