A Rails plugin is either an extension or a modification of the core framework.
Questions tagged [ruby-on-rails-plugins]
714 questions
                    
                    200
                    
            votes
                
                20 answers
            
        execJs: 'Could not find a JavaScript runtime' but execjs AND therubyracer are in Gemfile
I'm getting this error: 
rake aborted!
  Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs, 
I have already spent more hours searching google then I am willing to admit. I believe this is an execJs bug.
From all the…
         
    
    
        steve98177
        
- 2,121
- 2
- 14
- 6
                    155
                    
            votes
                
                8 answers
            
        Rails 2.3-style plugins and deprecation warnings running task in Heroku
I'm upgrading to Rails 3.2, and running rake db:migrate gives me several errors of the form:
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle…
         
    
    
        fearless_fool
        
- 33,645
- 23
- 135
- 217
                    121
                    
            votes
                
                5 answers
            
        Rails 3.1: Engine vs. Mountable App
Can someone help me understand the differences between a Rails Engine and a Mountable app?  In Rails 3.1, you can create either one with the "rails new plugin ___" command.
rails plugin new forum --full        # Engine
rails plugin new forum…
         
    
    
        Jeremy Raines
        
- 1,741
- 3
- 14
- 22
                    89
                    
            votes
                
                3 answers
            
        Rails Admin vs. ActiveAdmin
I've been looking into some rails admin plugins and came across these:
https://github.com/gregbell/active_admin
https://github.com/sferik/rails_admin
https://github.com/thoughtbot/administrate (EDIT: added later)
Any suggestions as to which one to…
         
    
    
        erickreutz
        
- 2,779
- 3
- 21
- 18
                    64
                    
            votes
                
                4 answers
            
        Rails Devise: get object of the currently logged in user?
I've recently installed Devise on a rails application, and I am wondering if it is possible to get an instance of the currently logged in user in either one of the other models or controllers, and if so, how do I do that?
         
    
    
        GSto
        
- 41,512
- 37
- 133
- 184
                    52
                    
            votes
                
                3 answers
            
        How to load vendor asset folder in Rails 4?
I have a plugin with many types of files, and its own tree structure (html, css, js, documentation, images, etc)
Rather than going through the plugin folder, and splitting all the css and js files into the vendor/assets/js/ vendor/assets/css/…
         
    
    
        ahnbizcad
        
- 10,491
- 9
- 59
- 85
                    41
                    
            votes
                
                2 answers
            
        Rails 3.1 plugin gem, dummy test app, rspec
So Rails 3.1 comes with a little-known handy "rails g plugin new" generator, which gives you a skeleton suitable for a rails gem plugin. [http://guides.rubyonrails.org/plugins.html#or-generate-a-gemified-plugin]
One of the useful things this does,…
         
    
    
        jrochkind
        
- 22,799
- 12
- 59
- 74
                    41
                    
            votes
                
                17 answers
            
        Exception Notification Gem and Rails 3
I'm trying to get this up and running, but I see "uninitialized constant ExceptionNotifier" whenever I start my server. 
http://github.com/rails/exception_notification
In my Gemfile I have
gem "exception_notification", :git =>…
         
    
    
        Darren Hinderer
        
- 418
- 1
- 6
- 12
                    41
                    
            votes
                
                43 answers
            
        Most useful Rails plugins, Ruby libraries and Ruby gems?
I have seen many sites which provide the whole list of Rails plugins, Ruby libraries and Ruby gems, but we hardly use few of them and some may not suit our requirement and we spend a whole lot of time searching for useful Plugins which suits our…
         
    
    
        Srinivas M.V.
        
- 6,508
- 5
- 33
- 49
                    39
                    
            votes
                
                6 answers
            
        Devise within namespace
I'm trying to split my rails project in a front-end for regular users and a back-end for admins. Therefore i have created a namespace 'admin' so that i can easily control admin specific controller methods/layouts/authentication in the map admin.
I'm…
         
    
    
        Harm de Wit
        
- 2,150
- 2
- 18
- 24
                    37
                    
            votes
                
                5 answers
            
        Ruby Geolocation Gem/Plugins
What are the available (best) ruby IP-based geolocation gem/plugins?
How do they compare to one another in terms of functionality, performance and ease of use (e.g. do they interact with a web service, or require a separate database, etc.) ?
I'm…
         
    
    
        JRL
        
- 76,767
- 18
- 98
- 146
                    35
                    
            votes
                
                2 answers
            
        Get a value of object field inside fields_for loop
In the following scenario, I need to check the value of the object property in the fields_for loop.
<%= f.semantic_fields_for :review_details do |rd| %>
  <%= rd.input :review_criteria_id, :as=>:hidden %>
<% end %>
As in the loop,…
         
    
    
        Nazar Hussain
        
- 5,102
- 6
- 40
- 67
                    34
                    
            votes
                
                5 answers
            
        Is Cassandra production ready for Ruby on Rails?
I'm working on a project that is considering using Cassandra as a database.  We would like to eventually migrate to Cassandra even if we use MySQL to start with, given its scalability.  I know that big companies like Facebook, Digg, and recently…
         
    
    
        funkymunky
        
- 1,811
- 3
- 20
- 22
                    32
                    
            votes
                
                3 answers
            
        Render engine within application layout
Background
I am creating a application that is made up of a core and several modules. The modules are rails engines, and provide the actual functionality as the core itself only acts as a host.
The engines are hosted from /lib and mounted at their…
         
    
    
        Jørgen R
        
- 10,568
- 7
- 42
- 59
                    31
                    
            votes
                
                2 answers
            
        Differences between railties and engines in Ruby On Rails 3
I read a few documents on these arguments, but I did not understand clearly what they are, what are the differences between them and if one of them fits my needs.
I need to write a piece of application which can be plugged in other application and I…
         
    
    
        Fabio
        
- 18,856
- 9
- 82
- 114