I have a Rails 2.3.5 application which has a file upload functionality using paperclip. When I upload a file first time everything works fine. But the second time I try I get the following error message
uninitialized constant ActiveSupport::MessageVerifier::Encoding
From the trace it looks like an issue with form_authenticity_token....
For example: I want to create a new kind of tag (fancy_input_tag) for use from any view as a plugin. No problem, I can do this. The trick is my tag requires the use of stylesheets and javascripts. As usual, my rake task copies these assets into their appropriate public folders.
Having built this plugin myself, there’s no real issu...
Could you tell me how to add internationalization for select tags in formtastic?
# view
....
f.input :hair_colour, :as => :select, :collection => HAIR_COLOURS
....
# user.rb
class User << AR
validates_inclusion_of :hair_colour, :in => [0..8]
end
# de.yml
de:
profile:
hair_colour:
0: "Blond"
1: "Dunkelblond"
...
I'm sure this is astonishingly straightforward, and I'm just inexperienced with Rails 3, but I can't figure out how to make it work.
I'm trying to install the paper_trail plugin into my Rails 3 app; but the instructions seem designed for Rails 2. I'm running under Windows, and don't have git available.
I've tried putting gem 'paper_tra...
I have a weird issue .I am using simple captcha in forms in my rails applications. If I am using one captcha in a web page I don't have any problem. But I have a scenario of using three(3) forms in one page in which all the three forms will have the captcha . So that when I refresh the page the captcha data of the three forms are equal....
I created a plugin for a OS Rails Project. The plugin makes the tests fails, in order to preserve the system consistency, i would like to override the app tests which fails once the behavior of my plugin is applied.
I have created patches to modify the methods of some existing classes through patches in Class and Instance methods, and I...
Is there any "like" , "dislike" plugin for rails...
I went through rating plugins... but all of them were 5 star rating plugins...
...
I've been using Wordpress for awhile, it's installed on my own server, and one of the features I most love about it is how every time there is a new version it alerts you within the app's web-based admin and with one click I can upgrade the app. I don't have to get anywhere near a console.
Personally I wouldn't mind updating manually, b...
Whether Calendar Helper Plugin works fine for rails3 ?
...
I'm just trying to run a migration, but I'm getting the following stacktrace (below).
I'm using rails 2.3.8 and desert 0.5.4.
rake aborted!
undefined method `abstract_class?' for Object:Class
/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/base.rb:2242:in `class_of_active_record_descendant'
/usr/lib/ruby/gems/1.8/gems/...
i am building a blog and would like to know good tools and plugins to implement a commenting system.
...
I have just set up file uploads to Amazon S3 using Rails 3 and Paperclip. All this works amazingly well and is up and running. There is just one small detail that I would like to sort out. At the moment, the urls are the amazon urls (ie start http://s3.amazonaws.com) and I would like them to begin with my domain.
I have already added...
Lets say my file lives in the config folder and it's called config/foo.yml. I want to write in that file something like this:
development:
status: developing
foo: dev-bar
production:
status: on-air
foo: prod-bar
And then, I want my plugin to read this file and take the correct configuration values according to the environment...
Hello,
I'm using the Rails 3 nav plugin simple-navigation: http://github.com/andi/simple-navigation
In the configuration file you can setup a regex to determine what element gets the ".selected" class.
Example:
primary.item :projects, 'Projects', project_path, :class => "sideNav-main", :highlights_on => /\/projects/
The above work...
How to do page caching in rails 3. Is there is any plugins or gem for that? whether page_cache_fu will work for rails 3?
...
Hi,
I am writing my first ever plugin for rails. The plugin is supposed to extend the actioncontroller::base
so after going through the tutorials here is what i did...
# Foo
class << ActionController::Base
def function_name
assuming the plugin is called foo... but when i call function_name from an action, nothing happens... It see...
How I will use responds_to_parent plug in rails 3. I had used it in rails 2.3.5. At that time there was no errors. But when I shifted to rails 3 its showing the following error
undefined local variable or method `erase_redirect_results'.
How to solve this issue? Please help me ?
...
I am looking for a way to allow web users to view tabular information in a view, and interact with the data in a similar way. In other words:
Tab through cells
Highlight multiple cells
Fill multiple cells simultaneously
Does such a plugin exist? I have not been able to locate one via search engines.
...
In my controller
@comment = Comment.build_from(@post, @user.id, comment_body)
@comment.save
When I access,
@comment.user
this is weird - Watch window shows that this a User object with an object id
but it is practically empty meaning the attributes is nil
so when I do @comment.user.id, it chokes.
The comment.rb...
I'm trying to move the authlogic (and other common plugin) configuration from one of my Ruby on Rails applications to a plugin so that I don't have to duplicate the common permissions and authentication features in each application.
The user session class is defined in app/model/user_session.rb for the main application:
class UserSessi...