Cool but how abt accessing the models? Andy gave a solution but i want to see what others think
On 4/6/10, Peter Hickman <[email protected]> wrote: > All you need is access to the RAILS_ENV constant. For example this script > > -- x.rb-- > puts RAILS_ENV > ---- > > When run produces the following output: > > $ ruby script/runner -e production x.rb > production > $ ruby script/runner -e development x.rb > development > $ ruby script/runner -e test x.rb > test > > for any environment that you have defined. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- Sent from my mobile device Regards, Gordon Yeong In matters of style, swim with the current, In matters of principle, stand like a rock. - Thomas Jefferson Hope is tomorrow's veneer over today's disappointment. - Evan Esar I never argue with idiots anymore. They have brought me down to their levels and beaten me with their experience. - Gordon Yeong -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

