After a photo is uploaded and created using attachment_fu, is there a way to edit just the thumbnails and leave the original as it is? I understand how to do the resizing or cropping, but it's applying the edits to all of the thumbnails and the originals, which is how I'm sure attachment_fu was intended to work.
For example, say in a p...
Hi everone,
I'm trying to generate model diagrams using the railroad gem. I have managed to generate a diagram for a different app, but I'm trying to get my head around some "legacy" code, and keep running into problems.
I know very little about ruby or rails, so any help would be appreciated...
Basically, I run:
$ railroad -v -M
...
Hello folks.
I have built an engine-like plugin thanks to the new features of Rails 2.3. It's a 'Product' module for a CMS, extrapolated from a previously existing (and working) model/controller.
The plugin relies on easy_fckeditor and on globalize (description and title field are localised), and I suspect that globalized could be the cu...
For someone who would like to develop a webstore type web application, and at the same time learn about web development with rails, would you recommend using a shopping cart service or starting from scratch? I guess I'm not entirely sure exactly what shopping cart software is either, so if someone could elucidate this and explain why som...
I am talking about rails resource_controller gem plugin here:
Basically when I am doing json format, I would like to completely suppress the flash notice if possible, trying to call flash "" will fail, while calling flash[:notice]="" doesn't look really nice either. Is there some better approach?
...
I'm trying to write a plugin that aliases some methods in ActiveRecord in the following fashion:
class Foo < ActiveRecord::Base
include MyOwnPlugin
acts_as_my_own_plugin :methods => [:bar]
def bar
puts 'do something'
end
end
Inside the plugin:
module MyOwnPlugin
def self.included(base)
base.class_eval do
...
Hi
Can anyone recommend some rails plugins that would allow me to register various notification against models that could be linked to a set of templates to format emails (and possibly other).
Ideally the plugin could be referenced in one line from each model and the notification format could be passes from some construct such as user...
I've got a rails app using the master_slave_adapter plugin (http://github.com/mauricio/master_slave_adapter/tree/master) to send all selects to a slave, and all other statements to the master. Replication is setup using Mysql master / slave. I'm trying to validate that all the SQL statements are indeed going to the right place. Select...
Is it possible to include view code in a plugin, such that an app using the plugin can simply call reference the view code like it might reference one of its own partials.
Am I off track here or are there good examples of plugins which do this..
...
I was just watching a preview of a session at Aloha on Rails called "You're Doing it Wrong".
In the short preview, he mentions using ActiveRecord models as enumerations (I assume he means plugins like enumerate_by). This seems like reasonable idea to me, what are the problems? Is it just the overhead required by the additional objects?
...
I maintain legacy website running on Ruby on Rails and Goldberg CMS. Some things that are really trivial to do in Rails are difficult to implement in Goldberg. For instance: I want some content pages created by Goldberg CMS to use non-standard layout (currently, every Goldberg page uses default application.html.erb layout) - how can I do...
I'm using New Relic for Rails, but only need New Relic to monitor my one production environment. However, I have a staging server that also runs in Production mode. New Relic detects both as operating prod instances of my application (as it should), but I don't want to have to pay for monitoring two instances when I only want to keep a...
Where do I reference my controller (Rails) URL to show the dataset that I want in the autocomplete via JQuery? Here is my head:
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript" src="http://dev.jquery.com/view/trunk/plugins/autocomplete/lib/jquery.bgiframe.min.js"></script>...
We are developing a functionality that allows the users to save the downloaded file. We are struggling to get a popup where the user can select a target location / folder to save his file. Can this be achieved using rails?
...
What are the available (best) ruby IP-based geolocation gem/plugins?
How do they compare to one another in terms of functionality, performance and ease of use (e.g. do they interact with a web service, or require a separate database, etc.) ?
I'm hoping anyone that has used some can share their experience and give recommendations.
...
Hello,
I installed the ruby on rails plugin "open_id_authentication". After running the migration it created two tables "open_id_authentication_associations" and "open_id_authentication_nonces" does anyone know what those tables do and how they are used?
Thanks
...
I am trying to create a plugin and use it in my project.
I created a plugin using 'ruby script/generate plugin pluginname' and added the necessary code in the rb file in lib. I added 'require File.dirname(FILE) + '/lib/pluginname' in init.rb file
I added the pluginname in my controller where I want to use it..and it throws me an except...
Hi,
I'm building a simple project collaboration tool using rails 2.3. Authentication is handling with Restful Authentication plugin and for role management using Role Requirement plugin.
I need to create User collaboration. For example, when an authorized User logged in, User can create a team that belongs to User, so team can login a...
Hi, I am looking for a simple way to implement simple "coming soon" (pre-launch) page for my project on Ruby on Rails.
User should be able to leave an email in order to be notified when project is launched.
Is there such a plugin\gem? Or I should do it myself...
...
I'm writing a plugin that adds a class method to ActionController::Base, so in my functional test I am creating a simple controller to test against. The example below is totally stripped down to basically do nothing. The test succeeds all the way up to assert_template, which fails.
require 'rubygems'
require 'test/unit'
require 'active_...