<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4989427063974464445</id><updated>2011-07-08T02:37:56.207-07:00</updated><title type='text'>RUBY ON RAILS</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://railsislife.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4989427063974464445/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://railsislife.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>suri</name><uri>http://www.blogger.com/profile/09410384151596504975</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_vYDrOw8_sBw/TUvuH99XtlI/AAAAAAAAAHA/VOfiwB1ljAo/s220/30841_1442641020149_1056807304_1317040_3758222_n.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4989427063974464445.post-9063949365976027282</id><published>2009-10-09T07:01:00.001-07:00</published><updated>2009-10-09T07:20:37.089-07:00</updated><title type='text'>How to integrate google maps with rails using ym4r _gm plugin</title><content type='html'>step 1:&lt;br /&gt;first you need to install the plugin like this&lt;br /&gt;&amp;nbsp;railsapp&amp;gt;&lt;br /&gt;&lt;pre&gt;ruby script/plugin install svn://rubyforge.org/var/svn/ym4r/Plugins/GM/trunk/ym4r_gm&lt;/pre&gt;&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;step 2:&lt;/pre&gt;&lt;pre&gt;put ym4r-gm.js file in javascripts directory(search in ym4r-gm plugin for js file)&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;pre&gt;step 3:&lt;/pre&gt;&lt;pre&gt;get googlemaps_api_key.yml file and put it in config folder(which consists of google maps api key)&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;pre&gt;step 4:&lt;/pre&gt;&lt;pre&gt;Mention like this in your controller which you want gmaps&lt;/pre&gt;&lt;pre&gt;require 'ym4r/google_maps/geocoding'&lt;br /&gt;require 'rubygems'&lt;/pre&gt;&lt;pre&gt;require 'google_geocode' &lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;step 5:&lt;br /&gt;In the view you need to mention like this otherwise it wont work:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;header&gt;&lt;br /&gt;  &amp;lt;%= GMap.header %&amp;gt;&lt;br /&gt;&lt;/header&gt;(application.rhtml)&lt;/pre&gt;&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&amp;lt;%= @map.to_html %&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br /&gt;&amp;lt;%= @map.div(:width =&amp;gt; 600,&lt;/pre&gt;&lt;pre&gt;:height =&amp;gt; 400) %&amp;gt;(the view which u want)&lt;/pre&gt;&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;step  6:&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;pre&gt;Mention like this in the method&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;pre&gt;@map = GMap.new("map_div")&lt;br /&gt;@map.control_init(:large_map =&amp;gt; true, :map_type =&amp;gt; true)&lt;br /&gt;@map.center_zoom_init([lat,lng], 13) &lt;/pre&gt;&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4989427063974464445-9063949365976027282?l=railsislife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://railsislife.blogspot.com/feeds/9063949365976027282/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4989427063974464445&amp;postID=9063949365976027282' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4989427063974464445/posts/default/9063949365976027282'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4989427063974464445/posts/default/9063949365976027282'/><link rel='alternate' type='text/html' href='http://railsislife.blogspot.com/2009/10/how-to-integrate-google-maps-with-rails.html' title='How to integrate google maps with rails using ym4r _gm plugin'/><author><name>suri</name><uri>http://www.blogger.com/profile/09410384151596504975</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_vYDrOw8_sBw/TUvuH99XtlI/AAAAAAAAAHA/VOfiwB1ljAo/s220/30841_1442641020149_1056807304_1317040_3758222_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4989427063974464445.post-7038966327171359063</id><published>2009-09-09T03:12:00.000-07:00</published><updated>2009-09-09T03:19:56.145-07:00</updated><title type='text'></title><content type='html'>&lt;span style="font-weight: bold; font-style: italic;"&gt;FACT:1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Disable Extra Startup Programs&lt;/span&gt;:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;There are certain programs that Windows will start every time you&lt;br /&gt;boot up your system, and during the startup phase, &lt;span style="font-weight: bold;"&gt;they're all&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;competing for a slice of your CPU speed&lt;/span&gt;. Extra or unwanted items&lt;br /&gt;in the startup list will definitely increase your startup time, perhaps&lt;br /&gt;by several minutes. Some common examples are things related to&lt;br /&gt;AOL, RealPlayer, Napster, instant messengers, and video managers.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;                        If you're not sure about an item, no big deal. You can turn it off,&lt;br /&gt;restart your PC, and see if everything seems to work. If not, you canalways&lt;br /&gt;go back and re-enable an item in the Startup list. This tip alone should&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;speed up your start-up by 250%&lt;/span&gt;. Here are is what you have to do:&lt;br /&gt;&lt;br /&gt;1. Go to Start button  Run&lt;br /&gt;&lt;br /&gt;2. Type "msconfig", without quotations&lt;br /&gt;&lt;br /&gt;3. Hit enter key or click the OK button&lt;br /&gt;&lt;br /&gt;4. A System Configuration Utility window will show up&lt;br /&gt;&lt;br /&gt;5. Click the Startup tab&lt;br /&gt;&lt;br /&gt;6. In the Startup tab you will see several boxes and some of them&lt;br /&gt;will selected (checked). All you have to do is to uncheck&lt;br /&gt;extra items that are of no use. If you run an antivirus&lt;br /&gt;program it is not recommended to uncheck it.&lt;br /&gt;&lt;br /&gt;7. After making you choices press the OK button, you will be&lt;br /&gt;prompted to restart computer to apply changes.&lt;br /&gt;&lt;br /&gt;8. After restarting your computer a dialogue will be displayed.&lt;br /&gt;You can check the option for not showing this dialogue every&lt;br /&gt;time your PC reboots.&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4989427063974464445-7038966327171359063?l=railsislife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://railsislife.blogspot.com/feeds/7038966327171359063/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4989427063974464445&amp;postID=7038966327171359063' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4989427063974464445/posts/default/7038966327171359063'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4989427063974464445/posts/default/7038966327171359063'/><link rel='alternate' type='text/html' href='http://railsislife.blogspot.com/2009/09/fact1-disable-extra-startup-programs.html' title=''/><author><name>suri</name><uri>http://www.blogger.com/profile/09410384151596504975</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_vYDrOw8_sBw/TUvuH99XtlI/AAAAAAAAAHA/VOfiwB1ljAo/s220/30841_1442641020149_1056807304_1317040_3758222_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4989427063974464445.post-6865116950523539358</id><published>2009-03-21T23:58:00.000-07:00</published><updated>2009-03-22T00:52:42.651-07:00</updated><title type='text'>UPLOADING IMAGES WITH ATTACHMENT FU PLUGIN</title><content type='html'>&lt;span style="font-weight: bold;"&gt;step:1&lt;br /&gt;&lt;br /&gt;   install attachment_fu plugin&lt;br /&gt;   rails_app&gt;&lt;/span&gt;script/plugin install http://svn.techno-weenie.net/projects/plugins/attachment_fu/&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;step:2&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;  install minimagick gem&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;rails_app&gt;&lt;/span&gt;gem install minimagick(which is better in memory occuping from rest of it)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;step:3&lt;/span&gt;&lt;br /&gt;    &lt;span style="font-weight: bold;"&gt; create a controller medias_controller.rb&lt;/span&gt; &lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;def index &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;       @medias = Media.find(:all)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;end&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;  def new&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;    @media=Media.new&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;  end&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;  def create&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;     @media = Media.new(params[:media])&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;   if @media.save&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;         flash[:notice] = "image successfully uploaded"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;        redirect_to :action =&gt; 'show'&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;   else&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;     logger.debug"%%%%%%%%%%%%% inside else"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;     flash[:notice]="image not uploaded"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;     redirect_to :action =&gt;'show'&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;     end&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;   end&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;  &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;  def show&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;       @media = Media.find(params[:id])&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;  end&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;  &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt; def delete&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt; @media = Media.find(params[:id])&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt; @media.destroy&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt; redirect_to :action =&gt;'index'&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt; end&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;step:4&lt;br /&gt;&lt;br /&gt;      in media.rb file&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;has_attachment  :content_type =&gt; :image,&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;                :storage =&gt; :file_system,&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;                :min_size =&gt; 0,&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;                :max_size =&gt; 1.megabytes,&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;                :resize_to =&gt; '34x38',&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;                :thumbnails =&gt; { :thumb =&gt; '15x15&gt;' },&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;                :processor =&gt; 'MiniMagick',&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;                :path_prefix =&gt; "public/medias/"&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt; validates_as_attachment   &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;step:5&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;     In  views&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;views/medias/index.rhtml&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 102, 102);"&gt;&lt;% for media in @medias %&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 102, 102);"&gt; &lt;%= link_to image_tag(media.public_filename(:thumb)),media.public_filename %&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 102, 102);"&gt;&lt;%= link_to 'Remove',{:action=&gt; 'delete',:id =&gt; media.id},:confirm=&gt; "Are you sure?" , :method =&gt; :post %&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 102, 102);"&gt; &lt;% end %&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;views/medias/new.rhtml&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  &lt;span style="color: rgb(255, 0, 0);"&gt;&lt;% form_for(:media,:url =&gt; {:action =&gt; :create }, :html =&gt; {:multipart =&gt; true }) do |f| %&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;  Select a photo to upload&lt;br/&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;  Photo: &lt;%= f.file_field 'uploaded_data' %&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;          &lt;%= submit_tag 'Upload Photo' %&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;views/medias/show.rhtml&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;&lt;%= image_tag(@media.public_filename) %&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4989427063974464445-6865116950523539358?l=railsislife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://railsislife.blogspot.com/feeds/6865116950523539358/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4989427063974464445&amp;postID=6865116950523539358' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4989427063974464445/posts/default/6865116950523539358'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4989427063974464445/posts/default/6865116950523539358'/><link rel='alternate' type='text/html' href='http://railsislife.blogspot.com/2009/03/uploading-images-with-attachment-fu.html' title='UPLOADING IMAGES WITH ATTACHMENT FU PLUGIN'/><author><name>suri</name><uri>http://www.blogger.com/profile/09410384151596504975</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_vYDrOw8_sBw/TUvuH99XtlI/AAAAAAAAAHA/VOfiwB1ljAo/s220/30841_1442641020149_1056807304_1317040_3758222_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4989427063974464445.post-5548159286123692398</id><published>2009-03-21T23:02:00.000-07:00</published><updated>2009-03-21T23:11:30.670-07:00</updated><title type='text'>ACTION MAILER IN RAILS 2.0</title><content type='html'>&lt;span style="font-weight:bold;"&gt;STEP:1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;   In environment.rb file write it down like this at the end of the file&lt;br /&gt;&lt;br /&gt;require 'smtp_tls'&lt;br /&gt;ActionMailer::Base.default_content_type = "text/html"&lt;br /&gt;ActionMailer::Base.delivery_method = :smtp&lt;br /&gt;ActionMailer::Base.smtp_settings = {&lt;br /&gt;:address =&gt; "smtp.gmail.com",&lt;br /&gt;:port =&gt; 587,&lt;br /&gt;:authentication =&gt; :login,(ur authentication method name here)&lt;br /&gt;:user_name =&gt; "your gmail id ",&lt;br /&gt;:password =&gt; "your gmail password ",&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;STEP:2 &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;   Include &lt;span style="font-style:italic;"&gt;smtp_tls.rb&lt;/span&gt; file in lib folder&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;STEP:3&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;        Follow this url then for&lt;br /&gt;  &lt;a href="http://www.tutorialspoint.com/ruby-on-rails-2.1/rails-send-emails.htm"&gt; action mailer&lt;/a&gt;to work but dont change any configuration files as mentioned in the url for u&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4989427063974464445-5548159286123692398?l=railsislife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://railsislife.blogspot.com/feeds/5548159286123692398/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4989427063974464445&amp;postID=5548159286123692398' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4989427063974464445/posts/default/5548159286123692398'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4989427063974464445/posts/default/5548159286123692398'/><link rel='alternate' type='text/html' href='http://railsislife.blogspot.com/2009/03/action-mailer-in-rails-20.html' title='ACTION MAILER IN RAILS 2.0'/><author><name>suri</name><uri>http://www.blogger.com/profile/09410384151596504975</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_vYDrOw8_sBw/TUvuH99XtlI/AAAAAAAAAHA/VOfiwB1ljAo/s220/30841_1442641020149_1056807304_1317040_3758222_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4989427063974464445.post-8418409642782604507</id><published>2009-02-09T02:04:00.000-08:00</published><updated>2009-02-09T02:06:20.572-08:00</updated><title type='text'></title><content type='html'>&lt;form id="good" src="sdfdsfsd" method="pos"&gt;&lt;br /&gt;&lt;input type="text", name="name"&gt;&lt;br /&gt;&lt;/form&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4989427063974464445-8418409642782604507?l=railsislife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://railsislife.blogspot.com/feeds/8418409642782604507/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4989427063974464445&amp;postID=8418409642782604507' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4989427063974464445/posts/default/8418409642782604507'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4989427063974464445/posts/default/8418409642782604507'/><link rel='alternate' type='text/html' href='http://railsislife.blogspot.com/2009/02/blog-post.html' title=''/><author><name>suri</name><uri>http://www.blogger.com/profile/09410384151596504975</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_vYDrOw8_sBw/TUvuH99XtlI/AAAAAAAAAHA/VOfiwB1ljAo/s220/30841_1442641020149_1056807304_1317040_3758222_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4989427063974464445.post-7919380673871577437</id><published>2008-11-22T00:47:00.000-08:00</published><updated>2009-01-16T03:05:37.931-08:00</updated><title type='text'>RAILS</title><content type='html'>&lt;span style="font-weight:bold;"&gt;How to change a layout for a particular method&lt;/span&gt;:&lt;br /&gt;&lt;br /&gt;(1)suppose if ur following a particular layout for ur application(&lt;span style="font-style:italic;"&gt;application.rhtml&lt;/span&gt;)&lt;br /&gt;(2)if u dont want this layout for a method eg.&lt;span style="font-style:italic;"&gt;edit&lt;/span&gt; &lt;br /&gt;    just create another layout for that method eg.&lt;span style="font-style:italic;"&gt;layout/editlayout.rhtml&lt;/span&gt;&lt;br /&gt;    and specify in that method as &lt;br /&gt;&lt;br /&gt;       &lt;span style="font-style:italic;"&gt; def edit&lt;br /&gt;          render :layout =&gt; 'editlayout'&lt;br /&gt;        end&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;How to specify background image in stylesheet &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;=&gt;Suppose if u r not getting the background image even though u specify in ur stylesheets like&lt;br /&gt; &lt;br /&gt;                 &lt;span style="font-style:italic;"&gt;  background-image:url(/img/hp_bg.png);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;the current usage in rails try this&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt; background: url(../images/background.jpg)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;How to use in_place_form_edit in Rails 2.0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;(1)first u need to install the plugin from svn&lt;br /&gt;      &gt;&lt;span style="font-style:italic;"&gt;ruby script/plugin source http://svn.rubyonrails.org/rails/plugins/ &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;      &gt;ruby script/plugin install in_place_editing&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;(2)Because it is unsupported the in_place_edit plugin has not kept up with     changes to rails. This has resulted in the plugin not working with Rails 2+ because of the Cross-Site-Request-Forgery (CSRF) security modifications that include a authenticity token with every non-GET request.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;(3)View the patch located &lt;span style="font-weight:bold;"&gt;&lt;span style="font-style:italic;"&gt;http://dev.rubyonrails.org/attachment/ticket/10055/in_place_editing_should_work_with_csrf_and_rjs.patch&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt; and by hand change the code in &lt;span style="font-weight:bold;"&gt;yourapp/vendor/plugin/in_place/editing/test/in_place_editing_test.rb&lt;/span&gt;. The red lines are deleted/replaced and the green are the new lines that are added.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;(4)In the controller&lt;br /&gt;     &lt;br /&gt;     &lt;span style="font-weight:bold;"&gt; &lt;span style="font-style:italic;"&gt;class TaskController &lt; ApplicationController&lt;br /&gt;        in_place_edit_with_validation_for :task, :title&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;(5)In views do like this for the field u want to edit&lt;br /&gt;&lt;br /&gt; &lt;span style="font-weight:bold;"&gt; &lt;span style="font-style:italic;"&gt;&lt;%@task=task %&gt;&lt;%= in_place_editor_field :task, :title %&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;(6)Then start ur server and you will see really how simple it is&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;(7)so u think it is finished no way there is a bug in this if u just press OK with empty field u will get u know that ur really in trouble.So to make ur day happy go through this url to make validations&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;    &gt;validations for in_place_form_edit &lt;br /&gt;        &lt;span style="font-style:italic;"&gt;http://www.pluitsolutions.com/2007/03/20/custom-in_place_edit-with-validation/&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4989427063974464445-7919380673871577437?l=railsislife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://railsislife.blogspot.com/feeds/7919380673871577437/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4989427063974464445&amp;postID=7919380673871577437' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4989427063974464445/posts/default/7919380673871577437'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4989427063974464445/posts/default/7919380673871577437'/><link rel='alternate' type='text/html' href='http://railsislife.blogspot.com/2008/11/rails.html' title='RAILS'/><author><name>suri</name><uri>http://www.blogger.com/profile/09410384151596504975</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_vYDrOw8_sBw/TUvuH99XtlI/AAAAAAAAAHA/VOfiwB1ljAo/s220/30841_1442641020149_1056807304_1317040_3758222_n.jpg'/></author><thr:total>0</thr:total></entry></feed>
