Wednesday, 21 March 2012
extract_options! usage
In one of my method in my code, I have seen the method "extract_options!"
def fields_for(record_name, *args, &block)
options = args.extract_options!
-----
-----
-----
end
Its mainly used for removing the hash from the array from the last postion if exists and return the array.
Thank You,
Uma Mahesh
Tuesday, 20 March 2012
html to haml
Hi,
Here is the nice web interface where you can convert the html code to haml simply by button click.
URL: http://html2haml.heroku.com/
Thank you,
Uma Mahesh.
applying css class for country_selec tag.
Hi,
I am using country_select tag for displaying the list of all countries in the dropdown. I have faced issue for applying css class to fix the width for the slect box.
I have tried passing the html options as below
= f.country_select(:country, {:class => "span2", :id => "select01"})
But select box was not effected with style. After making some googling found the solution. Below is the solution.
f.country_select(:country, {},{}, {:class => "span2", :id => "select01"})
Need to pass two blank hashes. The fourth parameter is the html options parameter for country_select tag.
Thank You,
Uma Mahesh.
Tuesday, 13 March 2012
Wednesday, 7 March 2012
usage of "changed_attributes" method in active record
Hi,
changed_attributes method provides a useful functionality to check the value that was updated in a column in before the object being saved.
These methods available under the "Active Model Dirty"
Here is the clear explanation on it.
person = Person.find_by_name('Uma Mahesh')
person.changed? # => false
person.name = 'Varma'
person.changed? # => true
person.name_changed? # => true
person.name_was # => 'Uma Mahesh'
person.name_change # => ['Uma Mahesh', 'Varma']
A clear explanation of these methods were explained in the url :
http://api.rubyonrails.org/classes/ActiveModel/Dirty.html#method-i-changed_attributes
This method can be used to check the column value was updated or not. If you want to check the specific column value was update or not, this can be done by as below.
In your model:
before_update :update_image_count_counter
def update_image_count_counter
if changed_attributes.keys.include?("image_count")
# your required code comes here
end
end
Thank You,
Uma MaheshSunday, 11 September 2011
Ruby on Rails Job at Memory Reel (Dallas, Texas
Required Senior Web Developer (Ruby on Rails) to join our team
The tech skills:
-Stellar Ruby on Rails development skills - a big plus if you've participated in Open Source Contributions or worked on the core team.
-Along with that, a strong SQL Plus background from query optimization to server configuration and tuning. Your SQL has got to be fast. A plus if you've worked with databases like RIAK, Cassandra or Voldemort.
-A few years of experience writing complex JavaScript. We're currently using jQuery but you should be versed in many JS frameworks.
-Some experience working with 3rd party APIs, particularly real time API's such as Twitter's.
-Rounding it out, some front-end skills as well (HTML, CSS, etc), some Linux admin skills, and overall tech savvy to find solutions to get the job done.
apply through email: services@memoryreel.com
The tech skills:
-Stellar Ruby on Rails development skills - a big plus if you've participated in Open Source Contributions or worked on the core team.
-Along with that, a strong SQL Plus background from query optimization to server configuration and tuning. Your SQL has got to be fast. A plus if you've worked with databases like RIAK, Cassandra or Voldemort.
-A few years of experience writing complex JavaScript. We're currently using jQuery but you should be versed in many JS frameworks.
-Some experience working with 3rd party APIs, particularly real time API's such as Twitter's.
-Rounding it out, some front-end skills as well (HTML, CSS, etc), some Linux admin skills, and overall tech savvy to find solutions to get the job done.
apply through email: services@memoryreel.com
Friday, 9 September 2011
Ruby Conference 2011
RubyConf 2011 @ New Orleans
RubyConf is the official International Ruby Conference. Founded in 2001, RubyConf has provided an annual venue for the ever-growing Ruby community to meet face to face to share, collaborate, and socialize.
venue :
$153 Crowne Plaza Hotel Astor-New Orleans
739 Canal Street
New Orleans, LA 70130
(888) 891-9563
schedule :
A complete schedule with the author and his presentation has been listed here. http://rubyconf.org/schedule
Few of the Important authors are : Yukihiro Matsumoto, Amit Kumar, Jim Weirich, Piotr Szotkowski, Avdi Grimm and many more
sponsor: You can be sponsor and make your self advertised at top.
Get register and make the event sucess.. cheerss...
online event management
RubyConf is the official International Ruby Conference. Founded in 2001, RubyConf has provided an annual venue for the ever-growing Ruby community to meet face to face to share, collaborate, and socialize.
venue :
$153 Crowne Plaza Hotel Astor-New Orleans
739 Canal Street
New Orleans, LA 70130
(888) 891-9563
schedule :
A complete schedule with the author and his presentation has been listed here. http://rubyconf.org/schedule
Few of the Important authors are : Yukihiro Matsumoto, Amit Kumar, Jim Weirich, Piotr Szotkowski, Avdi Grimm and many more
sponsor: You can be sponsor and make your self advertised at top.
Get register and make the event sucess.. cheerss...
online event management
Ruby on Rails Job at ettain group
ettain group has an immediate opening for a Ruby on Rails Developer in Atlanta, GA
Requirements
expert with Ruby on Rails.
good knowldeg on commercial Web-based products
strong Web development background using JRuby, JavaScript, CSS, HTML, XML, XSLT, etc.
communication skills should be good
please apply online @ http://www.ettaingroup.com
there are some 700 unfilled Ruby on Rails jobs.
Recently while reading an article, I came to see there are huge number of job openings are still left with unfilled state. some 700 unfilled Ruby on Rails jobs. . This shows the growth of ruby on rails development and its demand. In recent days Ruby on rails development team has been increasing day by day... I feel so proud to be a part of ruby on rails development team.
Here are the few words from that article.
Ruby on Rails has become the language of choice for many developers because it has shown to be scalable and has been successfully used in some large corporate development projects and large consumer web services. And so the demand for Ruby on Rails specialists is soaring. Mr Dillon points out that in San Francisco, there are some 700 unfilled Ruby on Rails jobs.
But despite the popularity of Rails Mr. Dillion believes there’s a strong future for PHP to become a strong Rails competitor. Which is why the company recently acquired Irish startupOrchestra, because the same technologies that support its Ruby on Rails customers can be used to support PHP development.
Thank you,
Uma Mahesh
Here are the few words from that article.
Ruby on Rails has become the language of choice for many developers because it has shown to be scalable and has been successfully used in some large corporate development projects and large consumer web services. And so the demand for Ruby on Rails specialists is soaring. Mr Dillon points out that in San Francisco, there are some 700 unfilled Ruby on Rails jobs.
But despite the popularity of Rails Mr. Dillion believes there’s a strong future for PHP to become a strong Rails competitor. Which is why the company recently acquired Irish startupOrchestra, because the same technologies that support its Ruby on Rails customers can be used to support PHP development.
Thank you,
Uma Mahesh
Subscribe to:
Posts (Atom)