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 ...
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 ...
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 ...
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 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? ...
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...
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...
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...
Hello, is there a gem or plugin that will populate a database with test data? ...
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? ...
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...
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...
I am using Simple Captcha plugin for generating the captcha. Does anybody know how do I modify rails tests to handle this? ...
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...
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...
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 ...
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...
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. ...
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...
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. ...
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...