[Rails] How to avoid Rails scaffold to place model into namespace

2010-09-26 Thread lexer
Hi guys, Rails 3 scaffold generator places model classes inside namespace. Example: rails generate scaffold admin/portfolio But I want only controllers and views to be placed inside admin namespace. How can I avoid that? Regards, Alexey Zakharov. -- You received this message because you

[Rails] Erb encoding problem

2010-08-26 Thread lexer
Hi guys, I'm using Rails 3. I want to display generated html fragment inside erb template %= divFoo Bar/div % Rails encodes div tags. If I'm correct in Rails 2 %=h cause encoding. Seems that it was changed in Rails 3. How can insert html fragment without encoding in Rails 3? Regards, Alexey.

[Rails] Re: Erb encoding problem

2010-08-26 Thread lexer
I've received an answer on stackoverflow: http://stackoverflow.com/questions/3573851/erb-encoding-problem-in-rails-3 On Aug 26, 3:44 pm, Peter Hickman peterhickman...@googlemail.com wrote: On 26 August 2010 10:38, lexer lexer@gmail.com wrote: Hi guys, I'm using Rails 3. I want

[Rails] Does Rails 3 provide time based caching?

2010-08-26 Thread lexer
Hi guys, I need a timebased caching of certain pages. Cache for certain page should be cleared each 15 minutes. Is that possible? In http://edgeguides.rubyonrails.org/caching_with_rails.html manual I see that there is only manual cache clear methods, such as expire_page or expire_action.

[Rails] How to use local javascript library for development and externally hosted for production?

2010-08-17 Thread lexer
Hi guys, I want to set up my RoR project to use local javascript library for development and externally hosted for production (for example jquery from google). How it could be achieved? Regards, Alexey Zakharov -- You received this message because you are subscribed to the Google Groups Ruby

[Rails] Re: How to use local javascript library for development and externally hosted for production?

2010-08-17 Thread lexer
Thanks guys. That was really helpful! -- 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 group, send email to