Questions tagged [ruby-on-rails-plugins]

A Rails plugin is either an extension or a modification of the core framework.

Documentation

Related tag

714 questions
8
votes
3 answers

How to create a plugin/gem in rails

Whats the best guide to start working like creating a plugin/gem. I got this tutorial from railscast but this is very basic.I got some other tutorials but all of them are too basic. Any other tutorial, you can suggest. and what the things we should…
Mohit Jain
  • 43,139
  • 57
  • 169
  • 274
8
votes
1 answer

How do i test routes in Rails 3 plugins?

I've tried to use the recommended way (from the Rails Guides) to test routes generated in plugins, but the test keeps failing. What's odd is that if I reload the routes AFTER creating the route (or so I think), the test fails, but if I let the test…
btelles
  • 5,390
  • 7
  • 46
  • 78
8
votes
7 answers

Rails3 and Paperclip

I have migrated my application from rails 2.3 to rails3 and i have a problem with paperclip. I saw there was a branch for rails3 on paperclip git. So I added "gem 'paperclip', :git => 'git://github.com/thoughtbot/paperclip.git', :branch => 'rails3'"…
Arkan
  • 6,196
  • 3
  • 38
  • 54
8
votes
4 answers

Rails gem/plugin for dynamic custom fields in model

Is there any gem/plugin for ruby on rails which gives the ability to define custom fields in a model at runtime with no need to change the model itself for every different field. I'm looking for something like Redmine acts_as_customizable plugin…
Fabio
  • 18,856
  • 9
  • 82
  • 114
7
votes
1 answer

Ruby on rails: Calendar with events

I want to create a default calendar which can be displayed by month. The calendar by default has scheduled yearly events included in it. I will display this calendar in every user's profile. Now the user can look at the events on the calendar and…
Wasi
  • 1,258
  • 4
  • 14
  • 33
7
votes
1 answer

I'm using RVM, what is the difference between using bundle install and rvm bundle install?

I would like to know the difference? I can run both and they install but what is the actual difference? I'm doing a tutorial/screencast by michael hart and he uses bundle install, how does this differ from using rvm bundle install? I also decided to…
7
votes
1 answer

Trouble getting Rails 3 to work with MySQL

Brand new at Rails. I had a simple Rails 3 app on OS X 10.6 going, using the default sqlite3 database. I'm trying to convert that to use the MySQL server that I already have installed. (mysql5 -uroot works.) I'd like to use mysql2, which I installed…
philfreo
  • 41,941
  • 26
  • 128
  • 141
7
votes
1 answer

Why Railtie initializers are not executed?

While crafting the Passenger-Monit plugin, I thought that it'll be most appropriate to use the initializer, i.e. module PassengerMonit class Railtie < Rails::Railtie initializer "my_plugin.some_init_task" do # my initialization tasks …
Roman
  • 13,100
  • 2
  • 47
  • 63
7
votes
3 answers

How to get the list of all engines in Rails 3 app

According to Rails engines extending functionality in Rails 2.x one could do Rails::Initializer.new(Rails.configuration).plugin_loader.engines This code is not working in Rails 3 ActionController::RoutingError (undefined method `new' for…
7
votes
4 answers

How to enable CKEditor on a field in rails_admin?

I'm new to rails and I recently discovered rails_admin. I added CKEditor using the command from rails_admin documentation, but I don't know how to enable it on a field.
dexter
  • 1,217
  • 9
  • 12
7
votes
3 answers

With paperclip, how can I change the image location to a ":parent_model_id/:id" folder format?

Given that I have a Listing model that has many images and each image has one attachment, how can I have the listing_id be part of the folder structure? Like so: system/photos/[listing_id]/:id I know that using :id will output the id of the image…
Jamis Charles
  • 5,827
  • 8
  • 32
  • 42
7
votes
3 answers

Installing and using acts-as-taggable-on

This is going to be a really dumb question, I just know it, but I'm going to ask anyways because it's driving me crazy. How do I get acts-as-taggable-on to work? I installed it as a gem with gem install acts-as-taggable-on because I can't ever seem…
7
votes
3 answers

Problem with require rack/openid in Rails 3 [native require work properly]

I install plugin open_id_authentication and have this error: /usr/lib/ruby/gems/1.9.1/gems/activesupport-3.0.0.beta/lib/active_support/dependencies.rb:167:in `require': no such file to load -- rack/openid (LoadError) when I try to start rails…
7
votes
0 answers

Is there a way to rename an existing Rails Engine easily?

There is a plugin for renaming an existing Rails app - https://github.com/get/Rename But is there some solution to easily and fully rename an existing Rails Engine?
Green
  • 28,742
  • 61
  • 158
  • 247
7
votes
2 answers

How can I create a concern in a Rails engine?

I'm trying to create a concern inside an engine in order to add/override this functions in the main application which is going to mount this engine. The problem is that I have had problems including the concern in the engine module. It seems that…
Dagosi
  • 948
  • 2
  • 11
  • 25