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
15
votes
3 answers

Any good Rails example/framework for sorting, filtering, pagination with Ajax

Is there any open source (or example) code for Ruby on Rails which can filter, sort, and paginate a certain model? Also, it would be great if the results could come back via Ajax. A good example of what I'm looking for can be seen on this Trulia…
Chris
  • 748
  • 2
  • 8
  • 23
14
votes
2 answers

Filter chain halted as [:login_required] rendered_or_redirected

Hopefully I can explain this well enough, but please let me know if more information is needed! I'm building a form where a user can create an "incident". This incident has the following relationships: belongs_to: customer (customer has_many…
Magicked
  • 637
  • 3
  • 11
  • 20
14
votes
7 answers

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:…
Eran Kampf
  • 8,928
  • 8
  • 49
  • 47
13
votes
2 answers

switching a subdirectory managed by git to a submodule

We used to have a local hack of delayed_job in a Rails app, in vendor/plugins/delayed_job. It was installed as a one-time event and checked into git in the main app repo. Now we decided to fork delayed_job on github and replace the subdirectory by…
Alexy
  • 1,520
  • 2
  • 16
  • 30
12
votes
2 answers

Rails 3 best way to create a comment system for posts

my first entry here. I'm trying to add a comment system to our Posts model. However, I am not sure of the best way to go about it for a number of reasons. I'd like the comment system to be similar to that on Forrst.com but i'd rather have visitors…
12
votes
8 answers

Which Ruby on Rails admin plugin do you use and why? What are the pros and cons of different admin gems?

We need a dead simple, but secure, admin plugin for Rails. We're on 2.x but are considering a port to 3.x. Which admin plugin do you use, and why? What are the pros and cons of others? There are a few admin plugins available, and we would like to…
Crashalot
  • 33,605
  • 61
  • 269
  • 439
12
votes
4 answers

Start or ensure that Delayed Job runs when an application/server restarts

We have to use delayed_job (or some other background-job processor) to run jobs in the background, but we're not allowed to change the boot scripts/boot-levels on the server. This means that the daemon is not guaranteed to remain available if the…
12
votes
2 answers

Mahout Plugin for ruby on rails

I want to use Apache Mahout in my project on Ruby on Rails for implementing recommendations and collaborative filtering. In Particular my requirements are: suggesting related tags. suggesting related articles. based on user's preferences prompt him…
12
votes
3 answers

Rails - Paperclip validating attachment size when it shouldn't be?

I've got a rails model using Paperclip that looks like this: has_attached_file :image, :styles => { :normal => ['857x392#', :png] }, :url => '/assets/pages/:id/:basename.:extension', :path =>…
11
votes
2 answers

Confused about how to install Rails plugins

I found an example here showing how to install a Rails plugin. Their example shows this: ./script/plugin install calendar_helper This won't work for me because, confusingly, I don't have anything called plugin in my script directory. All I have is…
Jason Swett
  • 43,526
  • 67
  • 220
  • 351
11
votes
1 answer

Sharing a mongoid model between 2 applications - using engine vs. plugin

I want to share a model between 2 (maybe more in the future) of my rails apps. I couldn't find any clear suggestions, but I picked up some of the questions and answers I've read and came to a conclusion that it has to be done with a "gemmed" plugin…
benams
  • 4,308
  • 9
  • 32
  • 74
11
votes
4 answers

acts_as_list with has_and_belongs_to_many relationship

I've found an old plugin called acts_as_habtm_list - but it's for Rails 1.0.0. Is this functionality built in acts_as_list now? I can't seem to find any information on it. Basically, I have an artists_events table - no model. The relationship is…
11
votes
2 answers

Rendering validation errors in Ruby on Rails

In a model say Task, I have following validation validates_presence_of :subject, :project, :user, :status How do I render error messages for these validations using some other controller. Inside CustomController I am…
hitesh israni
  • 1,742
  • 4
  • 25
  • 48
10
votes
7 answers

Logout with http basic authentication and restful_authentication plugin

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]…
Chris Drappier
  • 5,280
  • 10
  • 40
  • 64
10
votes
3 answers

generators and migrations in plugins (rails 3)

I am simply trying to create a plugin migration generator without any parameters, like : $rails generate yaffle and this should copy the migration file (lib/generators/yaffle/template/create_yaffle.rb) to db/migrate/[timestamp]_create_yaffle.rb.…
Madhusudhan
  • 8,374
  • 12
  • 47
  • 68
1 2
3
47 48