Questions tagged [rails-engines]

A Rails engine allows you to share common functionality across applications in the form of a gem or a plugin. Engines can be considered miniature applications that provide functionality to their host applications.

A Rails engine allows you to share common functionality across applications in the form of a gem or a plugin. Engines can be considered miniature applications that provide functionality to their host applications.

Check http://guides.rubyonrails.org/engines.html and http://railscasts.com/episodes/277-mountable-engines for more details.

776 questions
0
votes
1 answer

Stuck with Piggybak install

I have followed the base application and installation docs. I have Devise,Rails_Admin, and Cancan installed and bundled. I think I followed those install docs too. I have the admin set up and I can add users. But when I do the piggybak install I…
jasonw
  • 122
  • 6
0
votes
1 answer

'Stack level too deep' error in engine-like plugin with globalize

I have built an engine-like plugin thanks to the new features of Rails 2.3. It's a 'Product' module for a CMS, extrapolated from a previously existing (and working) model/controller. The plugin relies on easy_fckeditor and on globalize (description…
nutsmuggler
  • 1,707
  • 5
  • 21
  • 27
0
votes
1 answer

Rails Full Engine using a Full Engine

I've got this full rails engine Foo with functionality X. I want to make another engine, engine Bar, that is pretty much the same, but override funcitonality x with y. (it basically does the same, but a few controller actions and views are…
Len
  • 2,093
  • 4
  • 34
  • 51
0
votes
1 answer

Rails won't accept namespace in model

I'm following instructions on the Social Streams github wiki to add in a new model to an application using the Social Streams engine. The instructions are here: https://github.com/ging/social_stream/wiki/How-to-add-new-activity-types When I attempt…
port5432
  • 5,889
  • 10
  • 60
  • 97
0
votes
2 answers

How to use Rolify in rails mountable engine in rails 3.2?

I have used cancan and rolify in my rails app. Now i want to use these, atleast rolify in my rails mountable engine(isolated namespace). i tried hard but went in vain. I put role model inside models/myengine/ and models/ also when prior fails. It…
Kundan Pandit
  • 412
  • 6
  • 17
0
votes
1 answer

Rails / image not being saved when Carrierwave is mounted

I am using the Carrierwave plugin to upload images. It works fine, but if I try to save an image from the controller using Article.create(:image => 'sample.png') It doesent save the image as long as carrierwave is mounted, if I un-mount Rails will…
jakobk
  • 1,120
  • 1
  • 14
  • 26
0
votes
2 answers

Rails 3 JavaScript resource pipeline management

I was wondering what the differences are between using a Ruby gem to include a JavaScript library into a Rails project versus including the JavaScript file yourself. I do know that you can lock down a version of the js library using bundler or…
Aaron
  • 13,349
  • 11
  • 66
  • 105
0
votes
2 answers

aws-s3 gem has namespace issues with my Engine

I'm developing a Rails 3 Engine for one of our projects. To debug an issue I moved the gem declaration to a :path statement, as the edge guide suggests. It comes about two gems after the requirement for the aws-s3 gem. Now, when I try to start up…
pjmorse
  • 9,204
  • 9
  • 54
  • 124
0
votes
1 answer

Rails3.1: Is this the right way to require my locally being developed gem/engine in the Gemfile?

Still diving into the interesting (but a bit confusing) world of developing my own gem/engine. I have successfully deployed it to my (private) GitHub account, but as the gem is in continuous development, I don't want to deploy it again and again and…
Joshua Muheim
  • 12,617
  • 9
  • 76
  • 152
0
votes
1 answer

Spork & Rails 3.1 engine: helpers are not reloaded

I'm developing a Rails 3.1 engine and want to test it. I use RSpec for this, and everything works nicely, but when trying to use Spork, I have the problem that my helpers are not correctly reloaded. I read a lot about a similar problem with models,…
Joshua Muheim
  • 12,617
  • 9
  • 76
  • 152
0
votes
1 answer

Rails engines and namespacing. Cases where namespaces are required?

I'm a bit confused with namespacing in engines. In a Rails engine, where isolate_namespace is used, module Blog class Engine < Rails::Engine isolate_namespace Blorgh end end when is it required that you refer to objects with the namespace…
Panagiotis Panagi
  • 9,927
  • 7
  • 55
  • 103
0
votes
1 answer

Extend ActiveAdmin with Rails Engine

I am trying to extend the ActiveAdmin interface and add another reusable resource to the menu with a Rails plugin. I have created a new full engine: # Not mountable because it build up on ActiveAdmin rails plugin new activeadmin-files --full …
halfdan
  • 33,545
  • 8
  • 78
  • 87
0
votes
1 answer

Rails 3.2 Gemified Engines: Reaching modules inside a mounted gemified engine

I'm working on an infrastructure for Rails application and I'm trying to take something out of someones existing project. I am sort of new to rails but I read the guides on plugins and engines ect.. So I have a gemified Engine, containing some…
Shrewd
  • 731
  • 5
  • 14
0
votes
1 answer

Rails engine separate route

I created a simple application with a news module and defined the news as a separate mountable engine (it will be used on other projects too). I need to have the ability to mount the admin and user parts of the engine as separate routes on parent…
javidan
  • 11
  • 3
0
votes
1 answer

Rails engine usages

All, I am developing a rails app (biz-tools) that will made of several modules, e.g. authentication, business-mgmt, etc... I need some guidance/suggestions on how to create these modules as gems, plugins or engines? Some of the requirements…
user938363
  • 9,990
  • 38
  • 137
  • 303
1 2 3
51
52