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.

762 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,677
  • 4
  • 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…
SirLenz0rlot
  • 1,933
  • 3
  • 33
  • 48
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…
ardochhigh
  • 5,116
  • 7
  • 50
  • 83
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
  • 402
  • 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,102
  • 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
  • 10,807
  • 7
  • 58
  • 102
0
votes
1 answer

How to get other Gem helpers into my Engine Gem's tests?

I'm trying to write tests for an engine gem I'm writing. I'm using Rspec and the tests seem to be running fine. But whenever a view uses a helper from another gem, such as "will_paginate" or "ransack", I get an "undefined method" error. I've tried…
Zhao Li
  • 3,184
  • 5
  • 28
  • 43
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
  • 8,754
  • 9
  • 52
  • 115
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
  • 10,965
  • 6
  • 61
  • 127
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
  • 10,965
  • 6
  • 61
  • 127
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,402
  • 6
  • 49
  • 102
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
  • 31,036
  • 8
  • 73
  • 85
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
  • 711
  • 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
  • 13
  • 3
1 2 3
50
51