| Author |
Message |
Topic: Usage of build method in rails |
ktulasi
Replies: 0
Views: 30
|
: The Mechanics of Ruby programming Posted: Thu Jul 22, 2010 12:19 pm Subject: Usage of build method in rails |
Hi,
Build method in rails is very useful.build method is a method in active record base class.
collection.build(attributes = {}, …)
build is used in adding a record into a :has_many relat ... |
Topic: delayed_job plugin |
ktulasi
Replies: 0
Views: 53
|
: Plugins and Gems Posted: Wed Jul 14, 2010 12:37 pm Subject: delayed_job plugin |
The delayed_job is a gem which is used for running jobs in background.The main purpose of running the jobs in the background is to speed up the user response or running periodic tasks.
Actually if y ... |
Topic: send_data and send_file in rails |
ktulasi
Replies: 0
Views: 90
|
: The Mechanics of Ruby programming Posted: Wed Jul 14, 2010 9:40 am Subject: send_data and send_file in rails |
send_data:
------------
send_data, Sends the given data to the browser. This method allows you to specify if the browser should display the response as a file attachment i.e. in a download or as in ... |
Topic: Placing Download option in rails application |
ktulasi
Replies: 0
Views: 48
|
: The Mechanics of Ruby programming Posted: Thu Jul 01, 2010 12:46 pm Subject: Placing Download option in rails application |
| Placing a download option of a file/image is easy.Actually my requirement i did is.I am having an option of inserting a image or file into database,and whereas in show page i need to have a download o ... |
Topic: migration of rake task |
ktulasi
Replies: 0
Views: 52
|
: Rails Database setup Posted: Mon May 31, 2010 1:48 pm Subject: migration of rake task |
To migrate a rake task,
in my application in tasks folder i am having categories.rake file,
like
namespace :hello do
desc "Admin Data"
task :mytask => :environment do
... |
Topic: request_uri method |
ktulasi
Replies: 0
Views: 66
|
: Advanced programming Posted: Mon May 31, 2010 1:37 pm Subject: request_uri method |
In my rails application,i have a requirement that,the page after logged in need to redirect to page,what we clicked before login,that is
I have clicked on details page of jobs,as login required for ... |
Topic: regexp for removing all html tags |
ktulasi
Replies: 0
Views: 61
|
: The Mechanics of Ruby programming Posted: Mon May 31, 2010 12:55 pm Subject: regexp for removing all html tags |
The regexp for removing all the html tags like colors,anchoring,and images too,
that regexp is
gsub(/<\/?[^>]*>/, "")
In my application, i need to remove the images and style ... |
Topic: Concept of geocoding in rails |
ktulasi
Replies: 0
Views: 85
|
: Plugins and Gems Posted: Sat May 29, 2010 7:20 am Subject: Concept of geocoding in rails |
Google Maps with the local search, there's a new geocoding plugin for RubyOnRails: http://geokit.rubyforge.org/
It a cool feature set, allowing us to do very easy geocode lookups and distance calcu ... |
Topic: Search engine optimization tips |
ktulasi
Replies: 0
Views: 71
|
: Experts Support & Chit Chat Posted: Fri May 28, 2010 1:35 pm Subject: Search engine optimization tips |
Search Engine Optimization (SEO) is very useful for the success of almost every website. The majority of traffic to websites is brought in by search engines.
Keywords are an important part of SEO. ... |
Topic: Debugging in rails |
ktulasi
Replies: 0
Views: 137
|
: Plugins and Gems Posted: Fri Apr 30, 2010 1:00 pm Subject: Debugging in rails |
| Debugging is the process of finding and reducing the number of bugs, or defects, in a program.Debugging ranges, in complexity, from fixing simple errors to performing lengthy and tiresome tasks of dat ... |
Topic: Use of lib folder in the application |
ktulasi
Replies: 0
Views: 82
|
: The Mechanics of Ruby programming Posted: Thu Apr 29, 2010 6:21 am Subject: Use of lib folder in the application |
When we create an application in rails it creates the entire directory structure for the application.
In that lib is one of them,
In lib folder defaulty a tasks folder is generated.and we can wr ... |
Topic: pretty_flash plugin |
ktulasi
Replies: 0
Views: 87
|
: Plugins and Gems Posted: Wed Apr 28, 2010 12:31 pm Subject: pretty_flash plugin |
pretty_flash plugin is used to provide pretty flash messages.
This plugin gives some methods that set flash message with style and with image.
Usage:
-------
1.download the plugin from,
h ... |
Topic: autocomplete plugin |
ktulasi
Replies: 0
Views: 83
|
: Advanced programming Posted: Wed Apr 28, 2010 10:52 am Subject: autocomplete plugin |
Auto complete plugin is used to find the text from the database.
When we have given a text field auto complete then when we enter a letter,it automatically views all the texts with that letter.This p ... |
Topic: write_attribute |
ktulasi
Replies: 0
Views: 89
|
: Experts Support & Chit Chat Posted: Wed Apr 28, 2010 10:45 am Subject: write_attribute |
write_attribute(attr_name, value):
---------------------------------------
write_attribute is used to set the attr_name to a given value.Empty strings for fixnum and the float columns will turn to n ... |
Topic: Update_attribute vs Update_attributes |
ktulasi
Replies: 0
Views: 137
|
: A little Ruby programming (Basic programming in RoR) Posted: Wed Apr 28, 2010 10:33 am Subject: Update_attribute vs Update_attributes |
update_attribute(name, value):
-------------------------------------
Updates a single attribute and saves the record without doing validation procedure. This one is very useful for boolean flags. ... |
| |