ruby-on-rails-plugins

Rails Plugins

What are some of your favorite rails plugins that you would consider "must haves"? This entry lists some of my favorites that I use in a large majority of my rails applications: My favorite rails plugins ...

Best plugin for creating a "friends" system/social network for latest Rails?

I'm looking for a Rails plugin that eases the development of a "friends" system or social networking system for the latest versions of Ruby on Rails. Before anyone says it...I know, I should probably create it myself, from scratch. And I am fully capable of this (I think). I'm just looking for a good plugin that can a.) make life a bit ...

How to alias ActiveRecord class methods dynamically in a rails plugin?

I'm having trouble removing some duplication I've introduced in a rails plugin. The code below modifies the find and calculate methods of ActiveRecord in the same way, but I've been unable to remove the duplication. The find and calculate methods below make use of the super keyword which is one hurdle as the super keyword can only be u...

What Rails plugins would you like to see?

What behavior have you had to implement in your Rails applications that you feel could exist nicely as a plugin? What plugin functionality have you searched for in the past but couldn't find? What existing Rails plugins could be improved or extended, and how? ...

Logout with http basic authentication and restful_authentication plugin

Hi All, I have the restful_authentication plugin installed in a rails app, with a sessions_controller that has a destroy method like this: def destroy self.current_user.forget_me if logged_in? cookies.delete :auth_token reset_session flash[:notice] = "You have been logged out." redirect_back_or_default('/') end In the appli...

how to install and use a javascript based plugin on rails?

I am making a rails app and having a ridiculously hard time trying to get the Redbox plugin to work. I'm pretty sure I installed everything correctly and am using it properly. When I use one of the helper methods, it seems to generate javascript properly. For example when I type: <%= link_to_redbox 'hello', 'test' %> it generates: <a...

Ruby on Rails / Yellow Maps For Ruby Plugin woes...

Okay I've read through the plugin comments and the docs as well and I have yet to come up with an answer as to how to do this. Here's my problem I want to use the :info_window_tabs and the :icon option, but I don't know what format to pass my information in. According to the documentation the following code should be correct. Here's my c...

Is there a gem/plugin that will populate a database with test data?

Hello, is there a gem or plugin that will populate a database with test data? ...

What is the best way to add inflections in a Rails plugin?

I'm writing a plugin that needs some inflections of it's own. Using rails 2.3 wich has the engines embeeded, where I should place my inflections? ...

How to make model IDs in Rails unpredictable and random

I'm writing a rails app that, by its nature, CANNOT require users to register, and thus cannot use authentication as the usual means to protect records. (I know, I know...) User information here is limited to email addresses. So I do need a way to make my model IDs unpredictable so that other IDs cannot be easily guessed. (I know, I kn...

Trouble using ssl_requirement with restful_authentication in Ruby/Rails.

I'm trying to use the ssl requirement plugin with the restful authentication plugin and I have a question that I'm having trouble finding the answer to. When allowing a user to login from a non-SSL action/page, should I require SSL on the session's create action for increased security, or is that overkill? If so, how do I get the creat...

Simple Captcha - How to test ?

I am using Simple Captcha plugin for generating the captcha. Does anybody know how do I modify rails tests to handle this? ...

ActiveMerchant/Spree - Is there a per-transaction/per-account commission to the creators?

This is probably a silly question but if you use ActiveMerchant (or spree), do the creators of ActiveMerchant (or spree) take a commission? Since it's open source I wouldn't expect them to. But at the same time, because it's such a large undertaking to create a processing gateway, it would not surprise me if they wanted some compensation...

Resolving NameErrors -- Getting NameError on RAILS_END in rails_end.rb When using desert plugin and Community_Engine

What's an effective approach to debug NameErrors in Rails? I'm trying to use the desert plugin (0.5.0) and the edge version of Community_Engine. I've started from scratch and gone through the installation instructions. When I attempt to start my server, I get this error: "Constant RAILS_END from rails_end.rb not found (NameError)". Pro...

rails flash graph/chart plugin

Hi, I am looking for a rails flash graph/chart plugin, for drawing bar chart, stacked bar chart, pie chart, stacked area chart, and line graphs which support the below criteria, 1. Customizable tool tip. For eg: when i am drawing a stacked area graph, i want to display all the y axix values for that x axis point as tool tip. 2. Graph ...

Why can't I access the controller object in RSpec when testing a controller?

I'm using rspec-rails, version 1.2.6. In a controller test describe WebsController do ... I don't seem to have access to the controller object in order to stub methods. For example, the following won't work: before :all do @feed = mock_model(Feed) controller.should_receive(:feed_from_params).and_return @feed end I g...

Ruby on Rails and restful_authentication plugin

I'm using the restful_authentication plugin for my login page. The problem is that after I log in as a user, I never get logged out until I click on log out. How do I set a session timeout of 15 minutes? For example, after 15 minutes if I go to any page, I should be redirected to the login page. ...

How do you create a configurable Ruby on Rails plugin?

i am trying to create my first rails plugin, and i want it to be configurable, that is to say, i want to be able to set a variable in the environment.rb file or something. UPDATE: i'm trying to do something like what's done here: http://soakedandsoaped.com/articles/read/exception-notifier-ruby-on-rails-plugin. i have tried mimicking th...

How do I change the format dropdown box of the TinyMCE ruby plugin?

I'd like to only allow h2 and h3, but I'm not sure how to edit the list in the dropdown shown by adding the 'formatselect' button. ...

Uploading image problem (Insoshi RoR framework)

Sorry if this problem might be a little too specific. I'm a RoR newbie still. I'm currently modifying an RoR app based on the Insoshi framework on windows vista. It uses Free Image and the image_science gem along with attachment _fu for uploading images to the application and resizing it. Every part of the application seems to be up and...