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
Here is two models: user and user_level. User has_many user_levels and user-level belongs to user. class user < ActiveRecord::Base
I have a route setup for downloading a document which I need a named parameter for the document name so I get the doc name on the download document. I\'m also passing a few unnamed parameters to ident
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
every time people give tutorials on how to make atom rss templates, but my question here is how can i pass in and image in the rss format. for instance i have this code sample in rss
I have been following documents on how to move from Rails 3 to 3.1 and make it work on Heroku.I used the manual upgrade technique given here: http://webtempest.com/upgrade-rails-3-to-3-1/
I\'m running some rspec unit tests involving getting data back through kaminari paging, but the default page size for our application is 20, whereas 2 would work fine for test.
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?
I could use some help understanding Rails queries in loops. Loop 1: ruby-1.9.2-p290 :005 > (1..3).each do |i|
I\'m using Ubuntu, with Rails 3.0.1 with mysql2 socket. When i do runing install, rake开发者_运维问答 db:create and after rails server, my Welcome aboard, shows ActiveRecord::ConnectionNotEstablished