ruby-on-rails-plugins

Best Rails Tagging Plugin/Gem

Hello, what plugin or gem do you recommened for tagging? There are many of them, acts_as_taggable, acts_as_taggable_on_steroids, acts_as_taggable_on,... What do you say? ...

Best practice: Multiple categories - best plugin for it (acts as taggable, acts as tree,...)

Hello, I'm trying to find the best solution: I have a usermodel and the user should be able to save the keywords (multiple contexts) which he is interested at. F.e. User-interessts: Sports: Checkbox(CB) fishing, CB Skyying, CB Tennis, CB Soccer Music: CB Metal, CB Techno, CB Folk, CB Charts, ... and so on... After the user saves...

Supporting Mobile Devices in Ruby on Rails

What is the best way to develop a rails application that has special views for different mobile devices? Basically I'm looking for something like this ASP.NET MVC solution: http://www.hanselman.com/blog/MixMobileWebSitesWithASPNETMVCAndTheMobileBrowserDefinitionFile.aspx ...

Rails3 structure, engines, plugins, slices, gems, modules.. ?

Do you have a working example of a Rails3 mvc application? How will it be organized? I hope something like: -app --controller --views -plugins --myapp1 ---app ---controller ---views ---... Can app1 use a model from app2? Will "routes" file be deprecated? reference: [h ttp://yehudakatz.com/2009/07/19/rails-3-the-great-decoupling][1...

Where are the logs for a Rails app packed using Warbler?

I'm using Warbler to pack a Rails application into a WAR. I've deployed it to a JBoss server and it seems to works. However, I'm getting the classic 500 error on Rails saying "We're sorry, but something went wrong.". Usually, I'd take a look at logs/production.log to find out what's wrong, but since the project is WARed, I can't access...

Enabling stemming from sphinx.yml in Thinking Sphinx

I created a config/sphinx.yml file with the line: morphology: stem_en After running rake ts:config, it doesn't seem to have changed development.sphinx.conf, and following a rebuild, searching for "dawg" doesn't match "dawgs". How can I get this to work? ...

What are the benefits of using the Rails gem instead od vendor/rails?

I recently started working on a small personal project in Ruby on Rails, and have run into a few things that I couldn't find definitive answers for. If anyone here is knowledgeable enough to help, that would be greatly appreciated. All of my questions are below: What benefit is there to using the Rails Gem instead of having it in vend...

jRails Alternative

Hello, do you know an alternative to jrails? It's more or less outdated (uses jQuery 1.5 - now 1.7 is the current release). Does anybody know an alternative? Thanks EDIT: I know how to build the rails helper with jquery allone - but I like the rails helpers, so I dont want to use jquery allone (without jrails) ...

Gem-idea: Automatic spam protection with captcha in before_filter when HTTP-method is post,put or delete

I'm thinking about writing an automatic spam protection system (maybe I will write a public gem) for rails. My concept is to include a helper method in application_controller f.e.: class ApplicationController < ActionController::Base automatic_captcha_redirect(:min_time => 30.seconds :limit => 50) ... end Then I want to include aut...

Which Rails plugins should I be using?

Hi Stack Overflow, I learnt rails a couple of years ago out of interest, but now I'm coming back to it because I want to try and build a simple pay-to-advertise niche job site with a few bells and whistles. Many of the rails books I learnt from gave examples of how to build a shopping cart or user authentication system, but looking arou...

How can I turn my Rails app into a plugin?

I am currently developing a cms and want to reuse the functionality in other projects. ...

Crypted_password is null when using Authlogic to save a user

i'm getting a strange error on my production install when i try and create a new user using AL: ActiveRecord::StatementInvalid: Mysql::Error: Column 'crypted_password' cannot be null: INSERT INTO users especially strange b/c it works as expected on my local box. RUnning Rails 2.3.2 and ruby 1.8.7 on both boxes. user.rb: class User <...

rails Subscribe To Comments plugin like wordpress

Is there any rails plugin for Subscribe to comments one like the Wordpress has?? i.e. On the comment form, a checkbox to check whether the commenter would opt-in whether to get email notification when a new comment is added? ...

Rails Photo Gallery Plugin for 3rd Party Hosting on Flickr or Picasa

I don't want to store photos on the server. I'd prefer to use picasa or flickr, etc. I'm wondering what solutions are popular and work well. I've found: http://code.google.com/p/picasaonrails/ http://code.google.com/p/loupe/ Has anyone tried these? Any alternative suggestions? Thanks all. ...

A copy of ApplicationController has been removed from the module tree but is still active!

Whenever two concurrent HTTP requests go to my Rails app, the second always returns the following error: A copy of ApplicationController has been removed from the module tree but is still active! From there it gives an unhelpful stack trace to the effect of "we went through the standard server stuff, ran your first before_filter on...

What Ruby on Rails plugin/gem would you recommend to implement widely-used blog publishing API (Atom, MetaWeblog, etc) in a custom blog

I have a custom-made blog running off RoR and I would like to implement publishing API. I would prefer to use a widely-used API - e.g. Atom, MetaWeblog, etc - so that I can post to my blog from almost any other web service - flickr, youtube, pixelpipe, etc. ...

How to convert the following ruby code into Rails plugin?

#!/opt/ruby_ee/bin require 'rubygems' require 'twitter' require 'net/http' require 'uri' require 'httparty' module FbTweet def FbTweet.tweet(url) bitly_url = Bitly.shorten(url) httpauth = Twitter::HTTPAuth.new('username', 'password') base = Twitter::Base.new(httpauth) base.update("Testing to port this into rails plug...

Virtual attributes in plugin

Hello, I need some help with virtual attributes. This code works fine but how do I use it inside a plugin. The goal is to add this methods to all classes that uses the plugin. class Article < ActiveRecord::Base attr_accessor :title, :permalink def title if @title @title elsif self.page self.page.title else...

pros/cons of a ::Base class (rather than acts_as_foo)

Rather than an acts_as_foo syntax**, I'm toying with the idea of extending ActiveSensor::Base < ActiveRecord::Base and then extending this base class with all the errors/validations/class methods/whizbangs. Proposed: #active_sensor.rb gem module ActiveSensor include ActiveRecord autoload :VERSION, 'active_sensor/version' autoloa...

Plugin to use Ruby on Rails Simple I18n backend with translations overridable in the database?

Hello, Hoping some learned Rails developers here can recommend an existing Ruby on Rails plugin or gem that allows you to continue using the Simple I18n backend whilst allowing you to optionally specify translations in the database. Here's why: I have one Rails app used for many websites. For the example I'll just use 2 websites: We...