[Rails] rails 3 engine under dynamic scope

2011-06-04 Thread Tomas Celizna
hello, i have a rails 3 engine scoped dynamically like this: scope "/:locale" do mount MyEngine::Engine => '', :as => 'my_engine' end I can't seem to be able to set my own locale like this: my_engine.page_path(page, :locale => 'de') the path is generated like this: /en/page/12345?locale=de

[Rails] R3.1b1 - sharing assets

2011-05-08 Thread Tomas Celizna
Hello all, is there a way to share assets in Rails 3.1 beta1 between an app and an engine? It works locally, but not in production -- I guess because of the CSRF token? Thanks, T -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post t

Re: [Rails] Rails 3.1(beta1) + SASS + variables

2011-05-07 Thread Tomas Celizna
Yes, thank you! T -- 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-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For mo

[Rails] Rails 3.1(beta1) + SASS + variables

2011-05-06 Thread Tomas Celizna
Hello all, in Rails 3.1, is it possible to define global SASS variables (and mixins) that are shared across all *.css.scss files? I am able to define SASS variables, yet they seemed to be scoped only within each individual file … On a side note -- is there a way to pass variables from my Rails

[Rails] Rails 3.1 engines + assets

2011-04-26 Thread Tomas Celizna
Hello all, does anyone happen to know, how do I serve (Rails 3.1) engine's assets with the new SASS+CoffeeScript integration? Thank you, Tomas -- 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 rubyonrai