Model def before_save self.default_file_name = \"#{self.model_name.underscore}.csv\" if self.default_file_name.nil?
I am playing with extending jQuery with a function that has two params: a callback func开发者_开发知识库tion and a timeout. I\'m on pre 1.4 so I don\'t have the .delay() built-in, but even that isn\'t
HI, I\'m using the Nivo Slider, a jQuery plugin allowing to create slideshow. He\'s perfect but I\'ve just a little problem. Each pictures have an id (or another element like rel for example) and I w
I\'ve been working on an application that will allow for third-party extensions to be built to expand the application\'s functionality. All this in PHP, of course. I wanted to add a bit of security pa
I\'m new to working with flash and have a quick question about embedding Flash with the SWFObject.js file.
I\'m trying to delete images when deleting the container of those images with a cascading model::delete
In my controller i want to dynamically bind my instance method to the before_save call开发者_开发问答backs.
Ok, I am trying to destroy multiple records in a before_create: class InventoryItem < ActiveRecord::Base
A gem I am using inserts an after_save callback that I would like to remove. It seems to me it w开发者_JS百科ould be cleaner to delete a symbol from an array than to fix the problem with a monkeypatch
I working with jQuery and i needed to generate an anonymous method with the eval() function. The following lines worked with Opera but not with IE, FF, Chrome: