ruby-on-rails-plugins

Is there a rails plugin that enables users to share links with friends

I have an application where users create their own personal pages. Is there a way to add a feature that allows users to share the url to their personal page with friends through email or Facebook. ...

How to create individual email id to users on my domain through rails ?

I would like to create an email service for all the users on my site for ex [email protected] where users can be able to send and receive personalized emails , Basic feature only send and receive emails in Rails . User can register for email id at xyz.com and send and recieve emails from xyz.com Are there any solution already available i...

RoR plugin/gem for html validtion

I am wondering if there is such a plugin or gem for Ruby on Rails that includes HTML validation (SGML or Tidy) in a testing cycle. I am aware only about this plugin. Looking for alternatives... ...

Rails plugin development documentation and resources

Are there any resources or documentation for developing Rails plugins? I'm using other plugins as examples, but it's hard to know if I'm doing something wrong, or if there's another way to do something. All I can find are old blog posts. I haven't found any documentation on how to develop plugins and what functionality/hooks are availabl...

Good Fileupload plugins for rails

Would appreciate inputs on the best file upload plugins with support of atleast following: Resizing images. Flexibility of specifying the place of storage. Nice AJAX progress bar integration. Multifile uploading facility. Thanks. ...

How are you mapping database records to physical files such as image uploads

37 signals suggests id partitioning to accomplish this thing.. http://37signals.com/svn/archives2/id%5Fpartitioning.php Any suggestions would be more than welcome. Thanks. ...

Why is link_to not taking me where I want it to?

Hi, I have a model 'Asset' and, on the show page, I have this: <%= link_to_remote 'test', :url => { :controller 'looks', :action => 'whatever' } %> The 'looks' controller and 'whatever' action both exist. Now when I go the the show page for the second Asset and click the test link I get this error: Processing AssetsController#2 (...

How could I implement the permit directive through database in rails-authorization-plugin, in a way that an admin user can change?

I'd like to control the permit method with something like this class SomethingController < ApplicationController permit :somerole end where ':somerole' is a field in the database linked to a controller and an action. Something that an user with priviledge can administer and change. Some Idea? ...

Rails Community Engine plugin unit tests fail

Community Engine installed fine locally on my mac, but when I try to install it on my web server, it's giving me some trouble. Here's the problem I'm having now, when I run rake test $ [~/projects/polis]# rake test --trace (in /home/mculp/projects/polis) ** Invoke test (first_time) ** Execute test ** Invoke test:units (first_time) ** In...

How do I install a rails plugin from git via ssh?

Installing a rails plugin using the git:// protocol is easy, you just type script/plugin install git://server.local/my_git_repo.git How do I install a plugin from a git repo hosted over ssh? When I type script/plugin install [email protected]:plugin.git I get "Plugin not found" I know it's not a git issue because the installer ...

Accessing a parameter within a plugin

I'm trying to modify the vestal_versions plugin to accept a parameter I set upon saving. This parameter will act as a new flag to determine when to create a revision upon updating. Currently it will always run upon update when a new revision is needed. Here is the affected area of unmodified plugin code: after_update :create_version, :i...

Problems Rendering View (ActionView::MissingTemplate ... Error) in Custom Plugin

I am trying to develop a plugin for Ruby on Rails and came across problems rendering my html view. My directory structure looks like so: File Structure ---/vendor |---/plugins |---/todo |---/lib |---/app |---/controllers ...

Table cell border

Hi guys, This is the 2x2 table I need to generate: r1c1 r1c2 r2c1 r2c1 ---- In other words I should print the bottom border of the bottom right cell. This is my code: show.pdf.prawn #This is a two dimensional array: my_array = [["r1c1","r1c2"],["r2c1",Prawn::Table::Cell.new(:text => "r2c2", :border_width => 1 , :borders => ...

Rails plugin require issues

Hi! I have a problem creating a Rails plugin, lets call it Mplug. The plugin is pretty much only a rake task, but with a library that the rake task uses. The problem is to require files. Lets say that this is the rake task: namespace :mplug do task :create do Mplug::Indexer.new end end This will not recognize the constant Mp...

How to use the authorizable_type and authorizable_id field in role table of the rails-authorization-plugin?

I know these fields are for polymorphic associations, but I'm not sure how to use them, Is there any example or some help about this? ...

How could avoid the rspec drops the test database?

I have some fake data in the test database, but when I run rake spec the script drops and creates the whole database. How could I avoid that? or is it something I'm doing wrong? EDIT: I just don't want to generate 1.000.000 records from the database every time. It took so long. ...

How could I justify text in a text_box in Prawn?

Is there a way to justify text in pdf.text_box using the prawn plugin? ...

Single Account for Multiple Application login in Rails

Hello, I'm building some applications using rails. All apps using restful auth plugin for User base and declarative authorization plugin for authorization rules. But I need to merge all site's User accounts to one User base for providing login for all sites. I.e like 37signals working on. Here is their work ; http://37signals.com/...

How to use rails plugin - fetcher

Hi, I'm making a rails app which should receive e-mails. So I made a little research and figured out that I should use Fetcher plugin. But the problem is that I don't know how to use it! Please help... ...

convert from a 2d array to nested_set in Ruby on rails

I have a tree structure in a .csv file (nodes are of type text), and after reading the csv i want to store the data in a ruby object. I went through a few tree plugins and i think nested_set would serve the purpose for me. However, i am facing problem with fixing a format of csv file, so that i can read it and convert into tree object. I...