[Rails] Redirect www to non-www

2010-01-20 Thread Johnny Shi
How to redirect www to non-www? e.g redirect www.example.com to example.com Thanks Johnny -- 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 rubyonrails-t...@googlegroups.com. To unsubscribe from this gr

[Rails] binarylogic-searchlogic ~> 2.0 binarylogic-authlogic mbleigh-subdomain_fu

2010-01-17 Thread Johnny Shi
I am having problem starting my app, here's the error message, i am running Ubuntu 9.04 with Apache with Passenger: The application has exited during startup (i.e. during the evaluation of config/environment.rb). The error message can be found below. To solve this problem, please follow any instr

[Rails] time_zone_select

2010-01-10 Thread Johnny Shi
How does time_zone_select works? I have: <%= form.datetime_select :datetime, :default => Time.now %> all datetime are in UTC in the database, here is two questions: 1. how do I add the option for user to select time zone? how to user time_zone_select? 2. what is the proper way to handle that

[Rails] Re: set Time.zone to current user time zone

2010-01-10 Thread Johnny Shi
7;t really know. > > []'s > Rodrigo Dellacqua > > On Sun, Jan 10, 2010 at 8:31 PM, Johnny Shi wrote: > > I want to set the Time.zone to the user's current time zone, I don't > > want to store the timezone in user profile like many other solutions. > > Ho

[Rails] set Time.zone to current user time zone

2010-01-10 Thread Johnny Shi
I want to set the Time.zone to the user's current time zone, I don't want to store the timezone in user profile like many other solutions. How to do that? Thanks -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send

[Rails] Seeking best practise advise

2010-01-05 Thread Johnny Shi
I am doing this app, account - project - category orientated. Category can belong to an account (url: account.example.com/categories) or specific to a project (url: account.example.com/projects/1/ categories), my question is: 1. is this url structure the proper way to do it? 2. inside the category