In our eternal quest to integrate Javascript into our RSpec and Cucumber workflow we're evaluating Culerity and are provisionally very excited about it.
Any advice on Culerity in general or specifically as compared to Selenium?
...
hi,
I would like to schedule a daily task : every day at 7am, I want an email to be sent (without human intervention).
I'm working on the RoR framework and I'm wondering what is the best way to do that?
I've heard about BackgrounDRB, OpenWFEru scheduler or things based on Cron, but I'm a newbie and don't understand which one is made f...
I'd like to implement a Rails User model that has a DB column called password. I want to make it so that when I call...
user_instance.password = 'cleartext'
the method hashes the cleartext before setting it on the instance like so:
Digest::SHA1.hexdigest(cleartext)
I've tried using a callback, but the problem is that is hashes the ...
I find fixtures a bit tedious to use in Ruby on Rails, partly because I need to manually correct them after most migrations.
Is there a way (a plugin?) I can have my fixtures modified when I run my migrations?
...
Is there a rails plugin that will do alphabetical pagination/navigation?
I have a very large data set and would prefer something that gave users a more direct navigation cue in addition to 1..2...3...4...5 pagination.
I could code it myself but was wondering if there was a decent plugin out there already that would do it for me.
...
I have recently installed Nginx + Thin on my deployment server, but i am not sure how this will perform in last requests & responses situation. lets say 1000/req per sec.
so the speed on thin is good with 10-100 req /per sec
I wanted to know on higher volumes of data being processed on the request/response cluster.
Guide me on this :-...
I am stuck in a weird Design problem,
I am working on a two type of profiles Models,
User profile (belongs to User)
others that are maintain in-site as "bots" (doesn't belong to anybody)
The typical OO behaviour of these two types of Profiles is same but only the important attributes/properties are common ( the very important on...
Is there any helper method (Other than default rails breadcrumb) that generates bread crumb navigation dynamically for a particular page without having to pass trivial parameters in RESTful application? That is, something that figures out automatically where the user is based on the REST url she is visiting?
For above mentioned implemen...
I'm looking for a blogging tool with some light CMS features in Ruby on Rails. I mainly want something simple, but configurable. I have no need for page snippets, etc. Just your basic main blog, very good (and easy) theme support, some nice sidebar stuff, a few static pages and MetaWeblog API support.
I'm thinking of either using Mephis...
Anybody have experience with Rails workflow plugins? Route/OpenWFEru.
I am looking for CMS type workflow with states like edit, submit, approve, rollback, based on roles. Is this plugin overkill? Would I be better off just doing the same thing with a state machine (AASM) and acts as auditable/acts as versioned?
...
My aim is to create nested resources via one REST request. The REST requests is represented via a XML document. That works fine for single resources but I could not manage it for nested ones. OK I'll give you a little example next.
First create a new rails project
rails forrest
Next we generate the scaffolds of two resources, the tre...
I am using the fine paperclip plugin for rails. Everything is nice so far, users can upload images.
Now i want an extra step before my model is saved, asking for confirmation by the uploader that the image looks right.
Is this possible to do with paperclip? If so, how?
...
Hello,
I have three models that can all have a Review and each review must belong to a User. I am using polymorphic associations :as => :reviewable but I am not sure where I should put the logic for creating a review for each model. I would assume that the CRUD for each review should be handled by the reviews_controller (or nested attri...
I have a requirement to build 'versioning' into an application and was wondering how best to approach it.
I have this general pattern:
Model A has many B's
Where on update the attributes of A need to be versioned and its associated objects (B's) also need to be versioned. So the application will display the current version of A, but ...
I plan to create a method that would format a Time in a specific way (specialized formatting in Russian).
I would like to reuse this helper method in multiple models, controllers and possibly views. Also I would like to call this helper method on instance of Time class like follows:
t=Time.now
t.my_super_shiny_helper
Question: where ...
Hi All,
I just installed Apache 2, Phusion Passenger and Rails 2.2.2 on Centos 5.2 64 bit server.
My mysql database is latin1, and my setup works on php server, and my rails setup is also working besides character encoding with the data from database.
I have set
meta http-equiv="Content-Type" content="text/html;charset=iso8859-1" (omi...
I have an app that hosts several accounts, each mapped to its own domain.
I want to define different page caching directories for each account.
I have this in my application controller (before filter):
self.page_cache_directory = RAILS_ROOT+"/public/cache/" + @account.name
But that doesn't seem right because it effectively overwrite...
I have a Rails 2.2 web app running on Passenger / REE
I set the default locale in config/environment.rb
config.i18n.default_locale = 'en-GB'
The first request seems to have no locale set in I18n.locale
If I the visit a page with a before_filter that sets I18n.locale every subsequent visit to any controller even if it doesn't have tha...
Afternoon,
Lets say I have gather a random selection of users:
User.find(:all, :limit => 10, :order => "rand()")
Now from these results, I want to see if the user with the ID of 3 was included in the results, what would be the best way of finding this out?
I thought about Array.include? but that seems to be a dead end for me.
Thanks...
When using <%= f.datetime_select :start %> for a "new" object form, how can you set the options to not select a date by default but rather a nil/null value? The field in the related model can optionally be null but by default the datetime_select control doesn't have a null option.
...