[Rails] Re: need help on rails route

2011-01-30 Thread justinbaker
Is it in [rails_root]/public/blog? I would recommend reading this http://codelikezell.com/deploying-wordpress-with-rails-on-passenger. It should be exactly what you're looking for. On Jan 29, 4:23 am, nicolas wrote: > Hi Everyone > > I have a site that it is up and running. Now i need to include

[Rails] Re: Mysql issue with rails 3 and Ruby 1.9.2

2011-01-30 Thread justinbaker
Do you have Mysql installed? Not the gem, or the dll, but mysql.exe? If you have it installed, check your environment PATH. In cmd, try `mysql`. If it gives you `mysql is not recognized...`, then you need to install it. On Jan 30, 6:18 am, Selvaraj Subbaian wrote: > Hello, > > I am trying to ins

[Rails] Re: Access parent object instance variable

2011-01-30 Thread justinbaker
First off..this isn't valid ruby. class EventRoster{ @events = [] @event_occurrences = [] } try class EventRoster def initialize @events = [] @event_occurrences = [] end end On Jan 29, 7:51 pm, "Ellicks M." wrote: > Hi there, > > I have a class which looks like this: > > class E

[Rails] Re: Find User by Token

2011-01-30 Thread justinbaker
The problem is in the routes. The first match found will be what that url is routed to, so when you declared resources :users, it defines / users/:id to match users#show. Try this: Reg::Application.routes.draw do resources :users, :except => [:show] root :to => "users#new" match "/users/: