ruby-on-rails-plugins

Rails Plugins [closed]

心已入冬 提交于 2019-12-02 14:44:51
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 Derek P. RESTful Authentication Exception Notification Acts As State Machine Shoulda Account Location I use all of these in 99% of all of my Rails projects. Each link provides detailed information regarding what they do and why they are awesome. Hope that helped! http://github.com/mislav/will_paginate http://github.com/nex3/haml http://ennerchi.googlecode.com/svn/trunk/plugins/jrails http:/

Exception Notification Gem and Rails 3

眉间皱痕 提交于 2019-12-02 14:28:58
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 => " http://github.com/rails/exception_notification.git ", :branch => "master" I've tried putting the configuration as shown in the github readme inside of config/application.rb, config/environment.rb, and config.ru. I replaced "Whatever" with my application name. Jan M All previous answers are outdated, you can now simply add this to your gemfile: gem 'exception

Devise within namespace

自闭症网瘾萝莉.ら 提交于 2019-12-02 14:17:49
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 using Devise to register/authenticate my admins only. Because it is only used for admins only i'm trying to move Devise to the admin namespace. I could not find exactly what i was looking for in the documentation of Devise but i tried something like this in routes.rb: namespace 'admin'do devise_for :admins end I also tried to make a custom Devise:

Rails 3.1.0, geokit, with error acts_as_mappable

青春壹個敷衍的年華 提交于 2019-12-02 07:01:13
I am getting the undefined local variable or method `acts_as_mappable' error when using geokit, and after tons of Goggling and attempts, I cannot seem to be able correct the problem. Basically, I have the following gems installed: geokit (1.6.0, 1.5.0) geokit-rails31 (0.1.3) and have the following in my model class House < ActiveRecord::Base acts_as_mappable end and Gemfile: gem 'geokit', '>= 1.5.0' gem 'geokit-rails31' I get the error with or without doing the following in my local app. rails plugin install git://github.com/jlecour/geokit-rails3.git Okay - Here is the solution for anyone that

Undefined method `has_attached_file' with paperclip 2.3.8 gem for Rails 2 using Ruby 1.8.7

こ雲淡風輕ζ 提交于 2019-12-02 01:02:14
问题 I am trying to use the paperclip plugin in my rails app to upload images for posts. I am using Rails 2.0.2 and ruby 1.8.7 on Ubuntu 10.04 os for project specific purposes. I am referring to the following tutorials for this :- http://railscasts.com/episodes/134-paperclip?view=comments http://jimneath.org/2008/04/17/paperclip-attaching-files-in-rails.html I did a git clone on the paperclip plugin via:- https://github.com/thoughtbot/paperclip , but the command like ruby script/generate paperclip

Undefined method `has_attached_file' with paperclip 2.3.8 gem for Rails 2 using Ruby 1.8.7

狂风中的少年 提交于 2019-12-01 23:07:36
I am trying to use the paperclip plugin in my rails app to upload images for posts. I am using Rails 2.0.2 and ruby 1.8.7 on Ubuntu 10.04 os for project specific purposes. I am referring to the following tutorials for this :- http://railscasts.com/episodes/134-paperclip?view=comments http://jimneath.org/2008/04/17/paperclip-attaching-files-in-rails.html I did a git clone on the paperclip plugin via:- https://github.com/thoughtbot/paperclip , but the command like ruby script/generate paperclip group_post photo didn't generate a migration for it. I then created a migration for the same through

Facebooker extended permissions?

半城伤御伤魂 提交于 2019-12-01 20:20:17
Facebook gives access to users' emails via the extended permission. There's also a way in JS and PHP to force users to grant the permission when they accept the app's TOS - http://wiki.developers.facebook.com/index.php/Extended_permissions Is there a way that I can do this with Facebooker? Regards.. You can do it just like that : :jquery , :app_settings => " { permsToRequestOnConnect : 'email' }"} %> 'facebook') + '\'') %> Note: Also get the last version of facebooker, because previus version dont support extended permissions. user310200 Yes this in your application.html.erb <script src="http:

Sqlite3 error after Rails 3 (beta 4) install

冷暖自知 提交于 2019-12-01 18:38:56
After Installing Rails 3, I get the following error regarding Sqlite3 when I try to do a migrate: dlsym(0x1037e5f10, Init_sqlite3_native): symbol not found - /Library/Ruby/Gems/1.8/gems/sqlite3-ruby-1.3.0/lib/sqlite3/sqlite3_native.bundle I am using Snow Leopard, if that makes a difference. Hemanth I faced the same issue. The problem is that your sqlite-ruby interface is not installed properly in your snow leopard. To install that , use the following :- sudo gem install sqlite3-ruby But before installing that check if a proper gcc is installed in your Mac.Use the below lines to check that :-

JQuery AJAX exception only in Firefox: “Node cannot be inserted at the specified point in the hierarchy” (HierarchyRequestError)

╄→гoц情女王★ 提交于 2019-12-01 05:46:12
Very strange problem: I have a 2-part dropdown, where selecting a State will then add a second dropdown giving you a list of MSA Areas in that State. This is done using a JQuery Get request to a controller that returns the list of Areas in a Select dropdown, like jQuery(function($) { // when the #area_state field changes $("#area_state").change( function() { // make a call and replace the content var state = $('select#area_state :selected').val(); if(state == "") state="0"; jQuery.get( '/getmsas/' + state, function(data){ $("#msas").html(data); } ) return false; } ); }) Note -- This code was

What's a Rails plugin, or Ruby gem, to automatically fix English grammar?

醉酒当歌 提交于 2019-11-30 20:33:19
Facebook just re-launched Comments, with a automatic grammar fixing feature. What does the grammar filter do? Adds punctuation (e.g. periods at the end of sentences) Trims extra whitespace Auto cases words (e.g. capitalize the first word of a sentence) Expands slang words (e.g. plz becomes please) Adds a space after punctuation (e.g. Hi,Cat would become Hi, Cat) Fix common grammar mistakes (e.g. convert ‘dont' to ‘don’t’) What is an equivalent plugin or gem? I don't know of anything with those particular features. However, you might look at Ruby LinkParser , which is a Ruby wrapper for the