New Adhearsion Feature: Sexy Rails integration 3
This feature has been in trunk for a while so it’s time to bring it into the limelight.
Let’s say you’ve a really fancy Ruby on Rails web application with which you wish to integrate your new Adhearsion app. Though you may only need five or so of the thirty models that exist within the app, they’re inter-related somehow with has_many :through, belongs_to and a dozen other SQL fragments sprinkled about. That’s no good—looks like it’s all or nothing. Oh, and you’ve eight Rails plugins installed, of which five heavily modify ActiveRecord’s internals for your obscure purposes. That’s no good, either. Looks like it all of Rails or nothing.
You can now do this “all of Rails” integration extremely easily in Adhearsion. When you create a new Adhearsion app with trunk, you’ll see the following option in config/startup.rb:
config.enable_rails :path => “/path/to/your/rails/project”, :env => :developmentAnd voila! Just uncomment this line and point it to the appropriate path. Adhearsion will do the rest.
Still more features to blog about! Stay tuned…
This is so exciting! I have been wanting to upgrade my rails for the longest time. It’s just I never understood how or never really got the hang of something. Thanks for the tips.
This is Rails integration that counts! Well done.
Very cool. I’ve just written a new lightweight RAGI to support Asterlite when it adds in V1.4 support, and have always seen Adhearsion as a way to go forward, this makes the full Asterlite Rails integration possible. I like it.