rails-engines
rails 3.1 dynamic controller instantiation
I have a Rails Engine gem in which I want to load a HomeController class definition dynamically from an initializer. I can instantiate the class correctly, but when I go to call the index action, I ge[详细]
2023-04-08 19:43 分类:问答How do I use railties to install files other than migrations (for e.g. config files)
I\'m using Rails 3.1 and I am able to use rail开发者_运维技巧ties to install migrations (by doing rake railties:install:migrations FROM=plugin_name). However, I have a couple of config files (.yml, et[详细]
2023-04-08 19:29 分类:问答What path is a mountable engine mounted on
I need to know, from in开发者_如何学编程side of a layout of a mountable engine, what path it\'s currently being mounted on. What would be the way to do it?[详细]
2023-04-08 18:06 分类:问答app does not load engine's assets via sprockets
I am trying to rewrite an app using rails 3.1 making use of engines. Somehow the test dumm开发者_运维问答y app does not pick up my assets and I don\'t know what would be causing this. i.e. stylesheets[详细]
2023-04-08 04:01 分类:问答DataMapper model in a rails mountable engine?
I\'m building a mountable engine. From a basic install, I\'开发者_如何学运维ve moved my existing application into the engine namespace.[详细]
2023-04-06 13:11 分类:问答Testing Rails 3.1 engine routes with RSpec 2
I\'m trying to test a Rails 3.1 engine with RSpec 2.After a lot of trial and error (and documentation and Stack Overflow searching) the app is working and I\'ve gotten most of the specs to pass.The pr[详细]
2023-04-06 07:23 分类:问答Rails 3.1 Engine: How do I get the engine application_controller to talk to the client app's application_controller?
I have a new, mountable rails 3.1 engine and I need the client app, that being the rails app that will include this engine, to define a generic permission based method.[详细]
2023-04-06 07:02 分类:问答Testing Rails 3.1 mountable engine with Rspec
I started making a Rails 3.1 engine, and I\'m having a hard time testing it using rspec. First of all, if I run rails g integration_test whatever it creates a regular integration test in tests/integr[详细]
2023-04-06 00:24 分类:问答Dependencies are apparently not loading correctly after upgrade to Rails 3.1
I\'m in the process of upgrading a Rails 3 project, which uses Devise for authentication, to a Rails 3.1 mountable Engine. After the upgrade, Devise doesn\'t seem to be initialized correctly, raising[详细]
2023-04-04 02:29 分类:问答Guard doesn't see file updates
I\'m developing a custom engine using this setup. I\'ve created the engine with rails plugin new MyEngine --full[详细]
2023-04-03 07:22 分类:问答