<?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-4056961807189001841</id><updated>2012-01-30T12:16:38.275-08: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://netrubyonrails.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default?start-index=101&amp;max-results=100'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>29437</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-1650795858737959547</id><published>2012-01-30T12:16:00.001-08:00</published><updated>2012-01-30T12:16:38.321-08:00</updated><title type='text'>Re: [Rails] Re: Database level authentication</title><content type='html'>I don&amp;#39;t see how db configuration UI might help me on this.&lt;p&gt;maybe as example, at best&lt;p&gt;&lt;p&gt;2012/1/30 sandip ransing &amp;lt;&lt;a href="mailto:sandip@funonrails.com"&gt;sandip@funonrails.com&lt;/a&gt;&amp;gt;:&lt;br&gt;&amp;gt; There are many free DB UI tools available. Choose suitable one for your db&lt;br&gt;&amp;gt; choice.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; On Tue, Jan 31, 2012 at 12:36 AM, Marcin S &amp;lt;&lt;a href="mailto:msporysz06@gmail.com"&gt;msporysz06@gmail.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; No, I think...&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; Its like every db on server have its own set of permissions for&lt;br&gt;&amp;gt;&amp;gt; different users ,right?&lt;br&gt;&amp;gt;&amp;gt; And i want to authenticate user based on that permissions.&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; 2012/1/30 venkata reddy &amp;lt;&lt;a href="mailto:venkatareddy.cs@gmail.com"&gt;venkatareddy.cs@gmail.com&lt;/a&gt;&amp;gt;:&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; What do you mean by database here, Do you need something like LDAP&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; authentication?&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; On Jan 30, 10:25&amp;#160;pm, Marcin S &amp;lt;&lt;a href="mailto:msporys...@gmail.com"&gt;msporys...@gmail.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; I read README, and i don&amp;#39;t see anywere it provides solution I need.&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; Let me clarify, username and password combination must be same as&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; DATABASE permission (set by db engine).&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; It has nothing to to do with content on that database itself.&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; 2012/1/30 Everaldo Gomes &amp;lt;&lt;a href="mailto:everaldo.go...@gmail.com"&gt;everaldo.go...@gmail.com&lt;/a&gt;&amp;gt;:&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; Take a look at the devise gem:&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&lt;a href="https://github.com/plataformatec/devise"&gt;https://github.com/plataformatec/devise&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; On Mon, Jan 30, 2012 at 2:36 PM, Marcin S &amp;lt;&lt;a href="mailto:msporys...@gmail.com"&gt;msporys...@gmail.com&lt;/a&gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; wrote:&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; Hello, Im trying to write a simple app &amp;#160;for company internal usage.&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; The other applications we use (in php) authenticate users based on&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; database credentials, and to be honest I have no idea how to&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; implement&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; this. Any suggestions will be great!&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; --&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; You received this message because you are subscribed to the Google&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; Groups&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; To post to this group, send email to&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; To unsubscribe from this group, send email to&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; For more options, visit this group at&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt;&lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; --&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; You received this message because you are subscribed to the Google&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; Groups&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; To post to this group, send email to&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; To unsubscribe from this group, send email to&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; For more options, visit this group at&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; --&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; You received this message because you are subscribed to the Google&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; To unsubscribe from this group, send email to&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; For more options, visit this group at&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; --&lt;br&gt;&amp;gt;&amp;gt; You received this message because you are subscribed to the Google Groups&lt;br&gt;&amp;gt;&amp;gt; &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;&amp;gt;&amp;gt; To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;&amp;gt;&amp;gt; To unsubscribe from this group, send email to&lt;br&gt;&amp;gt;&amp;gt; &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;&amp;gt;&amp;gt; For more options, visit this group at&lt;br&gt;&amp;gt;&amp;gt; &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; --&lt;br&gt;&amp;gt; sαη∂ιρ Rαηѕιηg&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; ---&lt;br&gt;&amp;gt; &lt;a href="http://www.funonrails.com"&gt;www.funonrails.com&lt;/a&gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; twitter, github @sandipransing&lt;br&gt;&amp;gt; skype sandip.ransing&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; --&lt;br&gt;&amp;gt; You received this message because you are subscribed to the Google Groups&lt;br&gt;&amp;gt; &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;&amp;gt; To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;&amp;gt; To unsubscribe from this group, send email to&lt;br&gt;&amp;gt; &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;&amp;gt; For more options, visit this group at&lt;br&gt;&amp;gt; &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-1650795858737959547?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/1650795858737959547/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-re-database-level_8160.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/1650795858737959547'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/1650795858737959547'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-re-database-level_8160.html' title='Re: [Rails] Re: Database level authentication'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-7594231248571371505</id><published>2012-01-30T12:09:00.000-08:00</published><updated>2012-01-30T12:10:27.173-08:00</updated><title type='text'>[Rails] Why can't I access attributes in rails model?</title><content type='html'>Hi, I&amp;#39;d like to know why I can&amp;#39;t, or how can I, access attributes like that:&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;class User &amp;lt; ActiveRecord::Base&lt;/div&gt;&lt;div&gt;  def name&lt;/div&gt;&lt;div&gt;    @first_name + @last_name&lt;/div&gt;&lt;div&gt;  end&lt;/div&gt;&lt;div&gt; end&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;first_name and last_name are user attributes in the database.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Thanks in advance.&lt;/div&gt;  &lt;p&gt;&lt;/p&gt;  -- &lt;br /&gt; You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.&lt;br /&gt; To post to this group, send email to rubyonrails-talk@googlegroups.com.&lt;br /&gt; To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.&lt;br /&gt;  For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.&lt;br /&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-7594231248571371505?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/7594231248571371505/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-why-cant-i-access-attributes-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/7594231248571371505'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/7594231248571371505'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-why-cant-i-access-attributes-in.html' title='[Rails] Why can&apos;t I access attributes in rails model?'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-4978204241297130084</id><published>2012-01-30T11:46:00.001-08:00</published><updated>2012-01-30T11:46:57.327-08:00</updated><title type='text'>[Rails] Exploding active record results</title><content type='html'>Hey guys,&lt;div&gt;&lt;br&gt;I've got a table that stores events with a recurrence pattern. I found a stored procedure that will generate occurrence dates for an event between a start and end date.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;What I'm wondering is how to go about exploding a result set. For instance, if I have one row for an event, but there are 5 dates it falls on that are calculated on demand (not stored), how can I query with AREL to return 5 events, with the same data for each field plus a new field "date" that will contain the date of the occurrence?&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;For instance, if the original table contained fields a, b, and c - the result of this method/query would be 5 objects with fields a, b, and c - but also one that stores the date.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Thanks in advance,&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Jayme&lt;/div&gt;  &lt;p&gt;&lt;/p&gt;  -- &lt;br /&gt; You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.&lt;br /&gt; To view this discussion on the web visit &lt;a href="https://groups.google.com/d/msg/rubyonrails-talk/-/KEIOBYmJqS8J"&gt;https://groups.google.com/d/msg/rubyonrails-talk/-/KEIOBYmJqS8J&lt;/a&gt;.&lt;br /&gt;  To post to this group, send email to rubyonrails-talk@googlegroups.com.&lt;br /&gt; To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.&lt;br /&gt;  For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.&lt;br /&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-4978204241297130084?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/4978204241297130084/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-exploding-active-record-results.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/4978204241297130084'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/4978204241297130084'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-exploding-active-record-results.html' title='[Rails] Exploding active record results'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-7219815603809778105</id><published>2012-01-30T11:15:00.000-08:00</published><updated>2012-01-30T11:16:39.279-08:00</updated><title type='text'>Re: [Rails] Re: Database level authentication</title><content type='html'>There are many free DB UI tools available. Choose suitable one for your db choice.&lt;br&gt;&lt;br&gt;&lt;div class="gmail_quote"&gt;On Tue, Jan 31, 2012 at 12:36 AM, Marcin S &lt;span dir="ltr"&gt;&amp;lt;&lt;a href="mailto:msporysz06@gmail.com"&gt;msporysz06@gmail.com&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;  &lt;blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"&gt;No, I think...&lt;br&gt; &lt;br&gt; Its like every db on server have its own set of permissions for&lt;br&gt; different users ,right?&lt;br&gt; And i want to authenticate user based on that permissions.&lt;br&gt; &lt;br&gt; &lt;br&gt; &lt;br&gt; 2012/1/30 venkata reddy &amp;lt;&lt;a href="mailto:venkatareddy.cs@gmail.com"&gt;venkatareddy.cs@gmail.com&lt;/a&gt;&amp;gt;:&lt;br&gt; &lt;div class="HOEnZb"&gt;&lt;div class="h5"&gt;&amp;gt; What do you mean by database here, Do you need something like LDAP&lt;br&gt; &amp;gt; authentication?&lt;br&gt; &amp;gt;&lt;br&gt; &amp;gt; On Jan 30, 10:25 pm, Marcin S &amp;lt;&lt;a href="mailto:msporys...@gmail.com"&gt;msporys...@gmail.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt; &amp;gt;&amp;gt; I read README, and i don&amp;#39;t see anywere it provides solution I need.&lt;br&gt; &amp;gt;&amp;gt;&lt;br&gt; &amp;gt;&amp;gt; Let me clarify, username and password combination must be same as&lt;br&gt; &amp;gt;&amp;gt; DATABASE permission (set by db engine).&lt;br&gt; &amp;gt;&amp;gt; It has nothing to to do with content on that database itself.&lt;br&gt; &amp;gt;&amp;gt;&lt;br&gt; &amp;gt;&amp;gt; 2012/1/30 Everaldo Gomes &amp;lt;&lt;a href="mailto:everaldo.go...@gmail.com"&gt;everaldo.go...@gmail.com&lt;/a&gt;&amp;gt;:&lt;br&gt; &amp;gt;&amp;gt;&lt;br&gt; &amp;gt;&amp;gt;&lt;br&gt; &amp;gt;&amp;gt;&lt;br&gt; &amp;gt;&amp;gt;&lt;br&gt; &amp;gt;&amp;gt;&lt;br&gt; &amp;gt;&amp;gt;&lt;br&gt; &amp;gt;&amp;gt;&lt;br&gt; &amp;gt;&amp;gt; &amp;gt; Take a look at the devise gem:&lt;br&gt; &amp;gt;&amp;gt;&lt;br&gt; &amp;gt;&amp;gt; &amp;gt;&lt;a href="https://github.com/plataformatec/devise" target="_blank"&gt;https://github.com/plataformatec/devise&lt;/a&gt;&lt;br&gt; &amp;gt;&amp;gt;&lt;br&gt; &amp;gt;&amp;gt; &amp;gt; On Mon, Jan 30, 2012 at 2:36 PM, Marcin S &amp;lt;&lt;a href="mailto:msporys...@gmail.com"&gt;msporys...@gmail.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt; &amp;gt;&amp;gt;&lt;br&gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; Hello, Im trying to write a simple app  for company internal usage.&lt;br&gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; The other applications we use (in php) authenticate users based on&lt;br&gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; database credentials, and to be honest I have no idea how to implement&lt;br&gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; this. Any suggestions will be great!&lt;br&gt; &amp;gt;&amp;gt;&lt;br&gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; --&lt;br&gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; You received this message because you are subscribed to the Google Groups&lt;br&gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; To unsubscribe from this group, send email to&lt;br&gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; For more options, visit this group at&lt;br&gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt;&lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en" target="_blank"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;br&gt; &amp;gt;&amp;gt;&lt;br&gt; &amp;gt;&amp;gt; &amp;gt; --&lt;br&gt; &amp;gt;&amp;gt; &amp;gt; You received this message because you are subscribed to the Google Groups&lt;br&gt; &amp;gt;&amp;gt; &amp;gt; &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt; &amp;gt;&amp;gt; &amp;gt; To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt; &amp;gt;&amp;gt; &amp;gt; To unsubscribe from this group, send email to&lt;br&gt; &amp;gt;&amp;gt; &amp;gt; &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt; &amp;gt;&amp;gt; &amp;gt; For more options, visit this group at&lt;br&gt; &amp;gt;&amp;gt; &amp;gt;&lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en" target="_blank"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;br&gt; &amp;gt;&lt;br&gt; &amp;gt; --&lt;br&gt; &amp;gt; You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt; &amp;gt; To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt; &amp;gt; To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt; &amp;gt; For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en" target="_blank"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;br&gt; &amp;gt;&lt;br&gt; &lt;br&gt; --&lt;br&gt; You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt; To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt; To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt; For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en" target="_blank"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;br&gt; &lt;br&gt; &lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear="all"&gt;&lt;br&gt;-- &lt;br&gt;&lt;span&gt;&lt;/span&gt;sαη∂ιρ Rαηѕιηg&lt;a&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span&gt;&lt;/span&gt;&lt;br&gt;&lt;br&gt;---&lt;br&gt; &lt;a href="http://www.funonrails.com/" target="_blank"&gt;www.funonrails.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;  twitter, github &lt;span style="color:rgb(51,204,255)"&gt;@sandipransing&lt;/span&gt;&lt;br&gt;skype &lt;span style="color:rgb(51,102,255)"&gt;sandip.ransing&lt;/span&gt;&lt;br&gt;&lt;br&gt;  &lt;p&gt;&lt;/p&gt;  -- &lt;br /&gt; You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.&lt;br /&gt; To post to this group, send email to rubyonrails-talk@googlegroups.com.&lt;br /&gt; To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.&lt;br /&gt;  For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.&lt;br /&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-7219815603809778105?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/7219815603809778105/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-re-database-level_30.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/7219815603809778105'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/7219815603809778105'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-re-database-level_30.html' title='Re: [Rails] Re: Database level authentication'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-7364181866985139703</id><published>2012-01-30T11:06:00.001-08:00</published><updated>2012-01-30T11:06:46.916-08:00</updated><title type='text'>Re: [Rails] Re: Database level authentication</title><content type='html'>No, I think...&lt;p&gt;Its like every db on server have its own set of permissions for&lt;br&gt;different users ,right?&lt;br&gt;And i want to authenticate user based on that permissions.&lt;p&gt;&lt;p&gt;2012/1/30 venkata reddy &amp;lt;&lt;a href="mailto:venkatareddy.cs@gmail.com"&gt;venkatareddy.cs@gmail.com&lt;/a&gt;&amp;gt;:&lt;br&gt;&amp;gt; What do you mean by database here, Do you need something like LDAP&lt;br&gt;&amp;gt; authentication?&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; On Jan 30, 10:25&amp;#160;pm, Marcin S &amp;lt;&lt;a href="mailto:msporys...@gmail.com"&gt;msporys...@gmail.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt;&amp;gt; I read README, and i don&amp;#39;t see anywere it provides solution I need.&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; Let me clarify, username and password combination must be same as&lt;br&gt;&amp;gt;&amp;gt; DATABASE permission (set by db engine).&lt;br&gt;&amp;gt;&amp;gt; It has nothing to to do with content on that database itself.&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; 2012/1/30 Everaldo Gomes &amp;lt;&lt;a href="mailto:everaldo.go...@gmail.com"&gt;everaldo.go...@gmail.com&lt;/a&gt;&amp;gt;:&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Take a look at the devise gem:&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&lt;a href="https://github.com/plataformatec/devise"&gt;https://github.com/plataformatec/devise&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; On Mon, Jan 30, 2012 at 2:36 PM, Marcin S &amp;lt;&lt;a href="mailto:msporys...@gmail.com"&gt;msporys...@gmail.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; Hello, Im trying to write a simple app &amp;#160;for company internal usage.&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; The other applications we use (in php) authenticate users based on&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; database credentials, and to be honest I have no idea how to implement&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; this. Any suggestions will be great!&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; --&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; You received this message because you are subscribed to the Google Groups&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; To unsubscribe from this group, send email to&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; For more options, visit this group at&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;&lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; --&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; You received this message because you are subscribed to the Google Groups&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; To unsubscribe from this group, send email to&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; For more options, visit this group at&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; --&lt;br&gt;&amp;gt; You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;&amp;gt; To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;&amp;gt; To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;&amp;gt; For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;br&gt;&amp;gt;&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-7364181866985139703?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/7364181866985139703/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-re-database-level.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/7364181866985139703'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/7364181866985139703'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-re-database-level.html' title='Re: [Rails] Re: Database level authentication'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-8300078104818263156</id><published>2012-01-30T10:37:00.000-08:00</published><updated>2012-01-30T10:38:03.815-08:00</updated><title type='text'>[Rails] Re: Database level authentication</title><content type='html'>What do you mean by database here, Do you need something like LDAP&lt;br&gt;authentication?&lt;p&gt;On Jan 30, 10:25&amp;#160;pm, Marcin S &amp;lt;&lt;a href="mailto:msporys...@gmail.com"&gt;msporys...@gmail.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt; I read README, and i don&amp;#39;t see anywere it provides solution I need.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Let me clarify, username and password combination must be same as&lt;br&gt;&amp;gt; DATABASE permission (set by db engine).&lt;br&gt;&amp;gt; It has nothing to to do with content on that database itself.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; 2012/1/30 Everaldo Gomes &amp;lt;&lt;a href="mailto:everaldo.go...@gmail.com"&gt;everaldo.go...@gmail.com&lt;/a&gt;&amp;gt;:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;gt; Take a look at the devise gem:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;gt;&lt;a href="https://github.com/plataformatec/devise"&gt;https://github.com/plataformatec/devise&lt;/a&gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;gt; On Mon, Jan 30, 2012 at 2:36 PM, Marcin S &amp;lt;&lt;a href="mailto:msporys...@gmail.com"&gt;msporys...@gmail.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Hello, Im trying to write a simple app &amp;#160;for company internal usage.&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; The other applications we use (in php) authenticate users based on&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; database credentials, and to be honest I have no idea how to implement&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; this. Any suggestions will be great!&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; --&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; You received this message because you are subscribed to the Google Groups&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; To unsubscribe from this group, send email to&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; For more options, visit this group at&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;gt; --&lt;br&gt;&amp;gt; &amp;gt; You received this message because you are subscribed to the Google Groups&lt;br&gt;&amp;gt; &amp;gt; &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;&amp;gt; &amp;gt; To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;&amp;gt; &amp;gt; To unsubscribe from this group, send email to&lt;br&gt;&amp;gt; &amp;gt; &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;&amp;gt; &amp;gt; For more options, visit this group at&lt;br&gt;&amp;gt; &amp;gt;&lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-8300078104818263156?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/8300078104818263156/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-re-database-level-authentication.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/8300078104818263156'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/8300078104818263156'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-re-database-level-authentication.html' title='[Rails] Re: Database level authentication'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-6887924299564923222</id><published>2012-01-30T10:35:00.001-08:00</published><updated>2012-01-30T10:35:19.739-08:00</updated><title type='text'>[Rails] Re: Ruby gems for Single Sign On</title><content type='html'>Thank you all!&lt;p&gt;On Jan 30, 6:33&amp;#160;pm, Dheeraj Kumar &amp;lt;&lt;a href="mailto:a.dheeraj.ku...@gmail.com"&gt;a.dheeraj.ku...@gmail.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt; Er… That&amp;#39;s not what SSO means.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; @OP: OmniAuth by Intridea is quite famous, and a lot of people use it.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Here&amp;#39;s a guide I found helpful for SSO using omniauth + devise&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &lt;a href="http://blog.joshsoftware.com/2010/12/16/multiple-applications-with-de."&gt;http://blog.joshsoftware.com/2010/12/16/multiple-applications-with-de.&lt;/a&gt;..&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Dheeraj Kumar&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; On Monday 30 January 2012 at 6:38 PM, subbarao wrote:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;gt; On Monday 30 January 2012 06:28 PM, venkata reddy wrote:&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Hi All,&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; anybody knows useful rubygems/rails plugins for implementing&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Single Sign on?&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;gt; no need to use gem or plug-in just write your custom code&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;gt; add on attribute user_login : boolean to user table&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;gt; when ever user logins set user_login as true and after session out or&lt;br&gt;&amp;gt; &amp;gt; logout set user_login as false&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;gt; every time user login check the user_login value if false then allow him&lt;br&gt;&amp;gt; &amp;gt; to login,&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;gt; otherwise tell One user already login.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;gt; --&lt;br&gt;&amp;gt; &amp;gt; You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;&amp;gt; &amp;gt; To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt; (mailto:&lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;).&lt;br&gt;&amp;gt; &amp;gt; To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt; (mailto:&lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;).&lt;br&gt;&amp;gt; &amp;gt; For more options, visit this group athttp://&lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-6887924299564923222?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/6887924299564923222/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-re-ruby-gems-for-single-sign-on_30.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/6887924299564923222'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/6887924299564923222'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-re-ruby-gems-for-single-sign-on_30.html' title='[Rails] Re: Ruby gems for Single Sign On'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-6820472415207666458</id><published>2012-01-30T09:38:00.000-08:00</published><updated>2012-01-30T09:39:10.455-08:00</updated><title type='text'>Re: [Rails] Re: Using search_field as select</title><content type='html'>@Javier:&lt;br&gt;I also watched the railscast but I prefer a &amp;quot;Ruby solution&amp;quot;.&lt;br&gt;The custom form builder is simple and very readable so I am gonna stick with it. :)&lt;br&gt;&lt;br&gt;Anyway thank you for your reply, I appreciate it.&lt;br&gt;  Alex&lt;br&gt;&lt;br&gt;&lt;div class="gmail_quote"&gt;On 30 January 2012 17:59, Javier Quarite &lt;span dir="ltr"&gt;&amp;lt;&lt;a href="mailto:jquarites@gmail.com"&gt;jquarites@gmail.com&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"&gt;  &lt;br&gt;&lt;br&gt;&lt;div class="gmail_quote"&gt;&lt;div class="im"&gt;On Mon, Jan 30, 2012 at 11:40 AM, Alexandre Balon-Perin &lt;span dir="ltr"&gt;&amp;lt;&lt;a href="mailto:abalonpe@ulb.ac.be" target="_blank"&gt;abalonpe@ulb.ac.be&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;  &lt;blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"&gt; Hi,&lt;br&gt;&lt;br&gt;Thank you for your reply. &lt;br&gt;I solved my problem using Custom Form Builder. I created a custom form field for the new HTML5 datalist. If anyone is interested, I can post my solution which is definitely not optimal since I am new to rails.&lt;br&gt;     &lt;br&gt;regards,&lt;br&gt;Alexandre&lt;div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;I&amp;#39;m also doing some searchs using fields, I used the autocomplete method of jquery (I saw that in a railscast) &lt;/div&gt; &lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="im HOEnZb"&gt;  &lt;p&gt;&lt;/p&gt;  -- &lt;br&gt; You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;&lt;/div&gt;&lt;div class="HOEnZb"&gt;&lt;div class="h5"&gt; To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com" target="_blank"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt; To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com" target="_blank"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;  For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en" target="_blank"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;br&gt;   &lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;  &lt;p&gt;&lt;/p&gt;  -- &lt;br /&gt; You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.&lt;br /&gt; To post to this group, send email to rubyonrails-talk@googlegroups.com.&lt;br /&gt; To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.&lt;br /&gt;  For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.&lt;br /&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-6820472415207666458?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/6820472415207666458/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-re-using-searchfield-as-select_1038.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/6820472415207666458'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/6820472415207666458'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-re-using-searchfield-as-select_1038.html' title='Re: [Rails] Re: Using search_field as select'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-7617787370716671359</id><published>2012-01-30T09:25:00.001-08:00</published><updated>2012-01-30T09:25:52.514-08:00</updated><title type='text'>Re: [Rails] Database level authentication</title><content type='html'>I read README, and i don&amp;#39;t see anywere it provides solution I need.&lt;p&gt;Let me clarify, username and password combination must be same as&lt;br&gt;DATABASE permission (set by db engine).&lt;br&gt;It has nothing to to do with content on that database itself.&lt;p&gt;&lt;p&gt;2012/1/30 Everaldo Gomes &amp;lt;&lt;a href="mailto:everaldo.gomes@gmail.com"&gt;everaldo.gomes@gmail.com&lt;/a&gt;&amp;gt;:&lt;br&gt;&amp;gt; Take a look at the devise gem:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &lt;a href="https://github.com/plataformatec/devise"&gt;https://github.com/plataformatec/devise&lt;/a&gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; On Mon, Jan 30, 2012 at 2:36 PM, Marcin S &amp;lt;&lt;a href="mailto:msporysz06@gmail.com"&gt;msporysz06@gmail.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; Hello, Im trying to write a simple app &amp;#160;for company internal usage.&lt;br&gt;&amp;gt;&amp;gt; The other applications we use (in php) authenticate users based on&lt;br&gt;&amp;gt;&amp;gt; database credentials, and to be honest I have no idea how to implement&lt;br&gt;&amp;gt;&amp;gt; this. Any suggestions will be great!&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; --&lt;br&gt;&amp;gt;&amp;gt; You received this message because you are subscribed to the Google Groups&lt;br&gt;&amp;gt;&amp;gt; &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;&amp;gt;&amp;gt; To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;&amp;gt;&amp;gt; To unsubscribe from this group, send email to&lt;br&gt;&amp;gt;&amp;gt; &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;&amp;gt;&amp;gt; For more options, visit this group at&lt;br&gt;&amp;gt;&amp;gt; &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; --&lt;br&gt;&amp;gt; You received this message because you are subscribed to the Google Groups&lt;br&gt;&amp;gt; &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;&amp;gt; To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;&amp;gt; To unsubscribe from this group, send email to&lt;br&gt;&amp;gt; &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;&amp;gt; For more options, visit this group at&lt;br&gt;&amp;gt; &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-7617787370716671359?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/7617787370716671359/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-database-level-authentication_30.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/7617787370716671359'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/7617787370716671359'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-database-level-authentication_30.html' title='Re: [Rails] Database level authentication'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-3623493669656012409</id><published>2012-01-30T08:59:00.000-08:00</published><updated>2012-01-30T09:00:12.770-08:00</updated><title type='text'>Re: [Rails] Re: Using search_field as select</title><content type='html'>&lt;br&gt;&lt;br&gt;&lt;div class="gmail_quote"&gt;On Mon, Jan 30, 2012 at 11:40 AM, Alexandre Balon-Perin &lt;span dir="ltr"&gt;&amp;lt;&lt;a href="mailto:abalonpe@ulb.ac.be"&gt;abalonpe@ulb.ac.be&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"&gt; Hi,&lt;br&gt;&lt;br&gt;Thank you for your reply. &lt;br&gt;I solved my problem using Custom Form Builder. I created a custom form field for the new HTML5 datalist. If anyone is interested, I can post my solution which is definitely not optimal since I am new to rails.&lt;br&gt;   &lt;br&gt;regards,&lt;br&gt;Alexandre&lt;div class="HOEnZb"&gt;&lt;div class="h5"&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I&amp;#39;m also doing some searchs using fields, I used the autocomplete method of jquery (I saw that in a railscast) &lt;/div&gt; &lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;  &lt;p&gt;&lt;/p&gt;  -- &lt;br /&gt; You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.&lt;br /&gt; To post to this group, send email to rubyonrails-talk@googlegroups.com.&lt;br /&gt; To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.&lt;br /&gt;  For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.&lt;br /&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-3623493669656012409?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/3623493669656012409/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-re-using-searchfield-as-select_30.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/3623493669656012409'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/3623493669656012409'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-re-using-searchfield-as-select_30.html' title='Re: [Rails] Re: Using search_field as select'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-447125819818809484</id><published>2012-01-30T08:42:00.001-08:00</published><updated>2012-01-30T08:42:53.622-08:00</updated><title type='text'>Re: [Rails] Database level authentication</title><content type='html'>Take a look at the devise gem:&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="https://github.com/plataformatec/devise"&gt;https://github.com/plataformatec/devise&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;div class="gmail_quote"&gt;On Mon, Jan 30, 2012 at 2:36 PM, Marcin S &lt;span dir="ltr"&gt;&amp;lt;&lt;a href="mailto:msporysz06@gmail.com"&gt;msporysz06@gmail.com&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;  &lt;blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"&gt;Hello, Im trying to write a simple app  for company internal usage.&lt;br&gt; The other applications we use (in php) authenticate users based on&lt;br&gt; database credentials, and to be honest I have no idea how to implement&lt;br&gt; this. Any suggestions will be great!&lt;br&gt; &lt;span class="HOEnZb"&gt;&lt;font color="#888888"&gt;&lt;br&gt; --&lt;br&gt; You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt; To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt; To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt; For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en" target="_blank"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;br&gt; &lt;br&gt; &lt;/font&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;  &lt;p&gt;&lt;/p&gt;  -- &lt;br /&gt; You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.&lt;br /&gt; To post to this group, send email to rubyonrails-talk@googlegroups.com.&lt;br /&gt; To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.&lt;br /&gt;  For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.&lt;br /&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-447125819818809484?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/447125819818809484/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-database-level-authentication.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/447125819818809484'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/447125819818809484'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-database-level-authentication.html' title='Re: [Rails] Database level authentication'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-4206310575589456228</id><published>2012-01-30T08:40:00.001-08:00</published><updated>2012-01-30T08:40:53.046-08:00</updated><title type='text'>Re: [Rails] Re: Using search_field as select</title><content type='html'>Hi,&lt;br&gt;&lt;br&gt;Thank you for your reply. &lt;br&gt;I solved my problem using Custom Form Builder. I created a custom form field for the new HTML5 datalist. If anyone is interested, I can post my solution which is definitely not optimal since I am new to rails.&lt;br&gt;  &lt;br&gt;regards,&lt;br&gt;Alexandre&lt;br&gt;&lt;br&gt;&lt;div class="gmail_quote"&gt;On 30 January 2012 17:30, Tim Shaffer &lt;span dir="ltr"&gt;&amp;lt;&lt;a href="mailto:timshaffer@me.com"&gt;timshaffer@me.com&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"&gt;  What exactly are you trying to do? All that search_field does is create a HTML input with type=&amp;quot;search&amp;quot;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;If you want a dropdown you should use collection_select or something similar&lt;/div&gt;&lt;div class="im"&gt;    &lt;p&gt;&lt;/p&gt;  -- &lt;br&gt; You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;&lt;/div&gt; To view this discussion on the web visit &lt;a href="https://groups.google.com/d/msg/rubyonrails-talk/-/5Kke2y_WvhMJ" target="_blank"&gt;https://groups.google.com/d/msg/rubyonrails-talk/-/5Kke2y_WvhMJ&lt;/a&gt;.&lt;div class="HOEnZb"&gt;&lt;div class="h5"&gt;  &lt;br&gt;  To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com" target="_blank"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt; To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com" target="_blank"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;  For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en" target="_blank"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;br&gt;   &lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;  &lt;p&gt;&lt;/p&gt;  -- &lt;br /&gt; You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.&lt;br /&gt; To post to this group, send email to rubyonrails-talk@googlegroups.com.&lt;br /&gt; To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.&lt;br /&gt;  For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.&lt;br /&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-4206310575589456228?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/4206310575589456228/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-re-using-searchfield-as-select.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/4206310575589456228'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/4206310575589456228'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-re-using-searchfield-as-select.html' title='Re: [Rails] Re: Using search_field as select'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-2096535092355561081</id><published>2012-01-30T08:36:00.001-08:00</published><updated>2012-01-30T08:36:55.774-08:00</updated><title type='text'>[Rails] Database level authentication</title><content type='html'>Hello, Im trying to write a simple app  for company internal usage.&lt;br&gt;The other applications we use (in php) authenticate users based on&lt;br&gt;database credentials, and to be honest I have no idea how to implement&lt;br&gt;this. Any suggestions will be great!&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-2096535092355561081?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/2096535092355561081/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-database-level-authentication.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/2096535092355561081'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/2096535092355561081'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-database-level-authentication.html' title='[Rails] Database level authentication'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-7375083685311117849</id><published>2012-01-30T08:30:00.000-08:00</published><updated>2012-01-30T08:31:01.643-08:00</updated><title type='text'>[Rails] Re: Using search_field as select</title><content type='html'>What exactly are you trying to do? All that search_field does is create a HTML input with type="search"&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;If you want a dropdown you should use&amp;nbsp;collection_select or something similar&lt;/div&gt;  &lt;p&gt;&lt;/p&gt;  -- &lt;br /&gt; You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.&lt;br /&gt; To view this discussion on the web visit &lt;a href="https://groups.google.com/d/msg/rubyonrails-talk/-/5Kke2y_WvhMJ"&gt;https://groups.google.com/d/msg/rubyonrails-talk/-/5Kke2y_WvhMJ&lt;/a&gt;.&lt;br /&gt;  To post to this group, send email to rubyonrails-talk@googlegroups.com.&lt;br /&gt; To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.&lt;br /&gt;  For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.&lt;br /&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-7375083685311117849?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/7375083685311117849/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-re-using-searchfield-as-select.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/7375083685311117849'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/7375083685311117849'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-re-using-searchfield-as-select.html' title='[Rails] Re: Using search_field as select'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-5659807587258345851</id><published>2012-01-30T08:28:00.000-08:00</published><updated>2012-01-30T08:29:07.740-08:00</updated><title type='text'>[Rails] Re: after_save in plugin</title><content type='html'>I think your issue may be a mixup with class instance and instance variables.&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;However, what's the issue you are having with all this? Are you getting any error messages?&amp;nbsp;&lt;br&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;  &lt;p&gt;&lt;/p&gt;  -- &lt;br /&gt; You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.&lt;br /&gt; To view this discussion on the web visit &lt;a href="https://groups.google.com/d/msg/rubyonrails-talk/-/C-uGWVAUau0J"&gt;https://groups.google.com/d/msg/rubyonrails-talk/-/C-uGWVAUau0J&lt;/a&gt;.&lt;br /&gt;  To post to this group, send email to rubyonrails-talk@googlegroups.com.&lt;br /&gt; To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.&lt;br /&gt;  For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.&lt;br /&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-5659807587258345851?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/5659807587258345851/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-re-aftersave-in-plugin.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/5659807587258345851'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/5659807587258345851'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-re-aftersave-in-plugin.html' title='[Rails] Re: after_save in plugin'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-3001629081074047097</id><published>2012-01-30T08:06:00.000-08:00</published><updated>2012-01-30T08:07:13.329-08:00</updated><title type='text'>[Rails] Re: Reaching into a has_and_belongs_to_many - will :through work?</title><content type='html'>Duane Morin wrote in post #1043076:&lt;br&gt;&amp;gt; rwz wrote in post #1043018:&lt;br&gt;&amp;gt;&amp;gt; What version of rails do you use? This setup works fine for me on&lt;br&gt;&amp;gt;&amp;gt; 3.1.3 and 3.2.1&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; This is on version 3.0.10.  Since it should work and seems to work for&lt;br&gt;&amp;gt; you I thought maybe the altered table names could be causing a problem,&lt;br&gt;&amp;gt; but I set up a new app with just these three relationships and the&lt;br&gt;&amp;gt; traditional table naming conventions and it&amp;#39;s still causing a problem.&lt;br&gt;&amp;gt; :-/&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; I&amp;#39;ll see if I can whip up a virtual machine to try an updated version of&lt;br&gt;&amp;gt; Rails. Thanks for the idea.&lt;p&gt;I&amp;#39;ll be darned ... that&amp;#39;s it exactly.  I took the exact code that failed &lt;br&gt;on Rails 3.0.10 and updated my Gemfile to use 3.1.0, and it worked fine. &lt;br&gt;Great, now I have to go see whether my project which is heavily &lt;br&gt;dependent on legacy stuff can support having their Rails version &lt;br&gt;upgraded. :-/&lt;p&gt;(On a related note, Vagrant is wonderful for this sort of thing! :))&lt;p&gt;-- &lt;br&gt;Posted via &lt;a href="http://www.ruby-forum.com/"&gt;http://www.ruby-forum.com/&lt;/a&gt;.&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-3001629081074047097?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/3001629081074047097/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-re-reaching-into_7627.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/3001629081074047097'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/3001629081074047097'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-re-reaching-into_7627.html' title='[Rails] Re: Reaching into a has_and_belongs_to_many - will :through work?'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-6634017245470506991</id><published>2012-01-30T07:59:00.000-08:00</published><updated>2012-01-30T08:00:31.759-08:00</updated><title type='text'>Re: [Rails] Are class variables a good way to set the context for a class instance in Rails?</title><content type='html'>On Fri, Jan 27, 2012 at 14:36, rails_digger &amp;lt;&lt;a href="mailto:chris@mckenzieic.com"&gt;chris@mckenzieic.com&lt;/a&gt;&amp;gt; wrote:&lt;p&gt;&amp;gt; I&amp;#39;m building a rails app that managed Member of a Group. There is a&lt;br&gt;&amp;gt; Member model and a Group model. Since a Member can belong to many&lt;br&gt;&amp;gt; Groups, and a Group can have many Member , there is a HABTM&lt;br&gt;&amp;gt; association between them.&lt;p&gt;Using HMT (has_many :through) rather than HABTM will make your whole&lt;br&gt;problem go away, with no need for worrying about threading, object&lt;br&gt;context, etc.  (At least, any more than usual!)&lt;p&gt;Try using an association table, to represent a given member&amp;#39;s&lt;br&gt;membership (hey, sounds like a good class name there!) in a group.&lt;br&gt;That&amp;#39;s where you can put info like whether they&amp;#39;re current on their&lt;br&gt;dues *for that group*, when they joined *that group*, etc. etc. etc.&lt;p&gt;-Dave&lt;p&gt;-- &lt;br&gt;Dave Aronson: &amp;#160;Available Cleared Ruby on Rails Freelancer&lt;br&gt;(NoVa/DC/Remote) -- see &lt;a href="http://www.DaveAronson.com"&gt;www.DaveAronson.com&lt;/a&gt;, and blogs at&lt;br&gt;&lt;a href="http://www.Codosaur.us"&gt;www.Codosaur.us&lt;/a&gt;, &lt;a href="http://www.Dare2XL.com"&gt;www.Dare2XL.com&lt;/a&gt;, &lt;a href="http://www.RecruitingRants.com"&gt;www.RecruitingRants.com&lt;/a&gt;&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-6634017245470506991?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/6634017245470506991/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-are-class-variables-good-way.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/6634017245470506991'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/6634017245470506991'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-are-class-variables-good-way.html' title='Re: [Rails] Are class variables a good way to set the context for a class instance in Rails?'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-3561528645090475545</id><published>2012-01-30T07:56:00.000-08:00</published><updated>2012-01-30T07:58:52.375-08:00</updated><title type='text'>[Rails] Installing RMagick on CentOS 5</title><content type='html'>I&amp;#39;m have a very big trouble with my project.&lt;p&gt;I install RMagick on Centos, and catch error:&lt;p&gt;I use RVM + ruby 1.9.3&lt;p&gt;[kastet@v989 ~]$ gem install rmagick&lt;br&gt;Building native extensions.  This could take a while...&lt;br&gt;ERROR:  Error installing rmagick:&lt;br&gt;  ERROR: Failed to build gem native extension.&lt;p&gt;        /home/kastet/.rvm/rubies/ruby-1.9.3-p0/bin/ruby extconf.rb&lt;br&gt;checking for Ruby version &amp;gt;= 1.8.5... yes&lt;br&gt;extconf.rb:128: Use RbConfig instead of obsolete and deprecated Config.&lt;br&gt;checking for gcc... yes&lt;br&gt;checking for Magick-config... yes&lt;br&gt;checking for ImageMagick version &amp;gt;= 6.4.9... yes&lt;br&gt;checking for HDRI disabled version of ImageMagick... yes&lt;br&gt;checking for stdint.h... *** extconf.rb failed ***&lt;br&gt;Could not create Makefile due to some reason, probably lack of&lt;br&gt;necessary libraries and/or headers.  Check the mkmf.log file for more&lt;br&gt;details.  You may need configuration options.&lt;p&gt;Provided configuration options:&lt;br&gt;  --with-opt-dir&lt;br&gt;  --with-opt-include&lt;br&gt;  --without-opt-include=${opt-dir}/include&lt;br&gt;  --with-opt-lib&lt;br&gt;  --without-opt-lib=${opt-dir}/lib&lt;br&gt;  --with-make-prog&lt;br&gt;  --without-make-prog&lt;br&gt;  --srcdir=.&lt;br&gt;  --curdir&lt;br&gt;  --ruby=/home/kastet/.rvm/rubies/ruby-1.9.3-p0/bin/ruby&lt;br&gt;/home/kastet/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/mkmf.rb:381:in&lt;br&gt;`try_do&amp;#39;: The compiler failed to generate an executable file.&lt;br&gt;(RuntimeError)&lt;br&gt;You have to install development tools first.&lt;br&gt;  from&lt;br&gt;/home/kastet/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/mkmf.rb:506:in&lt;br&gt;`try_cpp&amp;#39;&lt;br&gt;  from&lt;br&gt;/home/kastet/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/mkmf.rb:931:in&lt;br&gt;`block in have_header&amp;#39;&lt;br&gt;  from&lt;br&gt;/home/kastet/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/mkmf.rb:790:in&lt;br&gt;`block in checking_for&amp;#39;&lt;br&gt;  from&lt;br&gt;/home/kastet/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/mkmf.rb:284:in&lt;br&gt;`block (2 levels) in postpone&amp;#39;&lt;br&gt;  from&lt;br&gt;/home/kastet/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/mkmf.rb:254:in&lt;br&gt;`open&amp;#39;&lt;br&gt;  from&lt;br&gt;/home/kastet/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/mkmf.rb:284:in&lt;br&gt;`block in postpone&amp;#39;&lt;br&gt;  from&lt;br&gt;/home/kastet/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/mkmf.rb:254:in&lt;br&gt;`open&amp;#39;&lt;br&gt;  from&lt;br&gt;/home/kastet/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/mkmf.rb:280:in&lt;br&gt;`postpone&amp;#39;&lt;br&gt;  from&lt;br&gt;/home/kastet/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/mkmf.rb:789:in&lt;br&gt;`checking_for&amp;#39;&lt;br&gt;  from&lt;br&gt;/home/kastet/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/mkmf.rb:930:in&lt;br&gt;`have_header&amp;#39;&lt;br&gt;  from extconf.rb:193:in `&amp;lt;main&amp;gt;&amp;#39;&lt;p&gt;&lt;br&gt;Gem files will remain installed in&lt;br&gt;/home/kastet/.rvm/gems/ruby-1.9.3-p0/gems/rmagick-2.13.1 for inspection.&lt;br&gt;Results logged to&lt;br&gt;/home/kastet/.rvm/gems/ruby-1.9.3-p0/gems/rmagick-2.13.1/ext/RMagick/gem_make.out&lt;p&gt;I try to find solution in other web, but no solutions with stdint.h not&lt;br&gt;founded.&lt;p&gt;Please help, Dmitriy&lt;p&gt;-- &lt;br&gt;Posted via &lt;a href="http://www.ruby-forum.com/"&gt;http://www.ruby-forum.com/&lt;/a&gt;.&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-3561528645090475545?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/3561528645090475545/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-installing-rmagick-on-centos-5.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/3561528645090475545'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/3561528645090475545'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-installing-rmagick-on-centos-5.html' title='[Rails] Installing RMagick on CentOS 5'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-8190081366494637805</id><published>2012-01-30T07:44:00.001-08:00</published><updated>2012-01-30T07:44:39.164-08:00</updated><title type='text'>[Rails] gdata gem on rails 3 ruby 1.9</title><content type='html'>Hi:&lt;p&gt;Im trying to use gdata 1.1.2 on a rails3 ruby1.9 project&lt;br&gt;I added gem &amp;#39;gdata&amp;#39; to Gemfile&lt;br&gt;but keep getting the error: uninitialized constant GData::&lt;p&gt;I installed the gem with no problem&lt;br&gt;Does anybody knows how to setup rails3 with gdata?&lt;p&gt;I&amp;#39;ll really appreciate any advice&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-8190081366494637805?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/8190081366494637805/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-gdata-gem-on-rails-3-ruby-19.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/8190081366494637805'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/8190081366494637805'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-gdata-gem-on-rails-3-ruby-19.html' title='[Rails] gdata gem on rails 3 ruby 1.9'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-587812762587143357</id><published>2012-01-30T06:56:00.001-08:00</published><updated>2012-01-30T06:56:36.708-08:00</updated><title type='text'>[Rails] Separation of concerns and more...</title><content type='html'>Say you have an app not dissimilar to StackOverflow where users vote on posts. Say an Up Vote causes the voter to receive one reputation point. You might see something like this in the vote_up model:&lt;br&gt;&lt;br&gt;class UpVote &amp;lt; ActiveRecord::Base&lt;br&gt;&amp;nbsp; belongs_to :user&lt;br&gt;&amp;nbsp; after_create :increase_user_reputation&lt;br&gt;&lt;br&gt;&amp;nbsp; private&lt;br&gt;&lt;br&gt;&amp;nbsp; def increase_user_reputation&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; user = self.user&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; user.reputation == user.reputation + 1&lt;br&gt;&amp;nbsp; end&lt;br&gt;end&lt;br&gt;&lt;br&gt;There is one issue with this code: The value 1 is hard coded. Where does such a value belong? Another issue is that some UpVote should have no knowledge of user.reputation. We solve this by changing the callback:&lt;br&gt;&lt;br&gt;&amp;nbsp; def increase_user_reputation&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; self.user.modify_reputation(1)&lt;br&gt; &amp;nbsp; end&lt;br&gt;&lt;br&gt;Then we add an instance method to User:&lt;br&gt;&lt;br&gt;&amp;nbsp; def modify_reputation(reputation)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.reputation = self.reputation + reputation&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.save!&lt;br&gt;&amp;nbsp; end&lt;br&gt; &lt;br&gt;Questions...&lt;br&gt;&lt;br&gt;1. Who's responsible for calling save! ? The &lt;b&gt;increase_user_reputation&lt;/b&gt; inside the UpVote model or the &lt;b&gt;modify_reputation&lt;/b&gt; method inside the user model?&lt;br&gt;2. The +1 one to reputation doesn't seem like a good idea to hard code. Where does Rails keep such configuration settings?&lt;br&gt;3. Does the code look reasonable? Are there any shortcuts?&lt;br&gt;  &lt;p&gt;&lt;/p&gt;  -- &lt;br /&gt; You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.&lt;br /&gt; To view this discussion on the web visit &lt;a href="https://groups.google.com/d/msg/rubyonrails-talk/-/_bQDSP0JAhsJ"&gt;https://groups.google.com/d/msg/rubyonrails-talk/-/_bQDSP0JAhsJ&lt;/a&gt;.&lt;br /&gt;  To post to this group, send email to rubyonrails-talk@googlegroups.com.&lt;br /&gt; To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.&lt;br /&gt;  For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.&lt;br /&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-587812762587143357?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/587812762587143357/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-separation-of-concerns-and-more.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/587812762587143357'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/587812762587143357'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-separation-of-concerns-and-more.html' title='[Rails] Separation of concerns and more...'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-6366255007751198840</id><published>2012-01-30T06:06:00.001-08:00</published><updated>2012-01-30T06:06:55.798-08:00</updated><title type='text'>[Rails] Re: Reaching into a has_and_belongs_to_many - will :through work?</title><content type='html'>rwz wrote in post #1043018:&lt;br&gt;&amp;gt; What version of rails do you use? This setup works fine for me on&lt;br&gt;&amp;gt; 3.1.3 and 3.2.1&lt;p&gt;This is on version 3.0.10.  Since it should work and seems to work for&lt;br&gt;you I thought maybe the altered table names could be causing a problem,&lt;br&gt;but I set up a new app with just these three relationships and the&lt;br&gt;traditional table naming conventions and it&amp;#39;s still causing a problem.&lt;br&gt;:-/&lt;p&gt;I&amp;#39;ll see if I can whip up a virtual machine to try an updated version of&lt;br&gt;Rails. Thanks for the idea.&lt;p&gt;-- &lt;br&gt;Posted via &lt;a href="http://www.ruby-forum.com/"&gt;http://www.ruby-forum.com/&lt;/a&gt;.&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-6366255007751198840?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/6366255007751198840/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-re-reaching-into_30.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/6366255007751198840'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/6366255007751198840'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-re-reaching-into_30.html' title='[Rails] Re: Reaching into a has_and_belongs_to_many - will :through work?'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-4115240331104365338</id><published>2012-01-30T05:33:00.000-08:00</published><updated>2012-01-30T05:34:01.584-08:00</updated><title type='text'>[Rails] Re: Ruby gems for Single Sign On</title><content type='html'>                 &lt;div&gt;Er… That's not what SSO means.&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;@OP: OmniAuth by Intridea is quite famous, and a lot of people use it.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Here's a guide I found helpful for SSO using omniauth + devise&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://blog.joshsoftware.com/2010/12/16/multiple-applications-with-devise-omniauth-and-single-sign-on/"&gt;http://blog.joshsoftware.com/2010/12/16/multiple-applications-with-devise-omniauth-and-single-sign-on/&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;                 &lt;div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Dheeraj Kumar&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;                                   &lt;p style="color: #A0A0A8;"&gt;On Monday 30 January 2012 at 6:38 PM, subbarao wrote:&lt;/p&gt;                 &lt;blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;"&gt;                     &lt;span&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;On Monday 30 January 2012 06:28 PM, venkata reddy wrote:&lt;/div&gt;&lt;blockquote type="cite"&gt;&lt;div&gt;&lt;div&gt;Hi All,&lt;/div&gt;&lt;div&gt;          anybody knows useful rubygems/rails plugins for implementing&lt;/div&gt;&lt;div&gt;Single Sign on?&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;no need to use gem or plug-in just write your custom code&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;add on attribute user_login : boolean to user table&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;when ever user logins set user_login as true and after session out or &lt;/div&gt;&lt;div&gt;logout set user_login as false&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;every time user login check the user_login value if false then allow him &lt;/div&gt;&lt;div&gt;to login,&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;otherwise tell One user already login.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;-- &lt;/div&gt;&lt;div&gt;You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.&lt;/div&gt;&lt;div&gt;To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;/div&gt;&lt;div&gt;To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk+unsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;/div&gt;&lt;div&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;                                                                                         &lt;/blockquote&gt;                                   &lt;div&gt;                     &lt;br&gt;                 &lt;/div&gt;               &lt;p&gt;&lt;/p&gt;  -- &lt;br /&gt; You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.&lt;br /&gt; To post to this group, send email to rubyonrails-talk@googlegroups.com.&lt;br /&gt; To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.&lt;br /&gt;  For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.&lt;br /&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-4115240331104365338?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/4115240331104365338/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-re-ruby-gems-for-single-sign-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/4115240331104365338'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/4115240331104365338'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-re-ruby-gems-for-single-sign-on.html' title='[Rails] Re: Ruby gems for Single Sign On'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-1553046825115691982</id><published>2012-01-30T05:32:00.000-08:00</published><updated>2012-01-30T05:33:05.937-08:00</updated><title type='text'>Re: [Rails] Ruby gems for Single Sign On</title><content type='html'>&lt;div&gt;Have a look this post:&lt;/div&gt;&lt;div&gt;&lt;a href="http://blog.joshsoftware.com/2010/12/16/multiple-applications-with-devise-omniauth-and-single-sign-on/"&gt;http://blog.joshsoftware.com/2010/12/16/multiple-applications-with-devise-omniauth-and-single-sign-on/&lt;/a&gt;&lt;/div&gt; &lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I have discussed SSO with devise and omniauth.&lt;/div&gt;&lt;div&gt;Hope this helps.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;@gautamrege&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;div class="gmail_quote"&gt;On Mon, Jan 30, 2012 at 6:38 PM, subbarao &lt;span dir="ltr"&gt;&amp;lt;&lt;a href="mailto:subbarao.kly@gmail.com"&gt;subbarao.kly@gmail.com&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt; &lt;blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"&gt;&lt;div class="im"&gt;On Monday 30 January 2012 06:28 PM, venkata reddy wrote:&lt;br&gt; &lt;blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"&gt; Hi All,&lt;br&gt;           anybody knows useful rubygems/rails plugins for implementing&lt;br&gt; Single Sign on?&lt;br&gt; &lt;br&gt; &lt;/blockquote&gt;&lt;/div&gt; no need to use gem or plug-in just write your custom code&lt;br&gt; &lt;br&gt; add on attribute user_login : boolean to user table&lt;br&gt; &lt;br&gt; when ever user logins set user_login as true and after session out or logout set user_login as false&lt;br&gt; &lt;br&gt; every time user login check the user_login value if false then allow him to login,&lt;br&gt; &lt;br&gt; otherwise tell One user already login.&lt;div class="HOEnZb"&gt;&lt;div class="h5"&gt;&lt;br&gt; &lt;br&gt; -- &lt;br&gt; You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt; To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com" target="_blank"&gt;rubyonrails-talk@googlegroups.&lt;u&gt;&lt;/u&gt;com&lt;/a&gt;.&lt;br&gt; To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com" target="_blank"&gt;rubyonrails-talk+unsubscribe@&lt;u&gt;&lt;/u&gt;googlegroups.com&lt;/a&gt;.&lt;br&gt; For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en" target="_blank"&gt;http://groups.google.com/&lt;u&gt;&lt;/u&gt;group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;br&gt; &lt;br&gt; &lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear="all"&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;-- &lt;br&gt;~~~~~~~~~~~~~~~&lt;br&gt;All wiyht. Rho sritched mg kegtops awound?&lt;br&gt; &lt;/div&gt;  &lt;p&gt;&lt;/p&gt;  -- &lt;br /&gt; You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.&lt;br /&gt; To post to this group, send email to rubyonrails-talk@googlegroups.com.&lt;br /&gt; To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.&lt;br /&gt;  For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.&lt;br /&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-1553046825115691982?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/1553046825115691982/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-ruby-gems-for-single-sign-on_30.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/1553046825115691982'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/1553046825115691982'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-ruby-gems-for-single-sign-on_30.html' title='Re: [Rails] Ruby gems for Single Sign On'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-7385988881375363316</id><published>2012-01-30T05:26:00.001-08:00</published><updated>2012-01-30T05:26:54.162-08:00</updated><title type='text'>Re: [Rails] how to use Paperclip alone with a separated attachment model</title><content type='html'>On Monday 30 January 2012 12:21 PM, Bo Zhao wrote:&lt;br&gt;&amp;gt; I have a scenario that my user need to upload a image first and then&lt;br&gt;&amp;gt; assign to another model, so I used a generic model, to upload the file&lt;br&gt;&amp;gt; first. But I always get a exception of&lt;br&gt;&amp;gt; ActiveRecord::UnknownAttributeError (unknown attribute: utf8). because&lt;br&gt;&amp;gt; rails automatically adds a utf-8 field for the form submit.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; model:&lt;br&gt;&amp;gt; &amp;lt;code&amp;gt;&lt;br&gt;&amp;gt; class AttachedImage&amp;lt;  ActiveRecord::Base&lt;br&gt;&amp;gt;    belongs_to :attachable, :polymorphic =&amp;gt;  true&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;    has_attached_file :image&lt;br&gt;&amp;gt; end&lt;br&gt;&amp;gt; &amp;lt;/code&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; migration:&lt;br&gt;&amp;gt; &amp;lt;code&amp;gt;&lt;br&gt;&amp;gt; class CreateAttachedImages&amp;lt;  ActiveRecord::Migration&lt;br&gt;&amp;gt;    def change&lt;br&gt;&amp;gt;      create_table :attached_images do |t|&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;        t.string      :image_file_name&lt;br&gt;&amp;gt;        t.string      :image_content_type&lt;br&gt;&amp;gt;        t.integer     :image_file_size&lt;br&gt;&amp;gt;        t.datetime    :image_updated_at&lt;br&gt;&amp;gt;        t.references  :attachable,  :polymorphic =&amp;gt;  true&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;        t.timestamps&lt;br&gt;&amp;gt;      end&lt;br&gt;&amp;gt;    end&lt;br&gt;&amp;gt; end&lt;br&gt;&amp;gt; &amp;lt;/code&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; And the controller:&lt;br&gt;&amp;gt; &amp;lt;code&amp;gt;&lt;br&gt;&amp;gt; class AttachedImagesController&amp;lt;  ApplicationController&lt;br&gt;&amp;gt;    def create&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;      @attched_image = AttachedImage.new(params)&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;      respond_to do |format|&lt;br&gt;&amp;gt;        if @attched_image.save&lt;br&gt;&amp;gt;          format.js&lt;br&gt;&amp;gt;        else&lt;br&gt;&amp;gt;          format.js&lt;br&gt;&amp;gt;        end&lt;br&gt;&amp;gt;      end&lt;br&gt;&amp;gt;    end&lt;br&gt;&amp;gt; end&lt;br&gt;&amp;gt; &amp;lt;/code&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; the view part:&lt;br&gt;&amp;gt; &amp;lt;code&amp;gt;&lt;br&gt;&amp;gt; &amp;lt;div id=&amp;quot;upload-image-dialog&amp;quot;&amp;gt;&lt;br&gt;&amp;gt;      &amp;lt;%= form_tag(@attached_image, :method =&amp;gt;  &amp;quot;POST&amp;quot;, :remote =&amp;gt;  true,&lt;br&gt;&amp;gt; :html =&amp;gt;  { :multipart =&amp;gt;  true }) do %&amp;gt;&lt;br&gt;&amp;gt;        &amp;lt;%= file_field_tag :image %&amp;gt;&lt;br&gt;&amp;gt;        &amp;lt;%= submit_tag(&amp;quot;submit&amp;quot;) %&amp;gt;&lt;br&gt;&amp;gt;      &amp;lt;% end %&amp;gt;&lt;br&gt;&amp;gt;      &amp;lt;h1 style=&amp;quot;display:none&amp;quot;&amp;gt;Successfully Uploaded.&amp;lt;/h1&amp;gt;&lt;br&gt;&amp;gt; &amp;lt;/div&amp;gt;&lt;br&gt;&amp;gt; &amp;lt;/code&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; it&amp;#39;s quite straight forward, but every time I submit this form, I will&lt;br&gt;&amp;gt; get an exception of the utf8 field added automatically by rails.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; ActiveRecord::UnknownAttributeError (unknown attribute: utf8):&lt;br&gt;&amp;gt;    app/controllers/attached_images_controller.rb:5:in `new&amp;#39;&lt;br&gt;&amp;gt;    app/controllers/attached_images_controller.rb:5:in `create&amp;#39;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; I could not understand that, this shall not be a problem right? We are&lt;br&gt;&amp;gt; writing @model = Model.new(params) everyday, hope someone could help me&lt;br&gt;&amp;gt; out and explain what&amp;#39;s going on under the hood, thanks!&lt;br&gt;&amp;gt;&lt;br&gt;change in the controller&lt;p&gt;@attched_image = AttachedImage.new(params)&lt;p&gt;to&lt;p&gt;@attched_image = AttachedImage.new(params[:attached_image])&lt;p&gt;&lt;br&gt;if above not working because of form_tag usage&lt;p&gt;then you have to use custom new like&lt;p&gt;@attched_image = AttachedImage.new(:image=&amp;gt;params[:image])&lt;p&gt;this should work.&lt;p&gt;&lt;p&gt;&lt;p&gt;&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-7385988881375363316?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/7385988881375363316/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-how-to-use-paperclip-alone_30.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/7385988881375363316'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/7385988881375363316'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-how-to-use-paperclip-alone_30.html' title='Re: [Rails] how to use Paperclip alone with a separated attachment model'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-1951286939376200917</id><published>2012-01-30T05:14:00.001-08:00</published><updated>2012-01-30T05:14:32.207-08:00</updated><title type='text'>Re: [Rails] Re: captcha issue</title><content type='html'>On Monday 30 January 2012 01:16 PM, sachin kewale wrote:     &lt;blockquote cite="mid:CAGd9XWi92doJJYgtmozuMbxdBf+P=Q=ax-3S-9AM96=9v_0pLg@mail.gmail.com"       type="cite"&gt;&lt;br&gt;       &lt;br&gt;       &lt;div class="gmail_quote"&gt;On Tue, Jan 24, 2012 at 6:06 PM, sachin         kewale &lt;span dir="ltr"&gt;&amp;lt;&lt;a moz-do-not-send="true"             href="mailto:sachinkewale@gmail.com"&gt;sachinkewale@gmail.com&lt;/a&gt;&amp;gt;&lt;/span&gt;         wrote:&lt;br&gt;         &lt;blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt           0.8ex; border-left: 1px solid rgb(204, 204, 204);           padding-left: 1ex;"&gt;           hi all,&lt;br&gt;           &amp;nbsp;&amp;nbsp; i have captcha image on Registration popup but on local the           captcha image and code is not coming.&lt;br&gt;           &amp;nbsp;&amp;nbsp; i have install RMagick and gd2 gem also.It gives following           error,&lt;br&gt;           &lt;br&gt;           &amp;nbsp; MissingSourceFile (no such file to load -- GD):&lt;br&gt;           &amp;nbsp; lib/captcha_image.rb:22&lt;br&gt;           &amp;nbsp; app/controllers/login_controller.rb:385:in `sign_up'&lt;br&gt;           &amp;nbsp; -e:2:in `load'&lt;br&gt;           &amp;nbsp; -e:2&lt;br&gt;           &lt;br&gt;           is anyone who used captcha on local machine ?&lt;br&gt;           &lt;br&gt;           thanks in advanced.&lt;span class="HOEnZb"&gt;&lt;font color="#888888"&gt;&lt;br&gt;               &lt;br&gt;               -- &lt;br&gt;               Regards&lt;br&gt;               Sachin S. Kewale&lt;br&gt;               &lt;br&gt;               &lt;br&gt;               &lt;br&gt;             &lt;/font&gt;&lt;/span&gt;&lt;/blockquote&gt;       &lt;/div&gt;       &lt;br&gt;       hi all,&lt;br clear="all"&gt;       &amp;nbsp;&amp;nbsp; is any one know how to use captcha on locally ? i am using       following ror environment,&lt;br&gt;       &amp;nbsp;&amp;nbsp; ruby 1.8.7 (2011-02-18 patchlevel 334) [i386-mingw32],&lt;br&gt;       &amp;nbsp;&amp;nbsp; Rails 2.3.11&lt;br&gt;       &amp;nbsp;&amp;nbsp; ruby gem version:1.6.2&lt;br&gt;       &lt;br&gt;       -- &lt;br&gt;       Thanks and Regards&lt;br&gt;       &amp;nbsp;Sachin S. Kewale&lt;br&gt;       &lt;br&gt;       -- &lt;br&gt;       You received this message because you are subscribed to the Google       Groups "Ruby on Rails: Talk" group.&lt;br&gt;       To post to this group, send email to       &lt;a class="moz-txt-link-abbreviated" href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;       To unsubscribe from this group, send email to       &lt;a class="moz-txt-link-abbreviated" href="mailto:rubyonrails-talk+unsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;       For more options, visit this group at       &lt;a class="moz-txt-link-freetext" href="http://groups.google.com/group/rubyonrails-talk?hl"&gt;http://groups.google.com/group/rubyonrails-talk?hl&lt;/a&gt;&lt;/blockquote&gt;     I used Recaptcha plugin from google and recaptcha plugin &lt;br&gt;     &lt;br&gt;     for me it working fine. If u want you can also try.&lt;br&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-1951286939376200917?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/1951286939376200917/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-re-captcha-issue.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/1951286939376200917'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/1951286939376200917'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-re-captcha-issue.html' title='Re: [Rails] Re: captcha issue'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-19721813519983583</id><published>2012-01-30T05:08:00.001-08:00</published><updated>2012-01-30T05:08:49.054-08:00</updated><title type='text'>Re: [Rails] Ruby gems for Single Sign On</title><content type='html'>On Monday 30 January 2012 06:28 PM, venkata reddy wrote:&lt;br&gt;&amp;gt; Hi All,&lt;br&gt;&amp;gt;           anybody knows useful rubygems/rails plugins for implementing&lt;br&gt;&amp;gt; Single Sign on?&lt;br&gt;&amp;gt;&lt;br&gt;no need to use gem or plug-in just write your custom code&lt;p&gt;add on attribute user_login : boolean to user table&lt;p&gt;when ever user logins set user_login as true and after session out or &lt;br&gt;logout set user_login as false&lt;p&gt;every time user login check the user_login value if false then allow him &lt;br&gt;to login,&lt;p&gt;otherwise tell One user already login.&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-19721813519983583?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/19721813519983583/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-ruby-gems-for-single-sign-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/19721813519983583'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/19721813519983583'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-ruby-gems-for-single-sign-on.html' title='Re: [Rails] Ruby gems for Single Sign On'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-5178216745440723261</id><published>2012-01-30T04:58:00.000-08:00</published><updated>2012-01-30T04:59:05.741-08:00</updated><title type='text'>[Rails] Ruby gems for Single Sign On</title><content type='html'>Hi All,&lt;br&gt;         anybody knows useful rubygems/rails plugins for implementing&lt;br&gt;Single Sign on?&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-5178216745440723261?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/5178216745440723261/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-ruby-gems-for-single-sign-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/5178216745440723261'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/5178216745440723261'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-ruby-gems-for-single-sign-on.html' title='[Rails] Ruby gems for Single Sign On'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-5526216805309738032</id><published>2012-01-30T04:39:00.001-08:00</published><updated>2012-01-30T04:39:28.836-08:00</updated><title type='text'>Re: [Rails] Gem Load Error</title><content type='html'>&lt;div class="gmail_quote"&gt;On Fri, Jan 27, 2012 at 5:52 PM, Eduardo Rabelo &lt;span dir="ltr"&gt;&amp;lt;&lt;a href="mailto:oieduardorabelo@gmail.com"&gt;oieduardorabelo@gmail.com&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"&gt;                  &lt;div&gt;&lt;span style="font-size:12px"&gt;Hi group,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size:12px"&gt;&lt;br&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size:12px"&gt;I&amp;#39;m new here, and, after search and search on Bing (trollface), &lt;/span&gt;&lt;/div&gt; &lt;div&gt;&lt;span style="font-size:12px"&gt;&lt;br&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color:rgb(51,51,51);font-size:12px"&gt;&lt;span&gt;I decided to ask&lt;/span&gt; &lt;span&gt;the group&lt;/span&gt;&lt;span&gt;, I&amp;#39;m having&lt;/span&gt; &lt;span&gt;this problem&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;div&gt;&lt;span style="font-size:12px"&gt;&lt;br&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                     &lt;span style="font-size:12px"&gt;`to_specs&amp;#39;: Could not find railties (&amp;gt;= 0) amongst [bundler-1.0.21, bundler-1.0.21, rake-0.9.2.2, rake-0.9.2] (Gem::LoadError)                 &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size:12px"&gt;&lt;br&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size:12px"&gt;Every time on i make &amp;quot;rails s&amp;quot; or &amp;quot;rails new&amp;quot;,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size:12px"&gt;&lt;br&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color:rgb(51,51,51);font-size:12px"&gt;&lt;span&gt;This occurred after&lt;/span&gt; &lt;span&gt;I updated&lt;/span&gt; &lt;span&gt;to&lt;/span&gt; &lt;span&gt;Ruby&lt;/span&gt; &lt;span&gt;1.9.2,&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color:rgb(51,51,51)"&gt;&lt;span style="font-size:12px"&gt;&lt;br&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color:rgb(51,51,51)"&gt;&lt;span style="font-size:12px"&gt;Anyone know how i fix it?&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;What does&lt;br&gt;&lt;br&gt;$ gem list&lt;br&gt;&lt;br&gt;show ?&lt;br&gt;&lt;br&gt;What happens when you try&lt;br&gt; &lt;br&gt;$ bundle install &lt;br&gt;&lt;br&gt;HTH,&lt;br&gt;&lt;br&gt;Peter&lt;br&gt; &lt;/div&gt;&lt;/div&gt;  &lt;p&gt;&lt;/p&gt;  -- &lt;br /&gt; You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.&lt;br /&gt; To post to this group, send email to rubyonrails-talk@googlegroups.com.&lt;br /&gt; To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.&lt;br /&gt;  For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.&lt;br /&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-5526216805309738032?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/5526216805309738032/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-gem-load-error.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/5526216805309738032'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/5526216805309738032'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-gem-load-error.html' title='Re: [Rails] Gem Load Error'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-3420852910397140263</id><published>2012-01-29T23:46:00.001-08:00</published><updated>2012-01-29T23:46:51.221-08:00</updated><title type='text'>[Rails] Re: captcha issue</title><content type='html'>&lt;br&gt;&lt;br&gt;&lt;div class="gmail_quote"&gt;On Tue, Jan 24, 2012 at 6:06 PM, sachin kewale &lt;span dir="ltr"&gt;&amp;lt;&lt;a href="mailto:sachinkewale@gmail.com"&gt;sachinkewale@gmail.com&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"&gt; hi all,&lt;br&gt;   i have captcha image on Registration popup but on local the captcha image and code is not coming.&lt;br&gt;   i have install RMagick and gd2 gem also.It gives following error,&lt;br&gt;&lt;br&gt;  MissingSourceFile (no such file to load -- GD):&lt;br&gt;    lib/captcha_image.rb:22&lt;br&gt;  app/controllers/login_controller.rb:385:in `sign_up&amp;#39;&lt;br&gt;  -e:2:in `load&amp;#39;&lt;br&gt;  -e:2&lt;br&gt;&lt;br&gt;is anyone who used captcha on local machine ?&lt;br&gt;&lt;br&gt;thanks in advanced.&lt;span class="HOEnZb"&gt;&lt;font color="#888888"&gt;&lt;br&gt; &lt;br&gt;-- &lt;br&gt;Regards&lt;br&gt; Sachin S. Kewale&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt; &lt;/font&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;hi all,&lt;br clear="all"&gt;   is any one know how to use captcha on locally ? i am using following ror environment,&lt;br&gt;   ruby 1.8.7 (2011-02-18 patchlevel 334) [i386-mingw32],&lt;br&gt;   Rails 2.3.11&lt;br&gt;    ruby gem version:1.6.2&lt;br&gt;&lt;br&gt;-- &lt;br&gt;Thanks and Regards&lt;br&gt; Sachin S. Kewale&lt;br&gt;&lt;br&gt;  &lt;p&gt;&lt;/p&gt;  -- &lt;br /&gt; You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.&lt;br /&gt; To post to this group, send email to rubyonrails-talk@googlegroups.com.&lt;br /&gt; To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.&lt;br /&gt;  For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.&lt;br /&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-3420852910397140263?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/3420852910397140263/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-re-captcha-issue.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/3420852910397140263'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/3420852910397140263'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-re-captcha-issue.html' title='[Rails] Re: captcha issue'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-9167306696176674789</id><published>2012-01-29T23:43:00.000-08:00</published><updated>2012-01-30T03:05:44.907-08:00</updated><title type='text'>Re: [Rails] how to use Paperclip alone with a separated attachment model</title><content type='html'>Problem is here, in this line of code:&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;meta http-equiv="content-type" content="text/html; charset=utf-8"&gt;@attched_image = AttachedImage.new(params)&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;It should be:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt; &lt;div&gt;&lt;meta http-equiv="content-type" content="text/html; charset=utf-8"&gt;@attched_image = AttachedImage.new(params[:attached_image])&lt;br&gt;&lt;br&gt;&lt;div class="gmail_quote"&gt;On Mon, Jan 30, 2012 at 12:21 PM, Bo Zhao &lt;span dir="ltr"&gt;&amp;lt;&lt;a href="mailto:lists@ruby-forum.com"&gt;lists@ruby-forum.com&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt; &lt;blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"&gt;I have a scenario that my user need to upload a image first and then&lt;br&gt; assign to another model, so I used a generic model, to upload the file&lt;br&gt; first. But I always get a exception of&lt;br&gt; ActiveRecord::UnknownAttributeError (unknown attribute: utf8). because&lt;br&gt; rails automatically adds a utf-8 field for the form submit.&lt;br&gt; &lt;br&gt; model:&lt;br&gt; &amp;lt;code&amp;gt;&lt;br&gt; class AttachedImage &amp;lt; ActiveRecord::Base&lt;br&gt;   belongs_to :attachable, :polymorphic =&amp;gt; true&lt;br&gt; &lt;br&gt;   has_attached_file :image&lt;br&gt; end&lt;br&gt; &amp;lt;/code&amp;gt;&lt;br&gt; &lt;br&gt; migration:&lt;br&gt; &amp;lt;code&amp;gt;&lt;br&gt; class CreateAttachedImages &amp;lt; ActiveRecord::Migration&lt;br&gt;   def change&lt;br&gt;     create_table :attached_images do |t|&lt;br&gt; &lt;br&gt;       t.string      :image_file_name&lt;br&gt;       t.string      :image_content_type&lt;br&gt;       t.integer     :image_file_size&lt;br&gt;       t.datetime    :image_updated_at&lt;br&gt;       t.references  :attachable,  :polymorphic =&amp;gt; true&lt;br&gt; &lt;br&gt;       t.timestamps&lt;br&gt;     end&lt;br&gt;   end&lt;br&gt; end&lt;br&gt; &amp;lt;/code&amp;gt;&lt;br&gt; &lt;br&gt; And the controller:&lt;br&gt; &amp;lt;code&amp;gt;&lt;br&gt; class AttachedImagesController &amp;lt; ApplicationController&lt;br&gt;   def create&lt;br&gt; &lt;br&gt;     @attched_image = AttachedImage.new(params)&lt;br&gt; &lt;br&gt;     respond_to do |format|&lt;br&gt;       if @attched_image.save&lt;br&gt;         format.js&lt;br&gt;       else&lt;br&gt;         format.js&lt;br&gt;       end&lt;br&gt;     end&lt;br&gt;   end&lt;br&gt; end&lt;br&gt; &amp;lt;/code&amp;gt;&lt;br&gt; &lt;br&gt; the view part:&lt;br&gt; &amp;lt;code&amp;gt;&lt;br&gt; &amp;lt;div id=&amp;quot;upload-image-dialog&amp;quot;&amp;gt;&lt;br&gt;     &amp;lt;%= form_tag(@attached_image, :method =&amp;gt; &amp;quot;POST&amp;quot;, :remote =&amp;gt; true,&lt;br&gt; :html =&amp;gt; { :multipart =&amp;gt; true }) do %&amp;gt;&lt;br&gt;       &amp;lt;%= file_field_tag :image %&amp;gt;&lt;br&gt;       &amp;lt;%= submit_tag(&amp;quot;submit&amp;quot;) %&amp;gt;&lt;br&gt;     &amp;lt;% end %&amp;gt;&lt;br&gt;     &amp;lt;h1 style=&amp;quot;display:none&amp;quot;&amp;gt;Successfully Uploaded.&amp;lt;/h1&amp;gt;&lt;br&gt; &amp;lt;/div&amp;gt;&lt;br&gt; &amp;lt;/code&amp;gt;&lt;br&gt; &lt;br&gt; it&amp;#39;s quite straight forward, but every time I submit this form, I will&lt;br&gt; get an exception of the utf8 field added automatically by rails.&lt;br&gt; &lt;br&gt; ActiveRecord::UnknownAttributeError (unknown attribute: utf8):&lt;br&gt;   app/controllers/attached_images_controller.rb:5:in `new&amp;#39;&lt;br&gt;   app/controllers/attached_images_controller.rb:5:in `create&amp;#39;&lt;br&gt; &lt;br&gt; I could not understand that, this shall not be a problem right? We are&lt;br&gt; writing @model = Model.new(params) everyday, hope someone could help me&lt;br&gt; out and explain what&amp;#39;s going on under the hood, thanks!&lt;br&gt; &lt;span class="HOEnZb"&gt;&lt;font color="#888888"&gt;&lt;br&gt; --&lt;br&gt; Posted via &lt;a href="http://www.ruby-forum.com/" target="_blank"&gt;http://www.ruby-forum.com/&lt;/a&gt;.&lt;br&gt; &lt;br&gt; --&lt;br&gt; You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt; To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt; To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt; For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en" target="_blank"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;br&gt; &lt;br&gt; &lt;/font&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear="all"&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;-- &lt;br&gt;Thanks,&lt;div&gt;Prince&lt;/div&gt;&lt;br&gt; &lt;/div&gt;  &lt;p&gt;&lt;/p&gt;  -- &lt;br /&gt; You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.&lt;br /&gt; To post to this group, send email to rubyonrails-talk@googlegroups.com.&lt;br /&gt; To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.&lt;br /&gt;  For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.&lt;br /&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-9167306696176674789?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/9167306696176674789/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-how-to-use-paperclip-alone.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/9167306696176674789'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/9167306696176674789'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-how-to-use-paperclip-alone.html' title='Re: [Rails] how to use Paperclip alone with a separated attachment model'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-6676208342658984525</id><published>2012-01-29T22:51:00.000-08:00</published><updated>2012-01-29T22:52:02.379-08:00</updated><title type='text'>[Rails] how to use Paperclip alone with a separated attachment model</title><content type='html'>I have a scenario that my user need to upload a image first and then&lt;br&gt;assign to another model, so I used a generic model, to upload the file&lt;br&gt;first. But I always get a exception of&lt;br&gt;ActiveRecord::UnknownAttributeError (unknown attribute: utf8). because&lt;br&gt;rails automatically adds a utf-8 field for the form submit.&lt;p&gt;model:&lt;br&gt;&amp;lt;code&amp;gt;&lt;br&gt;class AttachedImage &amp;lt; ActiveRecord::Base&lt;br&gt;  belongs_to :attachable, :polymorphic =&amp;gt; true&lt;p&gt;  has_attached_file :image&lt;br&gt;end&lt;br&gt;&amp;lt;/code&amp;gt;&lt;p&gt;migration:&lt;br&gt;&amp;lt;code&amp;gt;&lt;br&gt;class CreateAttachedImages &amp;lt; ActiveRecord::Migration&lt;br&gt;  def change&lt;br&gt;    create_table :attached_images do |t|&lt;p&gt;      t.string      :image_file_name&lt;br&gt;      t.string      :image_content_type&lt;br&gt;      t.integer     :image_file_size&lt;br&gt;      t.datetime    :image_updated_at&lt;br&gt;      t.references  :attachable,  :polymorphic =&amp;gt; true&lt;p&gt;      t.timestamps&lt;br&gt;    end&lt;br&gt;  end&lt;br&gt;end&lt;br&gt;&amp;lt;/code&amp;gt;&lt;p&gt;And the controller:&lt;br&gt;&amp;lt;code&amp;gt;&lt;br&gt;class AttachedImagesController &amp;lt; ApplicationController&lt;br&gt;  def create&lt;p&gt;    @attched_image = AttachedImage.new(params)&lt;p&gt;    respond_to do |format|&lt;br&gt;      if @attched_image.save&lt;br&gt;        format.js&lt;br&gt;      else&lt;br&gt;        format.js&lt;br&gt;      end&lt;br&gt;    end&lt;br&gt;  end&lt;br&gt;end&lt;br&gt;&amp;lt;/code&amp;gt;&lt;p&gt;the view part:&lt;br&gt;&amp;lt;code&amp;gt;&lt;br&gt;&amp;lt;div id=&amp;quot;upload-image-dialog&amp;quot;&amp;gt;&lt;br&gt;    &amp;lt;%= form_tag(@attached_image, :method =&amp;gt; &amp;quot;POST&amp;quot;, :remote =&amp;gt; true,&lt;br&gt;:html =&amp;gt; { :multipart =&amp;gt; true }) do %&amp;gt;&lt;br&gt;      &amp;lt;%= file_field_tag :image %&amp;gt;&lt;br&gt;      &amp;lt;%= submit_tag(&amp;quot;submit&amp;quot;) %&amp;gt;&lt;br&gt;    &amp;lt;% end %&amp;gt;&lt;br&gt;    &amp;lt;h1 style=&amp;quot;display:none&amp;quot;&amp;gt;Successfully Uploaded.&amp;lt;/h1&amp;gt;&lt;br&gt;&amp;lt;/div&amp;gt;&lt;br&gt;&amp;lt;/code&amp;gt;&lt;p&gt;it&amp;#39;s quite straight forward, but every time I submit this form, I will&lt;br&gt;get an exception of the utf8 field added automatically by rails.&lt;p&gt;ActiveRecord::UnknownAttributeError (unknown attribute: utf8):&lt;br&gt;  app/controllers/attached_images_controller.rb:5:in `new&amp;#39;&lt;br&gt;  app/controllers/attached_images_controller.rb:5:in `create&amp;#39;&lt;p&gt;I could not understand that, this shall not be a problem right? We are&lt;br&gt;writing @model = Model.new(params) everyday, hope someone could help me&lt;br&gt;out and explain what&amp;#39;s going on under the hood, thanks!&lt;p&gt;-- &lt;br&gt;Posted via &lt;a href="http://www.ruby-forum.com/"&gt;http://www.ruby-forum.com/&lt;/a&gt;.&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-6676208342658984525?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/6676208342658984525/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-how-to-use-paperclip-alone-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/6676208342658984525'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/6676208342658984525'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-how-to-use-paperclip-alone-with.html' title='[Rails] how to use Paperclip alone with a separated attachment model'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-8875496750493637927</id><published>2012-01-29T22:38:00.000-08:00</published><updated>2012-01-30T03:05:43.760-08:00</updated><title type='text'>Re: [Rails] Re: data is storing in database when i had created but it is destroyed after the sign out</title><content type='html'>You should not add &amp;#39;self.save&amp;#39; to the method, as you are calling these functions in &amp;#39;before_save&amp;#39;. It means these functions will be invoked before saving any object of that model. Calling &amp;#39;self.save&amp;#39; inside it will result in an infinite loop.&lt;br&gt; &lt;br&gt;&lt;div class="gmail_quote"&gt;On Mon, Jan 30, 2012 at 11:44 AM, Kapil Kaligotla &lt;span dir="ltr"&gt;&amp;lt;&lt;a href="mailto:kapil.kaligotla@magikminds.com"&gt;kapil.kaligotla@magikminds.com&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"&gt; Hi,&lt;br&gt;   Thanks for your quickest response, i had added  the self.save but i&lt;br&gt; am getting error as &amp;quot;stack level too deep&amp;quot;  on submitting the profile&lt;br&gt; form&lt;br&gt; &lt;br&gt; Thanks,&lt;br&gt; Kapil&lt;br&gt; &lt;div class="im"&gt;&lt;br&gt; On Jan 30, 11:03 am, Neethu Satheesh &amp;lt;&lt;a href="mailto:li...@ruby-forum.com"&gt;li...@ruby-forum.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt; &amp;gt; Hi Kapil,&lt;br&gt; &amp;gt;&lt;br&gt; &amp;gt; Please try with self.save in your methods build_cell &amp;amp; build_telephone.&lt;br&gt; &amp;gt;&lt;br&gt; &amp;gt; Eg :&lt;br&gt; &amp;gt;&lt;br&gt; &amp;gt; def build_cell&lt;br&gt; &amp;gt;    self.mobile = &amp;quot;#{self.code1}-#{self.number1}&amp;quot;&lt;br&gt; &amp;gt;    self.save&lt;br&gt; &amp;gt; end&lt;br&gt; &amp;gt;&lt;br&gt; &amp;gt; Thanks,&lt;br&gt; &amp;gt;&lt;br&gt; &amp;gt; Neethu&lt;br&gt; &amp;gt;&lt;br&gt; &amp;gt; --&lt;br&gt; &lt;/div&gt;&amp;gt; Posted viahttp://&lt;a href="http://www.ruby-forum.com/" target="_blank"&gt;www.ruby-forum.com/&lt;/a&gt;.&lt;br&gt; &lt;div class="HOEnZb"&gt;&lt;div class="h5"&gt;&lt;br&gt; --&lt;br&gt; You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt; To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt; To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt; For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en" target="_blank"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;br&gt; &lt;br&gt; &lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear="all"&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;-- &lt;br&gt;Thanks,&lt;div&gt;Prince&lt;/div&gt;&lt;br&gt;  &lt;p&gt;&lt;/p&gt;  -- &lt;br /&gt; You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.&lt;br /&gt; To post to this group, send email to rubyonrails-talk@googlegroups.com.&lt;br /&gt; To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.&lt;br /&gt;  For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.&lt;br /&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-8875496750493637927?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/8875496750493637927/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-re-data-is-storing-in-database.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/8875496750493637927'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/8875496750493637927'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-re-data-is-storing-in-database.html' title='Re: [Rails] Re: data is storing in database when i had created but it is destroyed after the sign out'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-3822407918896728921</id><published>2012-01-29T22:31:00.000-08:00</published><updated>2012-01-30T03:05:43.032-08:00</updated><title type='text'>Re: [Rails] data is storing in database when i had created but it is destroyed after the sign out</title><content type='html'>I believe one of the validations is failing in the case where you update the user profile. Try using something with bang operator(like &amp;#39;save!&amp;#39;) in the code where you update the user profile (in the controller) to identify which validation is failing. (&amp;#39;!&amp;#39; will raise an exception if any validation is failed).&lt;br&gt; &lt;br&gt;&lt;div class="gmail_quote"&gt;On Mon, Jan 30, 2012 at 11:01 AM, Kapil Kaligotla &lt;span dir="ltr"&gt;&amp;lt;&lt;a href="mailto:kapil.kaligotla@magikminds.com"&gt;kapil.kaligotla@magikminds.com&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"&gt; I had created users using devise in rails. I am storing user mobile&lt;br&gt; number and land line number for the user profile, by using this code&lt;br&gt; it is storing the cell and land line numbers in database but after the&lt;br&gt; sign out it is not stored in the database. please tell me whats wrong&lt;br&gt; in my code in users.rb&lt;br&gt; &lt;br&gt; &lt;br&gt; before_save :build_telephone&lt;br&gt;   before_save :build_cell&lt;br&gt; &lt;br&gt; validates :code, :presence =&amp;gt; true, :numericality =&amp;gt; true, :length =&amp;gt;&lt;br&gt; { :within =&amp;gt; 1..2 }, :on =&amp;gt; :update&lt;br&gt;   validates :code2, :presence =&amp;gt; true, :numericality =&amp;gt; true, :length&lt;br&gt; =&amp;gt; { :within =&amp;gt; 2..4 }, :on =&amp;gt; :update&lt;br&gt;   validates :number, :presence =&amp;gt; true, :numericality =&amp;gt; true, :length&lt;br&gt; =&amp;gt; { :within =&amp;gt; 1..7 }, :on =&amp;gt; :update&lt;br&gt;   validates :code1, :presence =&amp;gt; true, :numericality =&amp;gt; true, :length&lt;br&gt; =&amp;gt; { :within =&amp;gt; 1..2 }, :on =&amp;gt; :update&lt;br&gt;   validates :number1, :presence =&amp;gt; true, :numericality =&amp;gt;&lt;br&gt; true, :length =&amp;gt; {:minimum =&amp;gt; 10, :maximum =&amp;gt; 10}, :on =&amp;gt; :update&lt;br&gt; &lt;br&gt; attr_accessor :code,:code2, :number, :code1, :number1&lt;br&gt; &lt;br&gt; attr_accessible :email, :password,  :password_confirmation,  :mobile, :landline, :remember_me , :code, :code2, :number, :code1, :number1&lt;br&gt; &lt;br&gt; def build_cell&lt;br&gt;       self.mobile = &amp;quot;#{self.code1}-#{self.number1}&amp;quot;&lt;br&gt;     end&lt;br&gt; &lt;br&gt;     def build_telephone&lt;br&gt;       self.landline = &amp;quot;#{self.code}-#{self.code2}-#{self.number}&amp;quot;&lt;br&gt;     end&lt;br&gt; &lt;span class="HOEnZb"&gt;&lt;font color="#888888"&gt;&lt;br&gt; --&lt;br&gt; You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt; To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt; To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt; For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en" target="_blank"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;br&gt; &lt;br&gt; &lt;/font&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear="all"&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;-- &lt;br&gt;Thanks,&lt;div&gt;Prince&lt;/div&gt;&lt;br&gt;  &lt;p&gt;&lt;/p&gt;  -- &lt;br /&gt; You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.&lt;br /&gt; To post to this group, send email to rubyonrails-talk@googlegroups.com.&lt;br /&gt; To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.&lt;br /&gt;  For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.&lt;br /&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-3822407918896728921?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/3822407918896728921/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-data-is-storing-in-database.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/3822407918896728921'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/3822407918896728921'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-data-is-storing-in-database.html' title='Re: [Rails] data is storing in database when i had created but it is destroyed after the sign out'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-5483679132394626321</id><published>2012-01-29T22:21:00.001-08:00</published><updated>2012-01-29T22:21:22.858-08:00</updated><title type='text'>[Rails] Re: data is storing in database when i had created but it is destroyed after the sign out</title><content type='html'>Try following this thread, I have not it read completely. It may help&lt;br&gt;you.&lt;p&gt;&lt;a href="http://www.ruby-forum.com/topic/3233401"&gt;http://www.ruby-forum.com/topic/3233401&lt;/a&gt;&lt;p&gt;- Neethu&lt;p&gt;-- &lt;br&gt;Posted via &lt;a href="http://www.ruby-forum.com/"&gt;http://www.ruby-forum.com/&lt;/a&gt;.&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-5483679132394626321?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/5483679132394626321/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-re-data-is-storing-in-database_6708.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/5483679132394626321'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/5483679132394626321'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-re-data-is-storing-in-database_6708.html' title='[Rails] Re: data is storing in database when i had created but it is destroyed after the sign out'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-5621646109901556805</id><published>2012-01-29T22:20:00.001-08:00</published><updated>2012-01-29T22:20:52.672-08:00</updated><title type='text'>[Rails] Re: data is storing in database when i had created but it is destroyed after the sign out</title><content type='html'>Try following this thread, I have not it read completely. It may help &lt;br&gt;you.&lt;p&gt;- Neethu&lt;p&gt;-- &lt;br&gt;Posted via &lt;a href="http://www.ruby-forum.com/"&gt;http://www.ruby-forum.com/&lt;/a&gt;.&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-5621646109901556805?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/5621646109901556805/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-re-data-is-storing-in-database_1470.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/5621646109901556805'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/5621646109901556805'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-re-data-is-storing-in-database_1470.html' title='[Rails] Re: data is storing in database when i had created but it is destroyed after the sign out'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-8353546934603816849</id><published>2012-01-29T22:14:00.000-08:00</published><updated>2012-01-29T22:15:15.242-08:00</updated><title type='text'>[Rails] Re: data is storing in database when i had created but it is destroyed after the sign out</title><content type='html'>Hi,&lt;br&gt;  Thanks for your quickest response, i had added  the self.save but i&lt;br&gt;am getting error as &amp;quot;stack level too deep&amp;quot;  on submitting the profile&lt;br&gt;form&lt;p&gt;Thanks,&lt;br&gt;Kapil&lt;p&gt;On Jan 30, 11:03&amp;#160;am, Neethu Satheesh &amp;lt;&lt;a href="mailto:li...@ruby-forum.com"&gt;li...@ruby-forum.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt; Hi Kapil,&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Please try with self.save in your methods build_cell &amp;amp; build_telephone.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Eg :&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; def build_cell&lt;br&gt;&amp;gt; &amp;#160; &amp;#160;self.mobile = &amp;quot;#{self.code1}-#{self.number1}&amp;quot;&lt;br&gt;&amp;gt; &amp;#160; &amp;#160;self.save&lt;br&gt;&amp;gt; end&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Thanks,&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Neethu&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; --&lt;br&gt;&amp;gt; Posted viahttp://&lt;a href="http://www.ruby-forum.com/"&gt;www.ruby-forum.com/&lt;/a&gt;.&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-8353546934603816849?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/8353546934603816849/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-re-data-is-storing-in-database_29.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/8353546934603816849'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/8353546934603816849'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-re-data-is-storing-in-database_29.html' title='[Rails] Re: data is storing in database when i had created but it is destroyed after the sign out'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-6552999439528901220</id><published>2012-01-29T22:03:00.000-08:00</published><updated>2012-01-29T22:04:18.659-08:00</updated><title type='text'>[Rails] Re: data is storing in database when i had created but it is destroyed after the sign out</title><content type='html'>Hi Kapil,&lt;p&gt;Please try with self.save in your methods build_cell &amp;amp; build_telephone.&lt;p&gt;Eg :&lt;p&gt;def build_cell&lt;br&gt;   self.mobile = &amp;quot;#{self.code1}-#{self.number1}&amp;quot;&lt;br&gt;   self.save&lt;br&gt;end&lt;p&gt;Thanks,&lt;p&gt;Neethu&lt;p&gt;-- &lt;br&gt;Posted via &lt;a href="http://www.ruby-forum.com/"&gt;http://www.ruby-forum.com/&lt;/a&gt;.&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-6552999439528901220?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/6552999439528901220/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-re-data-is-storing-in-database.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/6552999439528901220'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/6552999439528901220'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-re-data-is-storing-in-database.html' title='[Rails] Re: data is storing in database when i had created but it is destroyed after the sign out'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-5061831635490949152</id><published>2012-01-29T21:31:00.001-08:00</published><updated>2012-01-29T21:31:33.681-08:00</updated><title type='text'>[Rails] data is storing in database when  i had created but it is destroyed after the sign out</title><content type='html'>I had created users using devise in rails. I am storing user mobile&lt;br&gt;number and land line number for the user profile, by using this code&lt;br&gt;it is storing the cell and land line numbers in database but after the&lt;br&gt;sign out it is not stored in the database. please tell me whats wrong&lt;br&gt;in my code in users.rb&lt;p&gt;&lt;br&gt;before_save :build_telephone&lt;br&gt;  before_save :build_cell&lt;p&gt;validates :code, :presence =&amp;gt; true, :numericality =&amp;gt; true, :length =&amp;gt;&lt;br&gt;{ :within =&amp;gt; 1..2 }, :on =&amp;gt; :update&lt;br&gt;  validates :code2, :presence =&amp;gt; true, :numericality =&amp;gt; true, :length&lt;br&gt;=&amp;gt; { :within =&amp;gt; 2..4 }, :on =&amp;gt; :update&lt;br&gt;  validates :number, :presence =&amp;gt; true, :numericality =&amp;gt; true, :length&lt;br&gt;=&amp;gt; { :within =&amp;gt; 1..7 }, :on =&amp;gt; :update&lt;br&gt;  validates :code1, :presence =&amp;gt; true, :numericality =&amp;gt; true, :length&lt;br&gt;=&amp;gt; { :within =&amp;gt; 1..2 }, :on =&amp;gt; :update&lt;br&gt;  validates :number1, :presence =&amp;gt; true, :numericality =&amp;gt;&lt;br&gt;true, :length =&amp;gt; {:minimum =&amp;gt; 10, :maximum =&amp;gt; 10}, :on =&amp;gt; :update&lt;p&gt;attr_accessor :code,:code2, :number, :code1, :number1&lt;p&gt;attr_accessible :email, :password,  :password_confirmation,  :mobile, :landline, :remember_me , :code, :code2, :number, :code1, :number1&lt;p&gt;def build_cell&lt;br&gt;      self.mobile = &amp;quot;#{self.code1}-#{self.number1}&amp;quot;&lt;br&gt;    end&lt;p&gt;    def build_telephone&lt;br&gt;      self.landline = &amp;quot;#{self.code}-#{self.code2}-#{self.number}&amp;quot;&lt;br&gt;    end&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-5061831635490949152?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/5061831635490949152/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-data-is-storing-in-database-when.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/5061831635490949152'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/5061831635490949152'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-data-is-storing-in-database-when.html' title='[Rails] data is storing in database when  i had created but it is destroyed after the sign out'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-5242707934149896895</id><published>2012-01-29T20:55:00.000-08:00</published><updated>2012-01-29T20:56:11.244-08:00</updated><title type='text'>[Rails] Re: Reaching into a has_and_belongs_to_many - will :through work?</title><content type='html'>Also, try this:&lt;br&gt;has_many :users, :through =&amp;gt; :campaigns, :source =&amp;gt; :users&lt;p&gt;On Jan 30, 10:52&amp;#160;am, Duane Morin &amp;lt;&lt;a href="mailto:li...@ruby-forum.com"&gt;li...@ruby-forum.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt; Hi. &amp;#160;I&amp;#39;m hoping somebody can tell me that I&amp;#39;ve just gotten my syntax&lt;br&gt;&amp;gt; wrong and I can in fact do what I want to do.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; I&amp;#39;ve got a Group, and a Group has_many Campaigns.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Campaign has_and_belongs_to_many Users (and, naturally, vice versa).&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; So I&amp;#39;ve got a groups table, a campaigns table (that has a group_id), a&lt;br&gt;&amp;gt; campaigns_users join table (with campaign_id and user_id), and a users&lt;br&gt;&amp;gt; table (who basically is left not belonging to anyone).&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; My question is this -- starting from Group I want to reach through that&lt;br&gt;&amp;gt; HABTM and point directly at the Users who belong to this Group. &amp;#160;I&amp;#39;ve&lt;br&gt;&amp;gt; successfully done it by writing my own finder_sql, or by just cheating&lt;br&gt;&amp;gt; and collapsing all the camaign.users together. &amp;#160;But I&amp;#39;m working on a&lt;br&gt;&amp;gt; user interface for this and I&amp;#39;d like my list of users to behave just&lt;br&gt;&amp;gt; like any other activerecord operation so that I can page through them,&lt;br&gt;&amp;gt; sort arbitrarily on columns and so on exactly as if I&amp;#39;d originally just&lt;br&gt;&amp;gt; had &amp;quot;Group has many Users&amp;quot;.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; I was hoping that this would work:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; class Group&lt;br&gt;&amp;gt; &amp;#160; has_many :campaigns&lt;br&gt;&amp;gt; &amp;#160; has_many :users, :through=&amp;gt;:campaigns&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; class Campaign&lt;br&gt;&amp;gt; &amp;#160; has_and_belongs_to_many :users&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; But it doesn&amp;#39;t, all I ever get is&lt;br&gt;&amp;gt; ActiveRecord::HasManyThroughSourceAssociationMacroError: Invalid source&lt;br&gt;&amp;gt; reflection macro :has_and_belongs_to_many for has_many :users, :through&lt;br&gt;&amp;gt; =&amp;gt; :campaigns. &amp;#160;Use :source to specify the source reflection.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; However I don&amp;#39;t understand what it wants in the :source option. &amp;#160;It&amp;#39;s&lt;br&gt;&amp;gt; not like I mucked around with any class_names. &amp;#160; (Well, technically this&lt;br&gt;&amp;gt; is inheriting an old database so the actual table names are being&lt;br&gt;&amp;gt; overridden, but I&amp;#39;m hoping that&amp;#39;s not it! &amp;#160;it&amp;#39;s not as if I&amp;#39;m getting&lt;br&gt;&amp;gt; bad SQL generated because an assumed table name does not exist).&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Thanks!&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; --&lt;br&gt;&amp;gt; Posted viahttp://&lt;a href="http://www.ruby-forum.com/"&gt;www.ruby-forum.com/&lt;/a&gt;.&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-5242707934149896895?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/5242707934149896895/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-re-reaching-into_29.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/5242707934149896895'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/5242707934149896895'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-re-reaching-into_29.html' title='[Rails] Re: Reaching into a has_and_belongs_to_many - will :through work?'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-2463002547640260807</id><published>2012-01-29T20:54:00.001-08:00</published><updated>2012-01-29T20:54:43.074-08:00</updated><title type='text'>[Rails] Re: Reaching into a has_and_belongs_to_many - will :through work?</title><content type='html'>What version of rails do you use? This setup works fine for me on&lt;br&gt;3.1.3 and 3.2.1&lt;p&gt;On Jan 30, 10:52&amp;#160;am, Duane Morin &amp;lt;&lt;a href="mailto:li...@ruby-forum.com"&gt;li...@ruby-forum.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt; Hi. &amp;#160;I&amp;#39;m hoping somebody can tell me that I&amp;#39;ve just gotten my syntax&lt;br&gt;&amp;gt; wrong and I can in fact do what I want to do.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; I&amp;#39;ve got a Group, and a Group has_many Campaigns.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Campaign has_and_belongs_to_many Users (and, naturally, vice versa).&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; So I&amp;#39;ve got a groups table, a campaigns table (that has a group_id), a&lt;br&gt;&amp;gt; campaigns_users join table (with campaign_id and user_id), and a users&lt;br&gt;&amp;gt; table (who basically is left not belonging to anyone).&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; My question is this -- starting from Group I want to reach through that&lt;br&gt;&amp;gt; HABTM and point directly at the Users who belong to this Group. &amp;#160;I&amp;#39;ve&lt;br&gt;&amp;gt; successfully done it by writing my own finder_sql, or by just cheating&lt;br&gt;&amp;gt; and collapsing all the camaign.users together. &amp;#160;But I&amp;#39;m working on a&lt;br&gt;&amp;gt; user interface for this and I&amp;#39;d like my list of users to behave just&lt;br&gt;&amp;gt; like any other activerecord operation so that I can page through them,&lt;br&gt;&amp;gt; sort arbitrarily on columns and so on exactly as if I&amp;#39;d originally just&lt;br&gt;&amp;gt; had &amp;quot;Group has many Users&amp;quot;.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; I was hoping that this would work:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; class Group&lt;br&gt;&amp;gt; &amp;#160; has_many :campaigns&lt;br&gt;&amp;gt; &amp;#160; has_many :users, :through=&amp;gt;:campaigns&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; class Campaign&lt;br&gt;&amp;gt; &amp;#160; has_and_belongs_to_many :users&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; But it doesn&amp;#39;t, all I ever get is&lt;br&gt;&amp;gt; ActiveRecord::HasManyThroughSourceAssociationMacroError: Invalid source&lt;br&gt;&amp;gt; reflection macro :has_and_belongs_to_many for has_many :users, :through&lt;br&gt;&amp;gt; =&amp;gt; :campaigns. &amp;#160;Use :source to specify the source reflection.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; However I don&amp;#39;t understand what it wants in the :source option. &amp;#160;It&amp;#39;s&lt;br&gt;&amp;gt; not like I mucked around with any class_names. &amp;#160; (Well, technically this&lt;br&gt;&amp;gt; is inheriting an old database so the actual table names are being&lt;br&gt;&amp;gt; overridden, but I&amp;#39;m hoping that&amp;#39;s not it! &amp;#160;it&amp;#39;s not as if I&amp;#39;m getting&lt;br&gt;&amp;gt; bad SQL generated because an assumed table name does not exist).&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Thanks!&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; --&lt;br&gt;&amp;gt; Posted viahttp://&lt;a href="http://www.ruby-forum.com/"&gt;www.ruby-forum.com/&lt;/a&gt;.&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-2463002547640260807?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/2463002547640260807/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-re-reaching-into.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/2463002547640260807'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/2463002547640260807'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-re-reaching-into.html' title='[Rails] Re: Reaching into a has_and_belongs_to_many - will :through work?'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-155405449334739093</id><published>2012-01-29T19:52:00.000-08:00</published><updated>2012-01-29T19:53:13.286-08:00</updated><title type='text'>[Rails] Reaching into a has_and_belongs_to_many - will :through work?</title><content type='html'>Hi.  I&amp;#39;m hoping somebody can tell me that I&amp;#39;ve just gotten my syntax&lt;br&gt;wrong and I can in fact do what I want to do.&lt;p&gt;I&amp;#39;ve got a Group, and a Group has_many Campaigns.&lt;p&gt;Campaign has_and_belongs_to_many Users (and, naturally, vice versa).&lt;p&gt;So I&amp;#39;ve got a groups table, a campaigns table (that has a group_id), a&lt;br&gt;campaigns_users join table (with campaign_id and user_id), and a users&lt;br&gt;table (who basically is left not belonging to anyone).&lt;p&gt;My question is this -- starting from Group I want to reach through that&lt;br&gt;HABTM and point directly at the Users who belong to this Group.  I&amp;#39;ve&lt;br&gt;successfully done it by writing my own finder_sql, or by just cheating&lt;br&gt;and collapsing all the camaign.users together.  But I&amp;#39;m working on a&lt;br&gt;user interface for this and I&amp;#39;d like my list of users to behave just&lt;br&gt;like any other activerecord operation so that I can page through them,&lt;br&gt;sort arbitrarily on columns and so on exactly as if I&amp;#39;d originally just&lt;br&gt;had &amp;quot;Group has many Users&amp;quot;.&lt;p&gt;I was hoping that this would work:&lt;p&gt;class Group&lt;br&gt;  has_many :campaigns&lt;br&gt;  has_many :users, :through=&amp;gt;:campaigns&lt;p&gt;class Campaign&lt;br&gt;  has_and_belongs_to_many :users&lt;p&gt;&lt;br&gt;But it doesn&amp;#39;t, all I ever get is&lt;br&gt;ActiveRecord::HasManyThroughSourceAssociationMacroError: Invalid source&lt;br&gt;reflection macro :has_and_belongs_to_many for has_many :users, :through&lt;br&gt;=&amp;gt; :campaigns.  Use :source to specify the source reflection.&lt;p&gt;However I don&amp;#39;t understand what it wants in the :source option.  It&amp;#39;s&lt;br&gt;not like I mucked around with any class_names.   (Well, technically this&lt;br&gt;is inheriting an old database so the actual table names are being&lt;br&gt;overridden, but I&amp;#39;m hoping that&amp;#39;s not it!  it&amp;#39;s not as if I&amp;#39;m getting&lt;br&gt;bad SQL generated because an assumed table name does not exist).&lt;p&gt;Thanks!&lt;p&gt;-- &lt;br&gt;Posted via &lt;a href="http://www.ruby-forum.com/"&gt;http://www.ruby-forum.com/&lt;/a&gt;.&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-155405449334739093?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/155405449334739093/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-reaching-into-hasandbelongstomany.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/155405449334739093'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/155405449334739093'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-reaching-into-hasandbelongstomany.html' title='[Rails] Reaching into a has_and_belongs_to_many - will :through work?'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-3709119888479885150</id><published>2012-01-29T16:29:00.001-08:00</published><updated>2012-01-29T16:30:16.732-08:00</updated><title type='text'>[Rails] Re: Re: Gem install bundler works, gem bundle doesn't?</title><content type='html'>Hello. I&amp;#39;m having the exact same problem. I&amp;#39;m on a hosted plan where I&lt;br&gt;don&amp;#39;t have root access. I am using RVM.&lt;p&gt;gem environment output:&lt;br&gt;&lt;a href="http://fpaste.org/9Ek4/"&gt;http://fpaste.org/9Ek4/&lt;/a&gt;&lt;p&gt;I can also type which bundle:&lt;br&gt;/home/giglinke/.rvm/bin/bundle&lt;p&gt;But anything else (bundle -v, bundle install, etc.) gives me the error&lt;br&gt;reported above.&lt;p&gt;gem install bundle works exactly as original poster listed.&lt;p&gt;...is this an rvm thing?&lt;p&gt;Any ideas?&lt;p&gt;Francesca Krihely wrote in post #1042676:&lt;br&gt;&amp;gt; Have you tried it with sudo?&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; On Thu, Jan 26, 2012 at 11:17 AM, Neener54 &amp;lt;&lt;a href="mailto:micharch54@gmail.com"&gt;micharch54@gmail.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Hi, I&amp;#39;m having some trouble with bundler:&lt;br&gt;&amp;gt;&amp;gt; --&lt;br&gt;&amp;gt;&amp;gt; You received this message because you are subscribed to the Google Groups&lt;br&gt;&amp;gt;&amp;gt; &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;&amp;gt;&amp;gt; To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;&amp;gt;&amp;gt; To unsubscribe from this group, send email to&lt;br&gt;&amp;gt;&amp;gt; &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;&amp;gt;&amp;gt; For more options, visit this group at&lt;br&gt;&amp;gt;&amp;gt; &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; **&lt;p&gt;-- &lt;br&gt;Posted via &lt;a href="http://www.ruby-forum.com/"&gt;http://www.ruby-forum.com/&lt;/a&gt;.&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-3709119888479885150?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/3709119888479885150/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-re-re-gem-install-bundler-works.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/3709119888479885150'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/3709119888479885150'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-re-re-gem-install-bundler-works.html' title='[Rails] Re: Re: Gem install bundler works, gem bundle doesn&apos;t?'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-76716934075565327</id><published>2012-01-29T16:29:00.000-08:00</published><updated>2012-01-29T16:30:11.573-08:00</updated><title type='text'>Re: [Rails] has_many association and parent_id</title><content type='html'>On Sun, Jan 29, 2012 at 05:45, Soichi Ishida &amp;lt;&lt;a href="mailto:lists@ruby-forum.com"&gt;lists@ruby-forum.com&lt;/a&gt;&amp;gt; wrote:&lt;p&gt;&amp;gt; Furthermore, in order to refer to the parent (in this case, &amp;#39;Video&amp;#39;), I&lt;br&gt;&amp;gt; need to set video_id:integer for Script. &amp;#160;Am I correct ?&lt;p&gt;Yes.&lt;p&gt;&amp;gt; how can I actually associate a new &amp;#39;script&amp;#39; entry with&lt;br&gt;&amp;gt; its parent, &amp;#39;video&amp;#39;, in making a new &amp;#39;Script&amp;#39; entry ?&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; For example, in &amp;#39;index.html.erb&amp;#39; for NewScript page, I tried to put&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;#160; &amp;#160;&amp;lt;td&amp;gt;&amp;lt;%= script.video_id %&amp;gt;&amp;lt;/td&amp;gt;&lt;p&gt;I don&amp;#39;t understand.  index.html.erb is for showing the list of&lt;br&gt;something.  What&amp;#39;s &amp;quot;NewScript&amp;quot; got to do with it?&lt;p&gt;You may be on *almost* the right track though.  Assuming you get to&lt;br&gt;views/scripts/new.html.erb by clicking on something associated with a&lt;br&gt;video, you can set the new script object&amp;#39;s video_id in the controller,&lt;br&gt;and add a hidden field to hold it (for submission to create).&lt;p&gt;&amp;gt; &amp;#160; &amp;#160;@script.video = Video.where(:video_id)&lt;p&gt;That where-clause isn&amp;#39;t going to work.  It&amp;#39;s just saying &amp;quot;where&lt;br&gt;there&amp;#39;s a valid video_id&amp;quot;.  Maybe you mean where :video_id =&amp;gt; &lt;a href="http://video.id"&gt;video.id&lt;/a&gt;&lt;br&gt;(if there is a variable called video), or maybe video_id.&lt;p&gt;Anyway, more direct would be simply &amp;quot;@script.video_id = video_id&amp;quot;.  No&lt;br&gt;searching needed.  Assuming of course that you already have the&lt;br&gt;video_id.&lt;p&gt;BTW, do you know the definition of &amp;quot;Where Clause&amp;quot;?  It&amp;#39;s a fat guy who&lt;br&gt;dresses up in a red suit and gives out presents, when the moon is&lt;br&gt;full.  ;-)&lt;p&gt;-Dave&lt;p&gt;-- &lt;br&gt;Dave Aronson: &amp;#160;Available Cleared Ruby on Rails Freelancer&lt;br&gt;(NoVa/DC/Remote) -- see &lt;a href="http://www.DaveAronson.com"&gt;www.DaveAronson.com&lt;/a&gt;, and blogs at&lt;br&gt;&lt;a href="http://www.Codosaur.us"&gt;www.Codosaur.us&lt;/a&gt;, &lt;a href="http://www.Dare2XL.com"&gt;www.Dare2XL.com&lt;/a&gt;, &lt;a href="http://www.RecruitingRants.com"&gt;www.RecruitingRants.com&lt;/a&gt;&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-76716934075565327?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/76716934075565327/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-hasmany-association-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/76716934075565327'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/76716934075565327'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-hasmany-association-and.html' title='Re: [Rails] has_many association and parent_id'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-2088673910123255944</id><published>2012-01-29T14:32:00.000-08:00</published><updated>2012-01-29T14:33:37.218-08:00</updated><title type='text'>Re: [Rails] changing migration</title><content type='html'>On Sat, Jan 28, 2012 at 22:14, Soichi Ishida &amp;lt;&lt;a href="mailto:lists@ruby-forum.com"&gt;lists@ruby-forum.com&lt;/a&gt;&amp;gt; wrote:&lt;p&gt;&amp;gt; Suppose I have implemented&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; $ rails generate scaffold script video:references text:string&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; it generated&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; 20120128103756_create_scripts.rb&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; But I want to change this model, so instead of redoing it like &amp;quot;rails&lt;br&gt;&amp;gt; destroy .... -&amp;gt; rails generate scaffold...&amp;quot;, all I need to do is to edit&lt;br&gt;&amp;gt; the migration file above?&lt;p&gt;Depends.  If you haven&amp;#39;t yet run rake db:migrate, you can just edit&lt;br&gt;the migration, but you need to know what you&amp;#39;re doing if it&amp;#39;s complex.&lt;br&gt; If you&amp;#39;ve already migrated, and you&amp;#39;ve used any new columns or tables&lt;br&gt;you&amp;#39;ve added, then you must create another migration.  If you&amp;#39;ve&lt;br&gt;migrated but not used the new columns or tables, and it&amp;#39;s a migration&lt;br&gt;that CAN be rolled back (not all can), you *can* roll it back (rake&lt;br&gt;db:rollback), fix it, and re-migrate... but you must be *very* certain&lt;br&gt;that your rollback won&amp;#39;t lose you any data.&lt;p&gt;-Dave&lt;p&gt;-- &lt;br&gt;Dave Aronson: &amp;#160;Available Cleared Ruby on Rails Freelancer&lt;br&gt;(NoVa/DC/Remote) -- see &lt;a href="http://www.DaveAronson.com"&gt;www.DaveAronson.com&lt;/a&gt;, and blogs at&lt;br&gt;&lt;a href="http://www.Codosaur.us"&gt;www.Codosaur.us&lt;/a&gt;, &lt;a href="http://www.Dare2XL.com"&gt;www.Dare2XL.com&lt;/a&gt;, &lt;a href="http://www.RecruitingRants.com"&gt;www.RecruitingRants.com&lt;/a&gt;&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-2088673910123255944?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/2088673910123255944/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-changing-migration_29.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/2088673910123255944'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/2088673910123255944'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-changing-migration_29.html' title='Re: [Rails] changing migration'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-9203665751469929430</id><published>2012-01-29T14:26:00.000-08:00</published><updated>2012-01-30T03:06:17.319-08:00</updated><title type='text'>[Rails] Looking for Ruby on Rails Developers - Broomfield, CO</title><content type='html'>Our client brings 30 years of experience in the energy business, more&lt;br&gt;than 15 patents, and over five million devices deployed throughout&lt;br&gt;North America. They have earned widespread recognition and the trust&lt;br&gt;of utilities, regulators, and consumers as a pivotal energy resource.&lt;br&gt;Our client is the undisputed leader in Residential Demand Response and&lt;br&gt;is working hard this year to take that title in the Commercial and&lt;br&gt;Industrial space. They have over 3500 megawatts of power under&lt;br&gt;management and have grown their revenues 38% annually over the last 5&lt;br&gt;years. They take the risk out of implementing complex energy&lt;br&gt;management programs by leveraging their deep understanding of customer&lt;br&gt;challenges and requirements.&lt;p&gt;Our client brings unparalleled industry knowledge and experience to&lt;br&gt;offer the most reliable, easy-to-use, and cost-effective intelligent&lt;br&gt;energy management solutions. They deliver the insight and control that&lt;br&gt;enable energy providers and consumers to optimize their power usage&lt;br&gt;and meet peak demand through the industry&amp;#39;s only proven, comprehensive&lt;br&gt;set of technology, services, and information management solutions.&lt;p&gt;Our client builds software that allows utilities to curtail load on&lt;br&gt;the electrical grid so that they can meet demand without building more&lt;br&gt;power plants. So this puts them squarely in the Smart Grid, Green&lt;br&gt;Energy space. If the idea of writing software that controls devices in&lt;br&gt;the real world instead of simply updating another social network page&lt;br&gt;excites you, then this may be the position for you.&lt;p&gt;•	Tired of working for social media startups that have no revenue&lt;br&gt;plan?&lt;p&gt;•	Want to work for a stable company with a proven business model,&lt;br&gt;without losing the feel of a small, agile team?&lt;p&gt;•	Want to write software that contributes to solving our energy&lt;br&gt;problems?&lt;p&gt;•	Do you want to help make the smart grid actually smart?&lt;p&gt;Our valued client is looking for several Rails Developers. The Rails&lt;br&gt;Developers should be comfortable working across all tiers of a web&lt;br&gt;app, heavy Javascript (jQuery based) on the front all the way to MySQL&lt;br&gt;in the database layer. Ruby is the primary language, but there is also&lt;br&gt;a reasonable amount of iOS work and the beginnings of Erlang. Neither&lt;br&gt;of those skills are required for these positions, but rather a&lt;br&gt;differentiator. Come join one of the most ambitious and challenging&lt;br&gt;Rails projects in existence.&lt;p&gt;Responsibilities:&lt;p&gt;•	Work across all tiers of a web app, heavy Javascript (iQuery based)&lt;br&gt;•	Work with Ruby language&lt;br&gt;•	iOS work, and the beginnings of an Erlang effort&lt;p&gt;Requirements:&lt;p&gt;•	Bachelor&amp;#39;s degree preferred or equivalent experience&lt;br&gt;•	Rails experience&lt;br&gt;•	Experience developing across all tiers of a web app&lt;br&gt;•	Experience with git&lt;br&gt;•	Somewhat obsessed with TDD or BDD&lt;br&gt;•	Predisposed to pair programming&lt;br&gt;•	Spurred to action when the build breaks&lt;br&gt;•	Self-motivated to refactor and make improvements&lt;br&gt;If interested, please contact:  Maureen Mone&amp;#39;- 303-474-0518;&lt;br&gt;&lt;a href="mailto:maureen@gemresourcing.com"&gt;maureen@gemresourcing.com&lt;/a&gt;&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-9203665751469929430?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/9203665751469929430/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-looking-for-ruby-on-rails_29.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/9203665751469929430'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/9203665751469929430'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-looking-for-ruby-on-rails_29.html' title='[Rails] Looking for Ruby on Rails Developers - Broomfield, CO'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-1479647912813971832</id><published>2012-01-29T11:11:00.000-08:00</published><updated>2012-01-30T03:06:09.519-08:00</updated><title type='text'>[Rails] Custom form builder</title><content type='html'>Hi,&lt;br&gt;&lt;br&gt;I am trying to create a custom form builder but got the following error: wrong argument type Class (expected Module)&lt;br&gt;&lt;br&gt;To create a form builder I have to subclass ActionView::Helpers::FormBuilder. So, I guess, it must be a class and not a module or maybe a class wrapped inside a module....&lt;br&gt;  &lt;br&gt;Here is the idea:&lt;br&gt;&lt;br&gt;The helper (/app/helpers/custom_form_helper.rb):&lt;br&gt;&lt;br&gt;class CustomFormHelper &amp;lt; ActionView::Helpers::FormBuilder&lt;br&gt;&lt;br&gt;    def datalist_for(method, choices, options = {})&lt;br&gt;     ...     # I&amp;#39;d like to render a partial here with :locals =&amp;gt; {:list =&amp;gt; choices, :name =&amp;gt; @object_name + &amp;quot;[_#{method}]&amp;quot;}&lt;br&gt;      end&lt;br&gt;end&lt;br&gt;&lt;br&gt;The partial (app/view/shared):&lt;br&gt;&lt;br&gt; &amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;lt;%= name %&amp;gt; list=&amp;quot;list&amp;quot;&amp;gt;&lt;br&gt;  &amp;lt;datalist id=&amp;quot;list&amp;quot;&amp;gt;&lt;br&gt;    &amp;lt;% choices.each do |elem| %&amp;gt;&lt;br&gt;          &amp;lt;option value=&amp;lt;%= elem %&amp;gt; &amp;gt;&lt;br&gt;    &amp;lt;% end %&amp;gt;&lt;br&gt;  &amp;lt;/datalist&amp;gt;&lt;br&gt;&lt;br&gt;The view:&lt;br&gt;&lt;br&gt;&amp;lt;%= form_for(:moove, :builder =&amp;gt; &amp;quot;CustomFormHelper&amp;quot; :url =&amp;gt; {:action =&amp;gt; &amp;#39;create&amp;#39;}) do |f| %&amp;gt;&lt;br&gt;      &amp;lt;table&amp;gt;&lt;br&gt;        &amp;lt;tr&amp;gt;&lt;br&gt;            &amp;lt;td&amp;gt;&amp;lt;%= f.datalist_for(:sport, @sports)%&amp;gt;&amp;lt;/td&amp;gt;&lt;br&gt;        &amp;lt;/tr&amp;gt;&lt;br&gt;    &amp;lt;/table&amp;gt;&lt;br&gt;&amp;lt;% end %&amp;gt;&lt;br&gt;&lt;br&gt;Thank you in advance for your help,&lt;br&gt;  &lt;br&gt;Alexandre &lt;br&gt;  &lt;p&gt;&lt;/p&gt;  -- &lt;br /&gt; You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.&lt;br /&gt; To post to this group, send email to rubyonrails-talk@googlegroups.com.&lt;br /&gt; To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.&lt;br /&gt;  For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.&lt;br /&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-1479647912813971832?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/1479647912813971832/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-custom-form-builder.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/1479647912813971832'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/1479647912813971832'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-custom-form-builder.html' title='[Rails] Custom form builder'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-1491663787634671417</id><published>2012-01-29T11:02:00.000-08:00</published><updated>2012-01-29T11:03:13.849-08:00</updated><title type='text'>Re: [Rails] AssetNotPrecompiledError for missing assets - really?</title><content type='html'>&lt;div class="gmail_quote"&gt;On Sun, Jan 29, 2012 at 7:30 PM, Pascal Friederich &lt;span dir="ltr"&gt;&amp;lt;&lt;a href="mailto:paukul@googlemail.com"&gt;paukul@googlemail.com&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"&gt; I migrated one of my projects to from Rails 3.0 to 3.2.1 which means&lt;br&gt; I&amp;#39;m using the asset pipeline for the first time.&lt;br&gt; As much as I like the ease of compressing and minifying my assets the&lt;br&gt; more I&amp;#39;m annoyed about its behavior to raise an&lt;br&gt; AssetNotPrecompiledError as soon as, well, there&amp;#39;s an asset that&amp;#39;s not&lt;br&gt; precompiled.&lt;br&gt; &lt;br&gt; Can somebody explain me the reason why this is considered to be a good&lt;br&gt; idea?&lt;br&gt; For something as trivial as a missing image file the app fails&lt;br&gt; completely instead of just falling back to &amp;quot;old style&amp;quot; image_tag&lt;br&gt; behavior (images/foo.png vs assets/foo.png) and maybe produce an error&lt;br&gt; log line. Even a missing js or css file&lt;br&gt; isn&amp;#39;t necessarily a showstopper. At least the app would still be&lt;br&gt; usable for a user until the &amp;quot;problem&amp;quot; gets fixed.&lt;br&gt; &lt;br&gt; I just cant see the benefit of this new behavior.&lt;br&gt; &lt;br&gt; What am I missing out here?&lt;br&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Maybe this option can help you:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;   # Don&amp;#39;t fallback to assets pipeline if a precompiled asset is missed&lt;/div&gt;&lt;div&gt;  config.assets.compile = false&lt;/div&gt; &lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;from &lt;a href="http://guides.rubyonrails.org/asset_pipeline.html"&gt;http://guides.rubyonrails.org/asset_pipeline.html&lt;/a&gt; .&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;It&amp;#39;s off (false) by default, but if you wanted you could turn it on.&lt;/div&gt; &lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;In that case, you probably need to make this group&lt;/div&gt;&lt;div&gt;in your Gemfile&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;# Gems used only for assets and not required&lt;/div&gt;&lt;div&gt;# in production environments by default.&lt;/div&gt; &lt;div&gt;group :assets do&lt;/div&gt;&lt;div&gt;  gem &amp;#39;sass-rails&amp;#39;&lt;/div&gt;&lt;div&gt;  gem &amp;#39;coffee-rails&amp;#39;&lt;/div&gt;&lt;div&gt;  gem &amp;#39;uglifier&amp;#39;&lt;/div&gt;&lt;div&gt;  gem &amp;#39;bootstrap-sass&amp;#39;&lt;/div&gt;&lt;div&gt;end&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;also available in production (which would mean to put it&lt;/div&gt; &lt;div&gt;outside of the :assets group).&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;HTH,&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Peter&lt;/div&gt;&lt;/div&gt;  &lt;p&gt;&lt;/p&gt;  -- &lt;br /&gt; You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.&lt;br /&gt; To post to this group, send email to rubyonrails-talk@googlegroups.com.&lt;br /&gt; To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.&lt;br /&gt;  For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.&lt;br /&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-1491663787634671417?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/1491663787634671417/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-assetnotprecompilederror-for.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/1491663787634671417'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/1491663787634671417'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-assetnotprecompilederror-for.html' title='Re: [Rails] AssetNotPrecompiledError for missing assets - really?'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-2369864425842720798</id><published>2012-01-29T10:30:00.001-08:00</published><updated>2012-01-29T10:30:28.900-08:00</updated><title type='text'>[Rails] AssetNotPrecompiledError for missing assets - really?</title><content type='html'>I migrated one of my projects to from Rails 3.0 to 3.2.1 which means&lt;br&gt;I&amp;#39;m using the asset pipeline for the first time.&lt;br&gt;As much as I like the ease of compressing and minifying my assets the&lt;br&gt;more I&amp;#39;m annoyed about its behavior to raise an&lt;br&gt;AssetNotPrecompiledError as soon as, well, there&amp;#39;s an asset that&amp;#39;s not&lt;br&gt;precompiled.&lt;p&gt;Can somebody explain me the reason why this is considered to be a good&lt;br&gt;idea?&lt;br&gt;For something as trivial as a missing image file the app fails&lt;br&gt;completely instead of just falling back to &amp;quot;old style&amp;quot; image_tag&lt;br&gt;behavior (images/foo.png vs assets/foo.png) and maybe produce an error&lt;br&gt;log line. Even a missing js or css file&lt;br&gt;isn&amp;#39;t necessarily a showstopper. At least the app would still be&lt;br&gt;usable for a user until the &amp;quot;problem&amp;quot; gets fixed.&lt;p&gt;I just cant see the benefit of this new behavior.&lt;p&gt;What am I missing out here?&lt;p&gt;cheers&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-2369864425842720798?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/2369864425842720798/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-assetnotprecompilederror-for.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/2369864425842720798'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/2369864425842720798'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-assetnotprecompilederror-for.html' title='[Rails] AssetNotPrecompiledError for missing assets - really?'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-3931446496355264808</id><published>2012-01-29T09:40:00.000-08:00</published><updated>2012-01-29T09:41:17.166-08:00</updated><title type='text'>Re: [Rails] ActionMailer and Ruby SMTP causing a segmentation fault!</title><content type='html'>First, the 1.9.1 is &amp;quot;normal&amp;quot;. That&amp;#39;s always the folder it uses.&lt;p&gt;Second, are you having this problem?&lt;br&gt;&lt;a href="http://www.christopherirish.com/2011/09/02/ruby-1-9-2-segmentation-fault-and-openssl/"&gt;http://www.christopherirish.com/2011/09/02/ruby-1-9-2-segmentation-fault-and-openssl/&lt;/a&gt;&lt;p&gt;On Sat, Jan 28, 2012 at 1:14 PM, Don &amp;lt;&lt;a href="mailto:don.leatham@gmail.com"&gt;don.leatham@gmail.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; tries to send out the confirmation-link email I get a segmentation-fault&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; error in Ruby&amp;#39;s SMTP library:&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; ... lib/ruby/1.9.1/net/smtp.rb:583: [BUG] Segmentation fault&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; If you are using ruby 1.9.1 then upgrade to 1.9.2 (or 1.9.3 though&lt;br&gt;&amp;gt;&amp;gt; maybe it is still a bit new) or go back to 1.8.7&lt;br&gt;&amp;gt;&amp;gt;1.9.1 did not play well with Rails&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; OK I&amp;#39;m confused. &amp;#160;The segmentation fault indicates it is happening in the&lt;br&gt;&amp;gt; ruby 1.9.1 version of the SMTP library (see quoted text.) &amp;#160;However, when I&lt;br&gt;&amp;gt; go to my project and enter the Rails console, I get this:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; &amp;#160; irb(main):001:0&amp;gt; RUBY_VERSION&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; &amp;#160; =&amp;gt; &amp;quot;1.9.3&amp;quot;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; And when I go the project directory I get this:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; &amp;#160;&amp;#160;story_project # &amp;#160; ruby --version&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; &amp;#160; ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin11.2.0]&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; The full path on the segmentation fault is:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; &amp;#160;&amp;#160;/Users/don/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/smtp.rb:583:&lt;br&gt;&amp;gt; [BUG] Segmentation fault&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; What is the deal here? &amp;#160;Why is Ruby 1.9.3 running code from 1.9.1? &amp;#160;Is this&lt;br&gt;&amp;gt; common? &amp;#160;Did RVM mess this up some how?&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Perplexing!??&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-3931446496355264808?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/3931446496355264808/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-actionmailer-and-ruby-smtp_29.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/3931446496355264808'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/3931446496355264808'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-actionmailer-and-ruby-smtp_29.html' title='Re: [Rails] ActionMailer and Ruby SMTP causing a segmentation fault!'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-2450712493798383954</id><published>2012-01-29T08:38:00.000-08:00</published><updated>2012-01-30T03:06:33.729-08:00</updated><title type='text'>[Rails] Starting Full Server Stack During Integration Tests</title><content type='html'>Hello all,&lt;p&gt;I want to use Selenium (not capybara, I like the Selenium syntax&lt;br&gt;better) for some of my integration tests, and Selenium needs a full-&lt;br&gt;stack HTTP server to test against. How can I start the full-stack&lt;br&gt;server during integration tests so I have a url to give to Selenium?&lt;p&gt;Also, eventually I will want to run the same tests against a staging&lt;br&gt;server. What&amp;#39;s the best way to change a single parameter (the url) but&lt;br&gt;keep everything else about the tests constant?&lt;p&gt;Cheers,&lt;br&gt;Shea Levy&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-2450712493798383954?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/2450712493798383954/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-starting-full-server-stack-during.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/2450712493798383954'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/2450712493798383954'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-starting-full-server-stack-during.html' title='[Rails] Starting Full Server Stack During Integration Tests'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-6323884589002567070</id><published>2012-01-29T08:33:00.001-08:00</published><updated>2012-01-29T08:33:22.139-08:00</updated><title type='text'>Alterações na Política de Privacidade e nos Termos de Serviço do Google</title><content type='html'>&lt;font face="Arial,Helvetica,sans-serif" size="2"&gt; &lt;table width="700" border="0" bordercolor="none"&gt; &lt;tbody&gt;  &lt;tr&gt;&lt;td colspan="4" valign="top"&gt;&lt;/td&gt; &lt;td valign="top"&gt; &lt;p style="line-height:14px;"&gt;&lt;font size="1" color="#777"&gt;Esta mensagens não está sendo exibida corretamente?&lt;br&gt; &lt;a href="http://www.google.com/policies"&gt;Abra-a em seu navegador.&lt;/a&gt;&lt;/font&gt;&lt;/p&gt; &lt;/td&gt;&lt;/tr&gt;   &lt;tr&gt;&lt;td colspan="5" valign="top"&gt; &lt;font color="#222"&gt; &lt;p style="line-height:18px;"&gt;Caro usuário do Google,&lt;/p&gt;  &lt;p style="line-height:18px;"&gt;Estamos substituindo mais de 60 políticas de privacidade diferentes do Google por uma política mais concisa e fácil de ler. A nova política abrange vários produtos e recursos, refletindo nosso objetivo de criar uma experiência extremamente simples e intuitiva em todos os produtos do Google.&lt;/p&gt;  &lt;p style="line-height:18px;"&gt;Isto é importante. Assim, dedique alguns minutos para ler as versões atualizadas da nossa Política de Privacidade e dos nossos Termos de Serviço em &lt;a href="http://www.google.com/policies"&gt;http://www.google.com/policies&lt;/a&gt;. Estas mudanças entrarão em vigor no dia 1º de março de 2012. &lt;/p&gt;&lt;/font&gt; &lt;br&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td colspan="5" height="40"&gt; &lt;font size="4" color="#222"&gt;Uma política, uma experiência no Google&lt;/font&gt; &lt;hr noshade="noshade" size="1"&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td width="200"&gt;&lt;img src="https://www.gstatic.com/policies/email/images/intl/en/products.png" width="200" height="113" alt="Fácil de trabalhar em vários produtos" vspace="16" border="1" style="border:1px solid #ccc;"&gt;&lt;/td&gt; &lt;td width="40"&gt;&lt;/td&gt; &lt;td width="200"&gt;&lt;img src="https://www.gstatic.com/policies/email/images/intl/pt-BR/you.png" width="200" height="113" alt="Sob medida para você" vspace="16" border="1" style="border:1px solid #ccc;"&gt;&lt;/td&gt; &lt;td width="40"&gt;&lt;/td&gt; &lt;td width="200"&gt;&lt;img src="https://www.gstatic.com/policies/email/images/intl/pt-BR/share.png" width="200" height="113" alt="Compartilhar e colaborar é fácil" vspace="16" border="1" style="border:1px solid #ccc;"&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td valign="top"&gt;&lt;font size="3" color="#222"&gt;Fácil de trabalhar em vários produtos&lt;/font&gt; &lt;p style="line-height:18px;"&gt;Nossa nova política reflete nosso desejo de criar uma experiência de produto simples, que ofereça o que você precisar, quando você quiser. Seja ao ler um e-mail que o faça lembrar de marcar um encontro familiar ou encontrar um vídeo favorito que você queira compartilhar, queremos que você possa utilizar com facilidade o Gmail, o Google Agenda, a ferramenta de pesquisa, o YouTube ou o que mais você quiser.&lt;/p&gt;&lt;/td&gt; &lt;td width="40"&gt;&lt;/td&gt; &lt;td valign="top"&gt; &lt;font size="3" color="#222"&gt;Sob medida para você&lt;/font&gt; &lt;p style="line-height:18px;"&gt;Se você fizer login no Google, podemos sugerir consultas de pesquisa ou adequar os resultados da pesquisa de acordo com os interesses que você expressou no Google+, Gmail e YouTube. Assim, poderemos compreender melhor qual versão do Pink ou Jaguar você está pesquisando e oferecer esses resultados com mais rapidez.&lt;/p&gt;&lt;/td&gt; &lt;td width="40"&gt;&lt;/td&gt; &lt;td valign="top"&gt; &lt;font size="3" color="#222"&gt;Compartilhar e colaborar é fácil&lt;/font&gt; &lt;p style="line-height:18px;"&gt;Ao postar ou criar um documento on-line, é provável que você queira que outras pessoas o vejam e contribuam. Ao lembrar as informações de contato das pessoas com quem você deseja compartilhar, facilitamos seu compartilhamento em qualquer produto ou serviço do Google com o mínimo de cliques e erros.&lt;/p&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td colspan="5" height="40"&gt; &lt;hr noshade="noshade" size="1"&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td valign="top"&gt;  &lt;font size="3" color="#222"&gt;A proteção de sua privacidade não mudou.&lt;/font&gt; &lt;p style="line-height:18px;"&gt;Nosso objetivo é fornecer a você o máximo de transparência e de escolha possível, por meio de produtos como Google Dashboard e Gerenciador de preferências de anúncios entre outras ferramentas. Nossos princípios de privacidade  permanecem os mesmos. Ainda, nunca venderemos nem compartilharemos suas informações profissionais sem sua permissão (a não ser em raras circunstâncias, como solicitações legais legítimas). &lt;/p&gt;&lt;/td&gt;  &lt;td width="40"&gt;&lt;/td&gt; &lt;td valign="top"&gt;  &lt;font size="3" color="#222"&gt;Alguma dúvida?&lt;br&gt; Temos a resposta.&lt;/font&gt; &lt;p style="line-height:18px;"&gt;Visite nossas Perguntas frequentes em &lt;a href="http://www.google.com/policies/faq"&gt;http://www.google.com/policies/faq&lt;/a&gt; para saber mais sobre estas mudanças. (Imaginamos que nossos usuários podem ter uma pergunta ou vinte e duas.)&lt;/p&gt;&lt;/td&gt;  &lt;td width="40"&gt;&lt;/td&gt; &lt;td valign="top"&gt;  &lt;p&gt; &lt;/p&gt;  &lt;/tr&gt; &lt;tr&gt; &lt;td colspan="5" height="40"&gt; &lt;hr noshade="noshade" size="1"&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt;&lt;td colspan="5" valign="top"&gt; &lt;font size="3" color="#222"&gt;Aviso de alteração&lt;/font&gt; &lt;p style="line-height:18px;"&gt;A nova Política de Privacidade e os novos Termos de Serviço do entrarão em vigor em 1º de março de 2012. Se optar por continuar usando o Google assim que a alteração ocorrer, você fará isso de acordo com a nova Política de Privacidade e os Termos de Serviço.&lt;/p&gt; &lt;p style="line-height:18px;"&gt;&lt;font size="1"&gt;Não responda a este e-mail. Respostas enviadas para este endereço não serão respondidas. Nunca insira sua senha após abrir um link que aponte para um site não confiável. Em vez disso, acesse diretamente o site, como mail.google.com ou www.google.com/accounts. O Google nunca mandará um e-mail pedindo sua senha ou outra informação confidencial.&lt;/font&gt;&lt;/p&gt; &lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;/font&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-6323884589002567070?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/6323884589002567070/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/alteracoes-na-politica-de-privacidade-e.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/6323884589002567070'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/6323884589002567070'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/alteracoes-na-politica-de-privacidade-e.html' title='Alterações na Política de Privacidade e nos Termos de Serviço do Google'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-7432806186729808521</id><published>2012-01-29T06:31:00.000-08:00</published><updated>2012-01-29T06:32:15.611-08:00</updated><title type='text'>[Rails] seg fault</title><content type='html'>-----BEGIN PGP SIGNED MESSAGE-----&lt;br&gt;Hash: SHA1&lt;p&gt;Hi, all.&lt;p&gt;I&amp;#39;m trying to push another app to Heroku &amp;amp; `bundle install` is telling&lt;br&gt;me there&amp;#39;s a bug:&lt;p&gt;`/Users/dobbin/.rvm/gems/ruby-1.9.3-p0/gems/json-1.6.5/ext/json/ext/json/ext/parser.bundle:&lt;br&gt;[BUG] Segmentation fault&lt;br&gt;ruby 1.8.7 (2011-12-28 patchlevel 357) [i686-darwin10]`&lt;p&gt;That is the tail of the error message; I&amp;#39;ve a full crash report (I&amp;#39;m&lt;br&gt;using OS X 10.6.8 in this particular instance) &amp;amp; I&amp;#39;ve tried to register&lt;br&gt;at the relevant Ruby site for bugs but their mail bot must be having a&lt;br&gt;day off.&lt;p&gt;I&amp;#39;ve drawn a blank on Google also. Has anybody else seen this? As you&lt;br&gt;can see, I&amp;#39;m using the latest stable rvm, Ruby 1.9.3-p0 &amp;amp; rails 3.2.1.&lt;p&gt;Any help appreciated.&lt;p&gt;Cheers,&lt;p&gt;  Phil...&lt;p&gt;- -- &lt;br&gt;But masters, remember that I am an ass.&lt;br&gt;Though it be not written down,&lt;br&gt;yet forget not that I am an ass.&lt;p&gt;	Wm. Shakespeare - Much Ado About Nothing&lt;br&gt;-----BEGIN PGP SIGNATURE-----&lt;br&gt;Version: GnuPG/MacGPG2 v2.0.17 (Darwin)&lt;br&gt;Comment: &amp;#167;auto-key-locate cert pka ldap hkp://&lt;a href="http://keys.gnupg.net"&gt;keys.gnupg.net&lt;/a&gt;&lt;br&gt;Comment: GPGTools - &lt;a href="http://gpgtools.org"&gt;http://gpgtools.org&lt;/a&gt;&lt;br&gt;Comment: Using GnuPG with Mozilla - &lt;a href="http://enigmail.mozdev.org/"&gt;http://enigmail.mozdev.org/&lt;/a&gt;&lt;p&gt;iQEcBAEBAgAGBQJPJVhUAAoJEKpMeDHWT5AD7ykIAKPen4vTXNyJBQvpLKxjD4tI&lt;br&gt;3JsPnEn8FtaDNWpWRouOfElv3ee4mDYSxd+uyBFeOxQeKMKYdvHe0t/f7olo9ozH&lt;br&gt;rk5KQNXq/6bqzQkZ29UuMBIZ6lJDz6572bIViXDwPMRcW6Ukrv1OfrHqmyjM9Vzg&lt;br&gt;qTckzCkJIdw0XZh4U/B6OsW4apjNiaLYPdOemkEpcq7Hp+P+adcMJY8j0eNitiMj&lt;br&gt;hTZCIi9+Kqtf5bVPE0Go4mMr2CAzb6zn5YEVUek0Yosgnv0vcRjLdnPWrYJ5Kp8r&lt;br&gt;j7qi4ulYBHQLYnJxk1tF/ucJLr0Tds1e7k+EZAFx39QhvQ3B/KZdd2W4hALT+4Q=&lt;br&gt;=rGXu&lt;br&gt;-----END PGP SIGNATURE-----&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-7432806186729808521?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/7432806186729808521/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-seg-fault.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/7432806186729808521'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/7432806186729808521'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-seg-fault.html' title='[Rails] seg fault'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-8059973255892994667</id><published>2012-01-29T04:53:00.000-08:00</published><updated>2012-01-29T04:54:52.164-08:00</updated><title type='text'>[Rails] ActiveAdmin: Nested attributes not working for STI</title><content type='html'>&lt;div class="gmail_quote"&gt;&lt;font face="tahoma,sans-serif"&gt;HI All,&lt;br&gt;&lt;br&gt;&lt;/font&gt;I am having Model &amp;quot;Customer&amp;quot; using STI for sender and receiver, and i am  unable to save the both sender and receiver by nested attribute. Below  are my model and active admin resource codes, correct me if i am wrong  nested attribute on concept.&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;&lt;span&gt;CUSTOMER MODEL&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span&gt;&lt;br&gt;&lt;br&gt;&lt;/span&gt;&lt;span&gt;class&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;Customer&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;ActiveRecord&lt;/span&gt;&lt;span&gt;::&lt;/span&gt;&lt;span&gt;Base&lt;/span&gt;&lt;span&gt;&lt;br&gt;   belongs_to &lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span&gt;sender&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span&gt;class_name &lt;/span&gt;&lt;span&gt;=&amp;gt;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;Customer&amp;quot;&lt;/span&gt;&lt;span&gt;&lt;br&gt; has_many &lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span&gt;receivers&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span&gt;class_name &lt;/span&gt;&lt;span&gt;=&amp;gt;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;Customer&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span&gt;foreign_key &lt;/span&gt;&lt;span&gt;=&amp;gt;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;#39;sender_id&amp;#39;&lt;/span&gt;&lt;span&gt;&lt;br&gt;   has_many &lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span&gt;packages &lt;br&gt;&lt;br&gt;accepts_nested_attributes_for &lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span&gt;packages&lt;br&gt;accepts_nested_attributes_for &lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span&gt;receivers&lt;br&gt; &lt;/span&gt;&lt;span&gt;end&lt;/span&gt;&lt;span&gt;&lt;br&gt;&lt;br&gt;CUSTOMER ADMIN INTERFACE&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span&gt;&lt;br&gt;&lt;br&gt;&lt;/span&gt;&lt;span&gt;ActiveAdmin&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;register &lt;/span&gt;&lt;span&gt;Customer&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;do&lt;/span&gt;&lt;span&gt;&lt;br&gt;   form &lt;/span&gt;&lt;span&gt;do&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;|&lt;/span&gt;&lt;span&gt;f&lt;/span&gt;&lt;span&gt;|&lt;/span&gt;&lt;span&gt;&lt;br&gt; f&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;inputs &lt;/span&gt;&lt;span&gt;&amp;quot;Sender Details&amp;quot;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;do&lt;/span&gt;&lt;span&gt;&lt;br&gt;      f&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;input &lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span&gt;name&lt;br&gt; f&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;input &lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span&gt;email&lt;br&gt;  f&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;input &lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span&gt;street&lt;br&gt; f&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;input &lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span&gt;city&lt;br&gt;  f&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;input &lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span&gt;state&lt;br&gt; f&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;input &lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span&gt;pin&lt;br&gt;   &lt;/span&gt;&lt;span&gt;end&lt;/span&gt;&lt;span&gt;&lt;br&gt;&lt;br&gt;  f&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;inputs  &lt;/span&gt;&lt;span&gt;do&lt;/span&gt;&lt;span&gt;&lt;br&gt;f&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;has_many &lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span&gt;receivers &lt;/span&gt;&lt;span&gt;do&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;|&lt;/span&gt;&lt;span&gt;p&lt;/span&gt;&lt;span&gt;|&lt;/span&gt;&lt;span&gt;&lt;br&gt;    f&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;input &lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span&gt;name&lt;br&gt; f&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;input &lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span&gt;email&lt;br&gt;  f&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;input &lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span&gt;street&lt;br&gt; f&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;input &lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span&gt;city&lt;br&gt;  f&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;input &lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span&gt;state&lt;br&gt; f&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;input &lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span&gt;pin&lt;br&gt;   &lt;/span&gt;&lt;span&gt;end&lt;/span&gt;&lt;span&gt;&lt;br&gt;&lt;/span&gt;&lt;span&gt;end&lt;/span&gt;&lt;span&gt;&lt;br&gt;f&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;inputs &lt;/span&gt;&lt;span&gt;do&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;#packages are saving correctly&lt;/span&gt;&lt;span&gt;&lt;br&gt;  f&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;has_many &lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span&gt;packages &lt;/span&gt;&lt;span&gt;do&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;|&lt;/span&gt;&lt;span&gt;p&lt;/span&gt;&lt;span&gt;|&lt;/span&gt;&lt;span&gt; &lt;br&gt;   p&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;input &lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span&gt;weight&lt;br&gt;  p&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;input &lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span&gt;amount&lt;br&gt;   p&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;input &lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span&gt;received_date&lt;br&gt;  p&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;input &lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span&gt;amount&lt;br&gt; &lt;/span&gt;&lt;span&gt;end&lt;/span&gt;&lt;span&gt;&lt;br&gt;  &lt;/span&gt;&lt;span&gt;end&lt;/span&gt;&lt;span&gt;&lt;br&gt;  f&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;buttons&lt;br&gt; &lt;/span&gt;&lt;span&gt;end&lt;/span&gt;&lt;span&gt;&lt;br&gt; &lt;/span&gt;&lt;span&gt;end&lt;br&gt;&lt;br&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br clear="all"&gt;&lt;font face="tahoma, sans-serif"&gt;regards,&lt;br&gt;Loganathan&lt;/font&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt; &lt;/div&gt;&lt;br&gt;  &lt;p&gt;&lt;/p&gt;  -- &lt;br /&gt; You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.&lt;br /&gt; To post to this group, send email to rubyonrails-talk@googlegroups.com.&lt;br /&gt; To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.&lt;br /&gt;  For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.&lt;br /&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-8059973255892994667?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/8059973255892994667/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-activeadmin-nested-attributes-not.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/8059973255892994667'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/8059973255892994667'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-activeadmin-nested-attributes-not.html' title='[Rails] ActiveAdmin: Nested attributes not working for STI'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-8779553462424284501</id><published>2012-01-29T04:45:00.000-08:00</published><updated>2012-01-29T04:46:16.983-08:00</updated><title type='text'>[Rails] Fwd: [chennaiocc] Looking for Ruby on Rails developers - Remote working is also accepted.</title><content type='html'>&lt;br&gt;&lt;br&gt;&lt;div class="gmail_quote"&gt;---------- Forwarded message ----------&lt;br&gt;From: &lt;b class="gmail_sendername"&gt;Karthik Ramesh&lt;/b&gt; &lt;span dir="ltr"&gt;&amp;lt;&lt;a href="mailto:karthikramesh911@gmail.com"&gt;karthikramesh911@gmail.com&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt; Date: Sat, Jan 28, 2012 at 1:29 AM&lt;br&gt;Subject: [chennaiocc] Looking for Ruby on Rails developers - Remote working is also accepted.&lt;br&gt;To: &lt;a href="mailto:chennaiocc@googlegroups.com"&gt;chennaiocc@googlegroups.com&lt;/a&gt;&lt;br&gt;&lt;br&gt; &lt;br&gt;Hi,&lt;br&gt;&lt;br&gt;I am Karthik and I am developing an HTML5 application for creating mockups and a css previewer (something like webputty from FogCreek). I am looking for a few good ruby on rails developers. I am in search for the following skills :&lt;br&gt;  &lt;br&gt;1. Rails 3.1/3.2 with devise, omniauth, experience&lt;br&gt;2. jQuery + HTML5&lt;br&gt;3. Frontend skills are a good to have but not necessary&lt;br&gt;4. Git&lt;br&gt;5. Heroku deployment experience will be a plus.&lt;br&gt;&lt;br&gt;I am willing to pay a monthly salary of upto Rs. 30,000 per month (if you are really good, you can always talk me into paying more). But more importantly, please apply only if you are :&lt;br&gt;  &lt;br&gt;1. Willing to work in a startup&lt;br&gt;2. A code geek and loves writing beautiful and powerful code&lt;br&gt;3. A self driven, responsible coder who likes to be trusted and in turn gets things done for the company.&lt;br&gt;4. More importantly, a StarWars fan.&lt;br&gt;  &lt;br&gt;I would be glad if you can send me a github profile and other pieces of code that you have written previously. If you feel one of your friends could fit in, do share this with them.&lt;br&gt;&lt;br&gt;Thanks&lt;br&gt;&lt;font color="#888888"&gt;Karthik&lt;br&gt;  &lt;/font&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear="all"&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;-- &lt;br&gt;&lt;span style="border-collapse:collapse"&gt;&lt;font face="&amp;#39;comic sans ms&amp;#39;, sans-serif"&gt;&lt;font color="#666666"&gt;&lt;div&gt;&lt;span style="border-collapse:collapse"&gt;&lt;font face="&amp;#39;comic sans ms&amp;#39;, sans-serif"&gt;&lt;font color="#666666"&gt;------------------------------------------------------------------------------------------&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt; Regards&lt;br&gt;sathia&lt;br&gt;&lt;br&gt;&lt;/font&gt;&lt;div&gt;&lt;font color="#666666"&gt;Here I share my experiments with open source.&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;a href="http://www.sathia27.wordpress.com/" style="color:rgb(0,101,204)" target="_blank"&gt;http://www.sathia27.wordpress.com&lt;/a&gt;&lt;/div&gt; &lt;div&gt;&lt;a href="http://www.sathia27.wordpress.com/" style="color:rgb(0,101,204)" target="_blank"&gt;&lt;/a&gt;&lt;a href="http://www.sathia27.wordpress.com/" style="color:rgb(0,101,204)" target="_blank"&gt;http://www.lquery.com&lt;/a&gt;&lt;/div&gt;&lt;/div&gt; &lt;/font&gt;&lt;/span&gt;&lt;br&gt;  &lt;p&gt;&lt;/p&gt;  -- &lt;br /&gt; You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.&lt;br /&gt; To post to this group, send email to rubyonrails-talk@googlegroups.com.&lt;br /&gt; To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.&lt;br /&gt;  For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.&lt;br /&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-8779553462424284501?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/8779553462424284501/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-fwd-chennaiocc-looking-for-ruby.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/8779553462424284501'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/8779553462424284501'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-fwd-chennaiocc-looking-for-ruby.html' title='[Rails] Fwd: [chennaiocc] Looking for Ruby on Rails developers - Remote working is also accepted.'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-1393541583726359103</id><published>2012-01-29T03:28:00.000-08:00</published><updated>2012-01-29T03:29:03.248-08:00</updated><title type='text'>Re: [Rails] mass_assignment_sanitizer and Factories w/ rspec</title><content type='html'>On Sun, Jan 29, 2012 at 10:52 AM, Phoenix Rising &lt;span dir="ltr"&gt;&amp;lt;&lt;a href="mailto:polarisrising@gmail.com"&gt;polarisrising@gmail.com&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;div class="gmail_quote"&gt;&lt;blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"&gt; I&amp;#39;m running into a bit of an issue when it comes to using&lt;br&gt; factory_girl_rails (1.6.0) with 3.2&amp;#39;s mass_assignment_sanitizer&lt;br&gt; = :strict and I&amp;#39;m hoping some one can offer me some guidance to&lt;br&gt; improve my tests.&lt;br&gt; &lt;br&gt; The problem:&lt;br&gt; Say you have a test that looks like this:&lt;br&gt; &lt;br&gt; it &amp;quot;allows you to create an object&amp;quot; do&lt;br&gt;   obj = FactoryGirl.build(:object) # #&amp;lt;Object id: nil, name: &amp;quot;Foo&lt;br&gt; Bar&amp;quot;, created_at: nil, updated_at: nil&amp;gt;&lt;br&gt;   post :create, :object =&amp;gt; obj.attributes&lt;br&gt;   response.should be_redirect&lt;br&gt;   # yadda yadda yadda&lt;br&gt; end&lt;br&gt; &lt;br&gt; The problem I&amp;#39;m running up against is that because&lt;br&gt; FactoryGirl.build(:object) returns a built out object that includes&lt;br&gt; protected attributes such as id, created_at and updated_at in the hash&lt;br&gt; (this is a simplified example, I have other things in the model not&lt;br&gt; listed here that are also whitelisted via attr_accessible), when I&lt;br&gt; post that hash, I receive the following error:&lt;br&gt; &lt;br&gt; ActiveModel::MassAssignmentSecurity::Error:&lt;br&gt;        Can&amp;#39;t mass-assign protected attributes: id, created_at,&lt;br&gt; updated_at&lt;br&gt; &lt;br&gt; The above is a simplified example. The model looks a bit more like&lt;br&gt; this:&lt;br&gt; &lt;br&gt; class Foo &amp;lt; ActiveRecord::Base&lt;br&gt;   belongs_to :bar&lt;br&gt;   # a bunch of other belongs_to&amp;#39;s here&lt;br&gt;   attr_accessible :name, :bar_id, #other belongs_to ids&lt;br&gt; end&lt;br&gt; &lt;br&gt; Factory.define :foo do&lt;br&gt;   name Faker::Name.name&lt;br&gt;   association :bar, :factory =&amp;gt; :bar&lt;br&gt;   # all the other associations&lt;br&gt; end&lt;br&gt; &lt;br&gt; I took a look through factory_girl&amp;#39;s docs and found the following&lt;br&gt; methods for building out models:&lt;br&gt; &lt;br&gt; attributes_for: doesn&amp;#39;t go far enough because I have relations defined&lt;br&gt; on my factory that need to be built and saved so their IDs can be&lt;br&gt; assigned to the object upon its instantiation (or in the hash)&lt;br&gt; &lt;br&gt; build_stubbed: gives me random values for various fields that aren&amp;#39;t&lt;br&gt; valid. Instead of building out the associations and saving them then&lt;br&gt; assigning valid IDs, it just makes random shit up. That doesn&amp;#39;t quite&lt;br&gt; work.&lt;br&gt; &lt;br&gt; create: obviously not the right choice when you&amp;#39;re testing a post&lt;br&gt; action on a RESTful cotroller&lt;br&gt; &lt;br&gt; build: what I&amp;#39;m using now, and then just passing the attributes hash&lt;br&gt; of the object. Does everything I need, except it includes attributes&lt;br&gt; that are protected, thus causing the controller to flip out.&lt;br&gt; &lt;br&gt; Now, I can think of two (three actually) ways around this problem:&lt;br&gt; &lt;br&gt; 1) Go through my really big test base and manually remove any&lt;br&gt; attribute that&amp;#39;s not accessible from the hash before doing a post. Not&lt;br&gt; at all maintainable and not really a realistic option, but would allow&lt;br&gt; the tests to pass.&lt;br&gt; &lt;br&gt; 2) Add a before_filter that sanitizes the parameters hash on create&lt;br&gt; and update actions to strip out any protected attributes by looking at&lt;br&gt; the model and seeing what its accessible attributes are. This seems&lt;br&gt; like unnecessary code bloat, though, and kind of a clunky solution to&lt;br&gt; the problem.&lt;br&gt; &lt;br&gt; 3) [What I really want] I need a way to get FactoryGirl to build out a&lt;br&gt; hash of attributes when it&amp;#39;s first called to NOT include attributes&lt;br&gt; that are protected or aren&amp;#39;t accessible, but WOULD include real object&lt;br&gt; IDs for all the defined associations. That would allow me to just call&lt;br&gt; post :create, :object =&amp;gt; FactoryGirl.some_method(:object) and be done&lt;br&gt; with it.&lt;br&gt; &lt;br&gt; Could anyone offer any insight here as to how I might go about making&lt;br&gt; this work better? Obviously I could delete the setting from test.rb&lt;br&gt; but that kind of defeats the purposes, and I like having extra strict&lt;br&gt; security measures (especially in this particular application).&lt;br&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;In the controllers tests that are auto-generated by rspec-rails, there&lt;/div&gt;&lt;div&gt;is e.g. this kind of code:&lt;/div&gt; &lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;describe PeopleController do&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;  # This should return the minimal set of attributes required to create a valid&lt;/div&gt;&lt;div&gt;  # Contact. As you add validations to Contact, be sure to&lt;/div&gt; &lt;div&gt;  # update the return value of this method accordingly.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;  def valid_attributes&lt;/div&gt;&lt;div&gt;    {}&lt;/div&gt;&lt;div&gt;  end&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;...&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;  describe &amp;quot;POST create&amp;quot; do&lt;/div&gt; &lt;div&gt;    describe &amp;quot;with valid params&amp;quot; do&lt;/div&gt;&lt;div&gt;      it &amp;quot;creates a new Person&amp;quot; do&lt;/div&gt;&lt;div&gt;        expect {&lt;/div&gt;&lt;div&gt;          post :create, :person =&amp;gt; valid_attributes&lt;/div&gt;&lt;div&gt;        }.to change(Person, :count).by(1)&lt;/div&gt; &lt;div&gt;      end&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;In that code, I replace it by default with something like this:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;  def valid_attributes&lt;/div&gt;&lt;div&gt;    FactoryGirl.build(:full_person).attributes.delete_if{|k,v| v.nil?}&lt;/div&gt; &lt;div&gt;  end&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;Stripping the non nil attributes from the hash solves the issue.&lt;/div&gt;&lt;div&gt;As you show above, :id, :created_at, :update_at are (correctly) nil&lt;/div&gt;&lt;div&gt;after a build, so this delete_if removes them from the attributes hash.&lt;/div&gt; &lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;* I get no warnings on the :id&lt;/div&gt;&lt;div&gt;* I get no violations of nil created_at /updated upon update&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;So, to centralize this pattern, this hack with a &amp;quot;build_attributes&amp;quot;&lt;/div&gt; &lt;div&gt;seems to work:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;../config/initializers$ cat generators.rb &lt;/div&gt;&lt;div&gt;ContactApp::Application.config.generators do |g|&lt;/div&gt;&lt;div&gt;  g.helper          false&lt;/div&gt;&lt;div&gt;  g.test_framework :rspec, :fixture =&amp;gt; true, :views =&amp;gt; false&lt;/div&gt; &lt;div&gt;  g.fixture_replacement :factory_girl, :dir =&amp;gt; &amp;quot;spec/factories&amp;quot;&lt;/div&gt;&lt;div&gt;end&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;module FactoryGirl&lt;/div&gt;&lt;div&gt;  # this is a hack&lt;/div&gt;&lt;div&gt;  def self.build_attributes(*args)&lt;/div&gt;&lt;div&gt;       self.build(*args).attributes.delete_if{|k,v| v.nil?}&lt;/div&gt;&lt;div&gt;  end&lt;/div&gt;&lt;div&gt;end&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;And now I can do:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;  def valid_attributes&lt;/div&gt;&lt;div&gt;    FactoryGirl.build_attributes(:full_person) &lt;/div&gt; &lt;div&gt;  end&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;HTH,&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Peter&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;  &lt;p&gt;&lt;/p&gt;  -- &lt;br /&gt; You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.&lt;br /&gt; To post to this group, send email to rubyonrails-talk@googlegroups.com.&lt;br /&gt; To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.&lt;br /&gt;  For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.&lt;br /&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-1393541583726359103?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/1393541583726359103/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-massassignmentsanitizer-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/1393541583726359103'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/1393541583726359103'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-massassignmentsanitizer-and.html' title='Re: [Rails] mass_assignment_sanitizer and Factories w/ rspec'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-3184199403305444554</id><published>2012-01-29T02:45:00.000-08:00</published><updated>2012-01-29T02:46:04.610-08:00</updated><title type='text'>[Rails] has_many association and parent_id</title><content type='html'>Rails 3.1.3&lt;p&gt;Hi everyone again.&lt;p&gt;I&amp;#39;m trying to develop a database and tables which have the association&lt;br&gt;as follows.&lt;p&gt;Video 1 ----- 0..n Script&lt;p&gt;So, in &amp;#39;script.rb&amp;#39;&lt;p&gt;class Script &amp;lt; ActiveRecord::Base&lt;br&gt;  belongs_to :video&lt;br&gt;...&lt;br&gt;end&lt;p&gt;and in &amp;#39;video.rb&amp;#39;&lt;p&gt;class Video &amp;lt; ActiveRecord::Base&lt;br&gt;  has_many :scripts&lt;br&gt;end&lt;p&gt;Furthermore, in order to refer to the parent (in this case, &amp;#39;Video&amp;#39;), I&lt;br&gt;need to set video_id:integer for Script.  Am I correct ?&lt;p&gt;in the migration file,&lt;p&gt;#--------&lt;br&gt;class CreateScripts &amp;lt; ActiveRecord::Migration&lt;br&gt;  def change&lt;p&gt;    create_table :scripts do |t|&lt;br&gt;      t.references :video&lt;br&gt;      t.string :text&lt;br&gt;      ...&lt;br&gt;    end&lt;br&gt;    add_index :scripts, :video_id&lt;br&gt;  end&lt;br&gt;end&lt;br&gt;#---------&lt;p&gt;My question is: how can I actually associate a new &amp;#39;script&amp;#39; entry with&lt;br&gt;its parent, &amp;#39;video&amp;#39;, in making a new &amp;#39;Script&amp;#39; entry ?&lt;p&gt;For example, in &amp;#39;index.html.erb&amp;#39; for NewScript page, I tried to put&lt;p&gt;    &amp;lt;td&amp;gt;&amp;lt;%= script.video_id %&amp;gt;&amp;lt;/td&amp;gt;&lt;p&gt;and in script_controller.rb&lt;p&gt;    @script.video = Video.where(:video_id)&lt;p&gt;But certainly does not seem to work at all.&lt;br&gt;Could anyone show me how to set up &amp;#39;html.erb&amp;#39; and &amp;#39;controller.rb&amp;#39; to&lt;br&gt;associate a new &amp;#39;Script&amp;#39; entry with its parent specifically ?&lt;p&gt;Thanks in advance.&lt;p&gt;soichi&lt;p&gt;-- &lt;br&gt;Posted via &lt;a href="http://www.ruby-forum.com/"&gt;http://www.ruby-forum.com/&lt;/a&gt;.&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-3184199403305444554?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/3184199403305444554/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-hasmany-association-and-parentid.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/3184199403305444554'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/3184199403305444554'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-hasmany-association-and-parentid.html' title='[Rails] has_many association and parent_id'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-6503590520761628364</id><published>2012-01-29T01:52:00.001-08:00</published><updated>2012-01-29T01:52:48.356-08:00</updated><title type='text'>[Rails] mass_assignment_sanitizer and Factories w/ rspec</title><content type='html'>I&amp;#39;m running into a bit of an issue when it comes to using&lt;br&gt;factory_girl_rails (1.6.0) with 3.2&amp;#39;s mass_assignment_sanitizer&lt;br&gt;= :strict and I&amp;#39;m hoping some one can offer me some guidance to&lt;br&gt;improve my tests.&lt;p&gt;The problem:&lt;br&gt;Say you have a test that looks like this:&lt;p&gt;it &amp;quot;allows you to create an object&amp;quot; do&lt;br&gt;  obj = FactoryGirl.build(:object) # #&amp;lt;Object id: nil, name: &amp;quot;Foo&lt;br&gt;Bar&amp;quot;, created_at: nil, updated_at: nil&amp;gt;&lt;br&gt;  post :create, :object =&amp;gt; obj.attributes&lt;br&gt;  response.should be_redirect&lt;br&gt;  # yadda yadda yadda&lt;br&gt;end&lt;p&gt;The problem I&amp;#39;m running up against is that because&lt;br&gt;FactoryGirl.build(:object) returns a built out object that includes&lt;br&gt;protected attributes such as id, created_at and updated_at in the hash&lt;br&gt;(this is a simplified example, I have other things in the model not&lt;br&gt;listed here that are also whitelisted via attr_accessible), when I&lt;br&gt;post that hash, I receive the following error:&lt;p&gt;ActiveModel::MassAssignmentSecurity::Error:&lt;br&gt;       Can&amp;#39;t mass-assign protected attributes: id, created_at,&lt;br&gt;updated_at&lt;p&gt;The above is a simplified example. The model looks a bit more like&lt;br&gt;this:&lt;p&gt;class Foo &amp;lt; ActiveRecord::Base&lt;br&gt;  belongs_to :bar&lt;br&gt;  # a bunch of other belongs_to&amp;#39;s here&lt;br&gt;  attr_accessible :name, :bar_id, #other belongs_to ids&lt;br&gt;end&lt;p&gt;Factory.define :foo do&lt;br&gt;  name Faker::Name.name&lt;br&gt;  association :bar, :factory =&amp;gt; :bar&lt;br&gt;  # all the other associations&lt;br&gt;end&lt;p&gt;I took a look through factory_girl&amp;#39;s docs and found the following&lt;br&gt;methods for building out models:&lt;p&gt;attributes_for: doesn&amp;#39;t go far enough because I have relations defined&lt;br&gt;on my factory that need to be built and saved so their IDs can be&lt;br&gt;assigned to the object upon its instantiation (or in the hash)&lt;p&gt;build_stubbed: gives me random values for various fields that aren&amp;#39;t&lt;br&gt;valid. Instead of building out the associations and saving them then&lt;br&gt;assigning valid IDs, it just makes random shit up. That doesn&amp;#39;t quite&lt;br&gt;work.&lt;p&gt;create: obviously not the right choice when you&amp;#39;re testing a post&lt;br&gt;action on a RESTful cotroller&lt;p&gt;build: what I&amp;#39;m using now, and then just passing the attributes hash&lt;br&gt;of the object. Does everything I need, except it includes attributes&lt;br&gt;that are protected, thus causing the controller to flip out.&lt;p&gt;Now, I can think of two (three actually) ways around this problem:&lt;p&gt;1) Go through my really big test base and manually remove any&lt;br&gt;attribute that&amp;#39;s not accessible from the hash before doing a post. Not&lt;br&gt;at all maintainable and not really a realistic option, but would allow&lt;br&gt;the tests to pass.&lt;p&gt;2) Add a before_filter that sanitizes the parameters hash on create&lt;br&gt;and update actions to strip out any protected attributes by looking at&lt;br&gt;the model and seeing what its accessible attributes are. This seems&lt;br&gt;like unnecessary code bloat, though, and kind of a clunky solution to&lt;br&gt;the problem.&lt;p&gt;3) [What I really want] I need a way to get FactoryGirl to build out a&lt;br&gt;hash of attributes when it&amp;#39;s first called to NOT include attributes&lt;br&gt;that are protected or aren&amp;#39;t accessible, but WOULD include real object&lt;br&gt;IDs for all the defined associations. That would allow me to just call&lt;br&gt;post :create, :object =&amp;gt; FactoryGirl.some_method(:object) and be done&lt;br&gt;with it.&lt;p&gt;Could anyone offer any insight here as to how I might go about making&lt;br&gt;this work better? Obviously I could delete the setting from test.rb&lt;br&gt;but that kind of defeats the purposes, and I like having extra strict&lt;br&gt;security measures (especially in this particular application).&lt;p&gt;Thanks!&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-6503590520761628364?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/6503590520761628364/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-massassignmentsanitizer-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/6503590520761628364'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/6503590520761628364'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-massassignmentsanitizer-and.html' title='[Rails] mass_assignment_sanitizer and Factories w/ rspec'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-5096223320425813525</id><published>2012-01-29T00:01:00.000-08:00</published><updated>2012-01-29T00:02:06.816-08:00</updated><title type='text'>[Rails] Re: trouble in storing dates from localized form text fields...</title><content type='html'>[SOLVED]&lt;p&gt;don&amp;#39;t know if it&amp;#39;s the best solution, but it worked...&lt;br&gt;changed the date text_fields to text_field_tag, on output , set the&lt;br&gt;value in the controller, with I18n and local format&lt;br&gt;&amp;gt;&amp;gt; @start_shooting_date = I18n.l( @project[:start_shooting_date], :format =&amp;gt; &amp;quot;%d/%m/%Y&amp;quot;)&lt;p&gt;then on input , set the attribute value from the form field in the&lt;br&gt;controller, with I18n and local format&lt;br&gt;&amp;gt;&amp;gt; @project = Project.new(params[:project])  # on create&lt;br&gt;&amp;gt;&amp;gt; @project.attributes = params[:project] # on update&lt;br&gt;&amp;gt;&amp;gt; @project[:start_shooting_date] =  I18n.l(params[:start_shooting_date].to_date, :format =&amp;gt; &amp;quot;%d/%m/%Y&amp;quot;)&lt;br&gt;&amp;gt;&amp;gt; if @project.save&lt;br&gt;this way, the dates are correctly saved in the DB with the&lt;br&gt;standard :db format but input/output in the form is in local format&lt;br&gt;&amp;quot;dd/mm/yyyy&amp;quot; ( also defined like this in localized DatePicker&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-5096223320425813525?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/5096223320425813525/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-re-trouble-in-storing-dates-from.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/5096223320425813525'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/5096223320425813525'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-re-trouble-in-storing-dates-from.html' title='[Rails] Re: trouble in storing dates from localized form text fields...'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-7234925371103275291</id><published>2012-01-28T21:32:00.000-08:00</published><updated>2012-01-30T03:06:07.661-08:00</updated><title type='text'>[Rails] Rails in Production &amp; Cache</title><content type='html'>I have ruby 1.9.3-p0, rails 3.2.1 with new app, run in production with&lt;br&gt;rails s -e production. When open localhost:3000 in browser i get a&lt;br&gt;message cache: [GET /] miss. Tried to change the caching options&lt;br&gt;(memori_store, fili_store), does not help.What wrong ?&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-7234925371103275291?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/7234925371103275291/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-rails-in-production-cache.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/7234925371103275291'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/7234925371103275291'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-rails-in-production-cache.html' title='[Rails] Rails in Production &amp; Cache'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-2879773203043660157</id><published>2012-01-28T20:27:00.000-08:00</published><updated>2012-01-28T20:28:00.318-08:00</updated><title type='text'>[Rails] Re: changing migration</title><content type='html'>Thanks for the clarification!&lt;p&gt;soichi&lt;p&gt;-- &lt;br&gt;Posted via &lt;a href="http://www.ruby-forum.com/"&gt;http://www.ruby-forum.com/&lt;/a&gt;.&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-2879773203043660157?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/2879773203043660157/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-re-changing-migration.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/2879773203043660157'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/2879773203043660157'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-re-changing-migration.html' title='[Rails] Re: changing migration'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-6968576387291561852</id><published>2012-01-28T19:32:00.001-08:00</published><updated>2012-01-28T19:33:00.029-08:00</updated><title type='text'>Re: [Rails] changing migration</title><content type='html'>generate a new migratio where you specify what you want to do say:&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;remove_column :table, :column&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;add_column :table, :column, :type&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Regards!&lt;/div&gt;&lt;div&gt;&lt;br&gt; &lt;div class="gmail_quote"&gt;2012/1/28 Soichi Ishida &lt;span dir="ltr"&gt;&amp;lt;&lt;a href="mailto:lists@ruby-forum.com"&gt;lists@ruby-forum.com&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"&gt; Rails 3.1.3&lt;br&gt; &lt;br&gt; This is again a very basic question.&lt;br&gt; &lt;br&gt; Suppose I have implemented&lt;br&gt; &lt;br&gt; $ rails generate scaffold script video:references text:string&lt;br&gt; &lt;br&gt; it generated&lt;br&gt; &lt;br&gt; 20120128103756_create_scripts.rb&lt;br&gt; &lt;br&gt; But I want to change this model, so instead of redoing it like &amp;quot;rails&lt;br&gt; destroy .... -&amp;gt; rails generate scaffold...&amp;quot;, all I need to do is to edit&lt;br&gt; the migration file above?&lt;br&gt; Or do I need to reproduce ANOTHER migration file like above and add&lt;br&gt; &lt;br&gt; t.remove :text&lt;br&gt; &lt;br&gt; ???&lt;br&gt; &lt;br&gt; I am a little confused because the migration file above has the&lt;br&gt; time-stamp, which indicates the time of execution (rake db:migrate).&lt;br&gt; So, does that mean the file above is useless unless I want to rollback?&lt;br&gt; &lt;span class="HOEnZb"&gt;&lt;font color="#888888"&gt;&lt;br&gt; --&lt;br&gt; Posted via &lt;a href="http://www.ruby-forum.com/" target="_blank"&gt;http://www.ruby-forum.com/&lt;/a&gt;.&lt;br&gt; &lt;br&gt; --&lt;br&gt; You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt; To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt; To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt; For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en" target="_blank"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;br&gt; &lt;br&gt; &lt;/font&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;  &lt;p&gt;&lt;/p&gt;  -- &lt;br /&gt; You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.&lt;br /&gt; To post to this group, send email to rubyonrails-talk@googlegroups.com.&lt;br /&gt; To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.&lt;br /&gt;  For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.&lt;br /&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-6968576387291561852?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/6968576387291561852/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-changing-migration.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/6968576387291561852'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/6968576387291561852'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-changing-migration.html' title='Re: [Rails] changing migration'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-585689251850009142</id><published>2012-01-28T19:14:00.001-08:00</published><updated>2012-01-28T19:14:59.736-08:00</updated><title type='text'>[Rails] changing migration</title><content type='html'>Rails 3.1.3&lt;p&gt;This is again a very basic question.&lt;p&gt;Suppose I have implemented&lt;p&gt;$ rails generate scaffold script video:references text:string&lt;p&gt;it generated&lt;p&gt;20120128103756_create_scripts.rb&lt;p&gt;But I want to change this model, so instead of redoing it like &amp;quot;rails&lt;br&gt;destroy .... -&amp;gt; rails generate scaffold...&amp;quot;, all I need to do is to edit&lt;br&gt;the migration file above?&lt;br&gt;Or do I need to reproduce ANOTHER migration file like above and add&lt;p&gt;t.remove :text&lt;p&gt;???&lt;p&gt;I am a little confused because the migration file above has the&lt;br&gt;time-stamp, which indicates the time of execution (rake db:migrate).&lt;br&gt;So, does that mean the file above is useless unless I want to rollback?&lt;p&gt;-- &lt;br&gt;Posted via &lt;a href="http://www.ruby-forum.com/"&gt;http://www.ruby-forum.com/&lt;/a&gt;.&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-585689251850009142?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/585689251850009142/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-changing-migration.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/585689251850009142'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/585689251850009142'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-changing-migration.html' title='[Rails] changing migration'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-8239125725540791524</id><published>2012-01-28T19:00:00.001-08:00</published><updated>2012-01-28T19:00:28.898-08:00</updated><title type='text'>[Rails] Re: Redirecting to create new page with input</title><content type='html'>Thanks again!&lt;p&gt;-- &lt;br&gt;Posted via &lt;a href="http://www.ruby-forum.com/"&gt;http://www.ruby-forum.com/&lt;/a&gt;.&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-8239125725540791524?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/8239125725540791524/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-re-redirecting-to-create-new-page_28.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/8239125725540791524'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/8239125725540791524'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-re-redirecting-to-create-new-page_28.html' title='[Rails] Re: Redirecting to create new page with input'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-5092664478061776385</id><published>2012-01-28T15:04:00.000-08:00</published><updated>2012-01-30T03:06:02.092-08:00</updated><title type='text'>[Rails] after_save in plugin</title><content type='html'>Dear list,&lt;br&gt;I am trying to override an after_save callback declared in main app&lt;br&gt;using plugin.&lt;br&gt;The main model class is:&lt;p&gt;class WorkHours &amp;lt; ActiveRecord::Base&lt;br&gt;  @after_save_call_back_called=0&lt;br&gt;  after_save :after_save_call_back&lt;br&gt;  def after_save_call_back&lt;br&gt;    logger.debug &amp;quot;after save called&amp;quot;&lt;br&gt;    @after_save_call_back_called=1&lt;br&gt;  end&lt;br&gt;end&lt;p&gt;And in my plugin (in the lib directory) :&lt;p&gt;module WorkHoursPatch&lt;br&gt; # cattr_accessor&lt;br&gt; def self.included(base) # :nodoc:&lt;br&gt;   base.logger.debug &amp;quot;inlcuded called&amp;quot;&lt;br&gt;   base.extend(ClassMethods)&lt;br&gt;   base.send(:include, InstanceMethods)&lt;br&gt;   base.after_save.delete_if{&lt;br&gt;     |callback| callback.method == :after_save_call_back&lt;br&gt;   }&lt;br&gt;   base.send(:after_save, :after_save_call_back_patched)&lt;br&gt; end&lt;p&gt; module ClassMethods&lt;p&gt; end&lt;p&gt; module InstanceMethods&lt;br&gt;  def after_save_call_back_patched&lt;br&gt;    logger.debug &amp;quot;overriden after save called&amp;quot;&lt;br&gt;    @after_save_call_back_called=1&lt;br&gt;  end&lt;br&gt;   # Wraps the association to get the Deliverable subject.  Needed for&lt;br&gt;the&lt;br&gt;   # Query and filtering&lt;br&gt;   # def is_new&lt;br&gt;   #   unless self.is_new.nil?&lt;br&gt;   #     return self.is_new&lt;br&gt;   #   end&lt;br&gt;   #   return false;&lt;br&gt;   # end&lt;br&gt; end&lt;br&gt;end&lt;br&gt;#&lt;br&gt;## Add module to Issue&lt;br&gt;WorkHours.send(:include, WorkHoursPatch)&lt;p&gt;The init.rb says&lt;br&gt;require &amp;#39;work_hours_patch&amp;#39;&lt;p&gt;All this should work and running the console I an see the old plugin&lt;br&gt;being deleted and the new one added.&lt;p&gt;Please help!&lt;br&gt;I am spending on this days!&lt;br&gt;Evgeny&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-5092664478061776385?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/5092664478061776385/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-aftersave-in-plugin.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/5092664478061776385'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/5092664478061776385'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-aftersave-in-plugin.html' title='[Rails] after_save in plugin'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-2545902835952543592</id><published>2012-01-28T11:06:00.000-08:00</published><updated>2012-01-30T03:05:56.149-08:00</updated><title type='text'>[Rails] Using search_field as select</title><content type='html'>Hi,&lt;p&gt;I am trying to make the search_field look into a table of my database&lt;br&gt;which is different from the form&amp;#39;s object&amp;#39;s table.&lt;br&gt;Basically, I want to do this:&lt;p&gt;&amp;lt;td&amp;gt;&amp;lt;%= f.search_field(:sport, Sport.all.collect {|s|[s.sport_name]})&lt;br&gt;%&amp;gt;&amp;lt;/td&amp;gt;&lt;p&gt;But it does not work obviously.&lt;p&gt;Sorry if this issue has already been raised but I did not find any&lt;br&gt;solution after searching on google and in this group posts.&lt;p&gt;Thank you in advance for your help,&lt;br&gt;Alex&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-2545902835952543592?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/2545902835952543592/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-using-searchfield-as-select.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/2545902835952543592'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/2545902835952543592'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-using-searchfield-as-select.html' title='[Rails] Using search_field as select'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-1440129122492645678</id><published>2012-01-28T10:14:00.000-08:00</published><updated>2012-01-28T10:15:21.794-08:00</updated><title type='text'>Re: [Rails] ActionMailer and Ruby SMTP causing a segmentation fault!</title><content type='html'>&lt;div class="GG5HLLYCDX" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; vertical-align: baseline; color: rgb(80, 0, 80); "&gt;&amp;gt;&amp;gt; tries to send out the confirmation-link email I get a segmentation-fault&lt;br&gt;&amp;gt;&amp;gt; error in Ruby's SMTP library:&lt;br&gt;&amp;gt;&amp;gt;&lt;br&gt;&amp;gt;&amp;gt; ... lib/ruby/1.9.1/net/smtp.rb:&lt;wbr&gt;583: [BUG] Segmentation fault&lt;/div&gt;&lt;p style="margin-top: 1em; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; vertical-align: baseline; font-size: 13px; line-height: normal; "&gt;&amp;gt; If you are using ruby 1.9.1 then upgrade to 1.9.2 (or 1.9.3 though&lt;br&gt;&amp;gt; maybe it is still a bit new) or go back to 1.8.7&lt;br&gt;&amp;gt;1.9.1 did not play well with Rails&lt;/p&gt;&lt;p style="margin-top: 1em; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; vertical-align: baseline; font-size: 13px; line-height: normal; "&gt;OK I'm confused. &amp;nbsp;The segmentation fault indicates it is happening in the ruby 1.9.1 version of the SMTP library (see quoted text.) &amp;nbsp;However, when I go to my project and enter the Rails console, I get this:&lt;/p&gt;&lt;p style="margin-top: 1em; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; vertical-align: baseline; font-size: 13px; line-height: normal; "&gt;&lt;/p&gt;&lt;p style="margin-top: 1em; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; vertical-align: baseline; font-size: 13px; line-height: normal; "&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;font class="Apple-style-span" color="#0000ff"&gt; irb(main):001:0&amp;gt; RUBY_VERSION&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top: 1em; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; vertical-align: baseline; font-size: 13px; line-height: normal; "&gt;&lt;font class="Apple-style-span" color="#0000ff"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; =&amp;gt; "1.9.3"&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top: 1em; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; vertical-align: baseline; font-size: 13px; line-height: normal; "&gt;And when I go the project directory I get this:&lt;/p&gt;&lt;p style="margin-top: 1em; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; vertical-align: baseline; font-size: 13px; line-height: normal; "&gt;&lt;font class="Apple-style-span" color="#0000ff"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;story_project # &amp;nbsp; ruby --version&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top: 1em; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; vertical-align: baseline; font-size: 13px; line-height: normal; "&gt;&lt;font class="Apple-style-span" color="#0000ff"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin11.2.0]&lt;/font&gt;&lt;/p&gt;&lt;p style="margin-top: 1em; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; vertical-align: baseline; font-size: 13px; line-height: normal; "&gt;The full path on the segmentation fault is:&lt;/p&gt;&lt;p style="margin-top: 1em; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; vertical-align: baseline; font-size: 13px; line-height: normal; "&gt;&lt;font class="Apple-style-span" color="#0000ff"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;/Users/don/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/smtp.rb:583: [BUG] Segmentation fault&lt;/font&gt;&lt;/p&gt;&lt;div&gt;What is the deal here? &amp;nbsp;Why is Ruby 1.9.3 running code from 1.9.1? &amp;nbsp;Is this common? &amp;nbsp;Did RVM mess this up some how?&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Perplexing!??&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  -- &lt;br /&gt; You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.&lt;br /&gt; To view this discussion on the web visit &lt;a href="https://groups.google.com/d/msg/rubyonrails-talk/-/S8zz7O9n9UAJ"&gt;https://groups.google.com/d/msg/rubyonrails-talk/-/S8zz7O9n9UAJ&lt;/a&gt;.&lt;br /&gt;  To post to this group, send email to rubyonrails-talk@googlegroups.com.&lt;br /&gt; To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.&lt;br /&gt;  For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.&lt;br /&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-1440129122492645678?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/1440129122492645678/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-actionmailer-and-ruby-smtp_28.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/1440129122492645678'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/1440129122492645678'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-actionmailer-and-ruby-smtp_28.html' title='Re: [Rails] ActionMailer and Ruby SMTP causing a segmentation fault!'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-2053992280020470835</id><published>2012-01-28T09:48:00.001-08:00</published><updated>2012-01-28T09:49:52.357-08:00</updated><title type='text'>Re: [Rails] Re: Redirecting to create new page with input</title><content type='html'>On Fri, Jan 27, 2012 at 23:14, Soichi Ishida &amp;lt;&lt;a href="mailto:lists@ruby-forum.com"&gt;lists@ruby-forum.com&lt;/a&gt;&amp;gt; wrote:&lt;p&gt;&amp;gt; Thanks for your explanation. &amp;#160;It is exactly what I wanted.&lt;p&gt;Great!  Now let&amp;#39;s take it to the next level.  I think you can make it&lt;br&gt;a little more &amp;quot;canonical&amp;quot;.  Instead of:&lt;p&gt;&amp;gt; &amp;#160;&amp;lt;%= link_to(&amp;#39;RegisterThisMovie&amp;#39;, {:controller =&amp;gt; &amp;#39;video&amp;#39;, :action =&amp;gt;&lt;br&gt;&amp;gt; &amp;#39;new&amp;#39;, :url =&amp;gt; y }) %&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;#39;y&amp;#39; contains the url of the movie after executing the search.&lt;p&gt;try:&lt;p&gt;&amp;lt;%= link_to( &amp;#39;Register This Movie&amp;#39;, new_video_path, :url =&amp;gt; y ) %&amp;gt;&lt;p&gt;Also you can try getting used to the newer hash syntax, and do:&lt;p&gt;&amp;lt;%= link_to( &amp;#39;Register This Movie&amp;#39;, new_video_path, url: y ) %&amp;gt;&lt;p&gt;I&amp;#39;m not 100% sure off the top of my head that these will work, but it&lt;br&gt;should be at least close.  :*)  The built-in url helpers like&lt;br&gt;new_whatever_path, edit_whatever_path(some_object), etc. will save you&lt;br&gt;lots of typing and thus errors.&lt;p&gt;-Dave&lt;p&gt;-- &lt;br&gt;Dave Aronson: &amp;#160;Available Cleared Ruby on Rails Freelancer&lt;br&gt;(NoVa/DC/Remote) -- see &lt;a href="http://www.DaveAronson.com"&gt;www.DaveAronson.com&lt;/a&gt;, and blogs at&lt;br&gt;&lt;a href="http://www.Codosaur.us"&gt;www.Codosaur.us&lt;/a&gt;, &lt;a href="http://www.Dare2XL.com"&gt;www.Dare2XL.com&lt;/a&gt;, &lt;a href="http://www.RecruitingRants.com"&gt;www.RecruitingRants.com&lt;/a&gt;&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-2053992280020470835?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/2053992280020470835/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-re-redirecting-to-create-new.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/2053992280020470835'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/2053992280020470835'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-re-redirecting-to-create-new.html' title='Re: [Rails] Re: Redirecting to create new page with input'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-6792831597125591567</id><published>2012-01-28T09:48:00.000-08:00</published><updated>2012-01-28T09:49:07.145-08:00</updated><title type='text'>Re: [Rails] How to migrate from md5 to bcrypt?</title><content type='html'>&amp;gt; I would like to migrate users from my old phpfusion site but I have there hash password md5(md5) how to convert this passwords to bcrypt?&lt;br&gt;&amp;gt; I creating Sinatra app whre i use this passwords with Warden.&lt;p&gt;If you can configure Warden to use the md5 passwords, then do that.  Then, modify the login process so that upon successful login you save their password (which you have at the moment in plain text) as a bcrypt-ed string.  On next login, verify against bcrypt.&lt;p&gt;For more info, take a look at authlogic&amp;#39;s &amp;quot;migrate from restful authentication&amp;quot; to see how it handles it...&lt;p&gt;-philip&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-6792831597125591567?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/6792831597125591567/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-how-to-migrate-from-md5-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/6792831597125591567'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/6792831597125591567'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-how-to-migrate-from-md5-to.html' title='Re: [Rails] How to migrate from md5 to bcrypt?'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-7549249705992883804</id><published>2012-01-28T09:41:00.001-08:00</published><updated>2012-01-28T09:41:54.558-08:00</updated><title type='text'>Re: [Rails] Re: How to migrate from md5 to bcrypt?</title><content type='html'>On 28 January 2012 17:38, regedarek &amp;lt;&lt;a href="mailto:dariusz.finster@gmail.com"&gt;dariusz.finster@gmail.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt; I solved this -&amp;gt; &lt;a href="https://gist.github.com/1694730"&gt;https://gist.github.com/1694730&lt;/a&gt;&lt;p&gt;Rails-related how?&lt;br&gt;?:-/&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-7549249705992883804?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/7549249705992883804/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-re-how-to-migrate-from-md5-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/7549249705992883804'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/7549249705992883804'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-re-how-to-migrate-from-md5-to.html' title='Re: [Rails] Re: How to migrate from md5 to bcrypt?'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-3388885758445329289</id><published>2012-01-28T09:38:00.000-08:00</published><updated>2012-01-28T09:39:11.247-08:00</updated><title type='text'>[Rails] Re: How to migrate from md5 to bcrypt?</title><content type='html'>I solved this -&amp;gt; https://gist.github.com/1694730&lt;br&gt;  &lt;p&gt;&lt;/p&gt;  -- &lt;br /&gt; You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.&lt;br /&gt; To view this discussion on the web visit &lt;a href="https://groups.google.com/d/msg/rubyonrails-talk/-/FISK5kI7G2AJ"&gt;https://groups.google.com/d/msg/rubyonrails-talk/-/FISK5kI7G2AJ&lt;/a&gt;.&lt;br /&gt;  To post to this group, send email to rubyonrails-talk@googlegroups.com.&lt;br /&gt; To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.&lt;br /&gt;  For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.&lt;br /&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-3388885758445329289?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/3388885758445329289/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-re-how-to-migrate-from-md5-to_28.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/3388885758445329289'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/3388885758445329289'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-re-how-to-migrate-from-md5-to_28.html' title='[Rails] Re: How to migrate from md5 to bcrypt?'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-5827023083290239417</id><published>2012-01-28T09:36:00.000-08:00</published><updated>2012-01-28T09:37:14.569-08:00</updated><title type='text'>[Rails] Re: How to migrate from md5 to bcrypt?</title><content type='html'>Is that even possible? I don't think so...&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I'd say that the best way is to reset all the passwords, notify them and allow them to change it.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Linus&lt;/div&gt;  &lt;p&gt;&lt;/p&gt;  -- &lt;br /&gt; You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.&lt;br /&gt; To view this discussion on the web visit &lt;a href="https://groups.google.com/d/msg/rubyonrails-talk/-/2Gul1hl4MkYJ"&gt;https://groups.google.com/d/msg/rubyonrails-talk/-/2Gul1hl4MkYJ&lt;/a&gt;.&lt;br /&gt;  To post to this group, send email to rubyonrails-talk@googlegroups.com.&lt;br /&gt; To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.&lt;br /&gt;  For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.&lt;br /&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-5827023083290239417?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/5827023083290239417/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-re-how-to-migrate-from-md5-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/5827023083290239417'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/5827023083290239417'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-re-how-to-migrate-from-md5-to.html' title='[Rails] Re: How to migrate from md5 to bcrypt?'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-5325941821530649434</id><published>2012-01-28T06:29:00.001-08:00</published><updated>2012-01-28T06:29:37.610-08:00</updated><title type='text'>[Rails] trouble in storing dates from localized form text fields...</title><content type='html'>[Rails 3.1.3 / ruby 1.9.2 ]&lt;p&gt;I am trying to manage localized dates and I don&amp;#39;t actually understand&lt;br&gt;how it&amp;#39;s managed w Rails 3.1 ... I thought there was no more issues w&lt;br&gt;I18n..&lt;p&gt;my locale is defined : I18n.locale  =&amp;gt; :fr&lt;br&gt;I am using a localized version of  jQuery DatePicker , so it displays&lt;br&gt;selected dates in the text field like :   01/02/2012   (Feb first )&lt;br&gt;i.e.  ( in generated html):&lt;br&gt;&amp;lt;input&amp;#160;id=&amp;quot;start_shooting_date&amp;quot;&amp;#160;class=&amp;quot;text&lt;br&gt;hasDatepicker&amp;quot;&amp;#160;type=&amp;quot;text&amp;quot;&amp;#160;value=&amp;quot;01/02/2012&amp;quot;&amp;#160;name=&amp;quot;project[start_shooting_date]&amp;quot;&amp;gt;&lt;p&gt;in my Project model , date validations are OK, then I store the&lt;br&gt;updated project&lt;br&gt;@project.update_attributes(params[:project])&lt;p&gt;and I get stored in the DB :   start_shooting_date: &amp;quot;2012-01-02&lt;br&gt;00:00:00&amp;quot;  (Jan 2nd)   rather than  &amp;quot;2012-02-01 00:00:00&amp;quot; ( Feb&lt;br&gt;first )&lt;p&gt;I&amp;#39;ll appreciated your feedback ...&lt;p&gt;I defined in environment.rb ( don&amp;#39;t know if necessary.. for input .&lt;br&gt;but it seems to be for output, or is it redundant with defaults .yml&lt;br&gt;files ?)&lt;br&gt;# if locale french&lt;br&gt;Date::DATE_FORMATS.merge!(  :default =&amp;gt; &amp;quot;%d/%m/%Y&amp;quot; )&lt;p&gt;I also defined the I18n default format in the .yml files&lt;p&gt;fr:&lt;br&gt;  date:&lt;br&gt;    formats:&lt;br&gt;      default: &amp;quot;%d/%m/%Y&amp;quot;&lt;br&gt;      short: &amp;quot;%e %b&amp;quot;&lt;br&gt;      long: &amp;quot;%e %B %Y&amp;quot;&lt;br&gt;      full: &amp;quot;%A %d %B %Y&amp;quot;&lt;br&gt;  time:&lt;br&gt;    formats:&lt;br&gt;      default: &amp;quot;%d %B %Y %H:%M:%S&amp;quot;&lt;br&gt;      short: &amp;quot;%d %b %H:%M&amp;quot;&lt;br&gt;      long: &amp;quot;%A %d %B %Y %H:%M&amp;quot;&lt;br&gt;    am: &amp;#39;am&amp;#39;&lt;br&gt;    pm: &amp;#39;pm&amp;#39;&lt;p&gt;en:&lt;br&gt;  date:&lt;br&gt;    formats:&lt;br&gt;      default: &amp;quot;%Y-%m-%d&amp;quot;&lt;br&gt;      short: &amp;quot;%b %d&amp;quot;&lt;br&gt;      long: &amp;quot;%B %d, %Y&amp;quot;&lt;br&gt;      full: &amp;quot;%A %B %d, %Y&amp;quot;&lt;br&gt;  time:&lt;br&gt;    formats:&lt;br&gt;      default: &amp;quot;%a, %d %b %Y %H:%M:%S %z&amp;quot;&lt;br&gt;      short: &amp;quot;%d %b %H:%M&amp;quot;&lt;br&gt;      long: &amp;quot;%B %d, %Y %H:%M&amp;quot;&lt;br&gt;    am: &amp;quot;am&amp;quot;&lt;br&gt;    pm: &amp;quot;pm&amp;quot;&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-5325941821530649434?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/5325941821530649434/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-trouble-in-storing-dates-from.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/5325941821530649434'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/5325941821530649434'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-trouble-in-storing-dates-from.html' title='[Rails] trouble in storing dates from localized form text fields...'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-4079955634289093654</id><published>2012-01-28T05:46:00.001-08:00</published><updated>2012-01-28T05:46:30.192-08:00</updated><title type='text'>[Rails] Why Unicorn don't want to make .pid file?</title><content type='html'>I use VirtualBox with gem Vagrant, (lucid32, rvm 1.10.2, ruby 1.9.2,&lt;br&gt;rails 3.1.0, nginx 1.0.11 + gem Unicorn) and Capistrano .&lt;br&gt;Which configured with the tutorial&lt;br&gt;&lt;a href="http://ariejan.net/2011/09/14/lighting-fast-zero-downtime-deployments-with-git-capistrano-nginx-and-unicorn"&gt;http://ariejan.net/2011/09/14/lighting-fast-zero-downtime-deployments-with-git-capistrano-nginx-and-unicorn&lt;/a&gt;&lt;br&gt;And my Unicorn don&amp;#39;t want to start =(&lt;p&gt;After cap deploy i get this:&lt;br&gt;&lt;a href="https://gist.github.com/1694320"&gt;https://gist.github.com/1694320&lt;/a&gt;&lt;br&gt;   There&amp;#39;s no .pid file, no .log files&lt;br&gt;   Manually i created all folders, so no effect =(&lt;p&gt;Who have experience with Virtual Machines and Vagrant?&lt;br&gt;Probably, met the problem before?&lt;p&gt;If i will not be annoying for You I can give the package.&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-4079955634289093654?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/4079955634289093654/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-why-unicorn-dont-want-to-make-pid.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/4079955634289093654'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/4079955634289093654'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-why-unicorn-dont-want-to-make-pid.html' title='[Rails] Why Unicorn don&apos;t want to make .pid file?'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-7130981321355039549</id><published>2012-01-28T03:32:00.001-08:00</published><updated>2012-01-28T03:32:25.700-08:00</updated><title type='text'>[Rails] How to migrate from md5 to bcrypt?</title><content type='html'>I would like to migrate users from my old phpfusion site but I have there hash password md5(md5) how to convert this passwords to bcrypt?&lt;br&gt;I creating Sinatra app whre i use this passwords with Warden.&lt;br&gt;  &lt;p&gt;&lt;/p&gt;  -- &lt;br /&gt; You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.&lt;br /&gt; To view this discussion on the web visit &lt;a href="https://groups.google.com/d/msg/rubyonrails-talk/-/KMxi3wD_tTsJ"&gt;https://groups.google.com/d/msg/rubyonrails-talk/-/KMxi3wD_tTsJ&lt;/a&gt;.&lt;br /&gt;  To post to this group, send email to rubyonrails-talk@googlegroups.com.&lt;br /&gt; To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.&lt;br /&gt;  For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.&lt;br /&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-7130981321355039549?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/7130981321355039549/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-how-to-migrate-from-md5-to-bcrypt.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/7130981321355039549'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/7130981321355039549'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-how-to-migrate-from-md5-to-bcrypt.html' title='[Rails] How to migrate from md5 to bcrypt?'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-5066147299066222360</id><published>2012-01-28T03:11:00.001-08:00</published><updated>2012-01-28T03:11:38.891-08:00</updated><title type='text'>Re: [Rails] Re: Polymorphic association</title><content type='html'>I mean that, and any other material you are using to learn. Read it properly and understand it. If there&amp;#39;s something you don&amp;#39;t understand, ask away!&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;To view this discussion on the web visit &lt;a href="https://groups.google.com/d/msg/rubyonrails-talk/-/87wdgHfirskJ"&gt;https://groups.google.com/d/msg/rubyonrails-talk/-/87wdgHfirskJ&lt;/a&gt;.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-5066147299066222360?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/5066147299066222360/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-re-polymorphic-association_28.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/5066147299066222360'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/5066147299066222360'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-re-polymorphic-association_28.html' title='Re: [Rails] Re: Polymorphic association'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-1368155770932322957</id><published>2012-01-28T02:05:00.001-08:00</published><updated>2012-01-28T02:05:38.979-08:00</updated><title type='text'>[Rails] Re: Problem with Asset Pipeline</title><content type='html'>Today I tried to replace jammit with asset pipeline in 3.1 again. This&lt;br&gt;time I got much further, the app could server JS and images correctly&lt;br&gt;from assets/ folder.&lt;p&gt;But I was not able to make the CSS right. I used stylesheet_link_tag,&lt;br&gt;but it kept serving CSS from /stylesheets/ instead of /assets/. Anyone&lt;br&gt;has an idea about this problem?&lt;p&gt;Thanks!&lt;p&gt;On Dec 21 2011, 5:20&amp;#160;am, Stewart &amp;lt;&lt;a href="mailto:stewart.mathe...@gmail.com"&gt;stewart.mathe...@gmail.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt; +1 to thisproblem. I updated from 3.0.0 followed the instructions on&lt;br&gt;&amp;gt; the rails guides page for updating and have the exact same issue. I&lt;br&gt;&amp;gt; tried discussing it in a ticket but have not herd anything back. Did&lt;br&gt;&amp;gt; you find a fix for this?&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; On Nov 22, 2:09&amp;#160;am, Ben &amp;lt;&lt;a href="mailto:benzhe...@gmail.com"&gt;benzhe...@gmail.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;gt; I had aproblemwhen I tried to upgrade from Rails 3.0 + Jammit to&lt;br&gt;&amp;gt; &amp;gt; Rails 3.1AssetPipeline. I created app/assets folder, under it I have&lt;br&gt;&amp;gt; &amp;gt; both javascripts/application.js.coffee and stylesheets/&lt;br&gt;&amp;gt; &amp;gt; application.css.scss. I included both usingstylesheet_link_tagand&lt;br&gt;&amp;gt; &amp;gt; javascript_include_tag, but it just could not load the CSS correctly.&lt;br&gt;&amp;gt; &amp;gt; The application keeps trying to load css from /stylesheets/&lt;br&gt;&amp;gt; &amp;gt; application.css which is a 404 error (the js loads fine from assets/&lt;br&gt;&amp;gt; &amp;gt; application.js). I am using the latest rails 3.1.1 and other&lt;br&gt;&amp;gt; &amp;gt; libraries. So what is theproblemhere?&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;gt; Thanks!&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-1368155770932322957?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/1368155770932322957/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-re-problem-with-asset-pipeline.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/1368155770932322957'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/1368155770932322957'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-re-problem-with-asset-pipeline.html' title='[Rails] Re: Problem with Asset Pipeline'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-5479168799183497276</id><published>2012-01-28T01:20:00.000-08:00</published><updated>2012-01-28T01:21:17.928-08:00</updated><title type='text'>Re: [Rails] password encryption is not working..</title><content type='html'>i think you should read this link for this problem :-&lt;br&gt;&lt;a href="http://ruby.railstutorial.org/chapters/modeling-and-viewing-users-two#sec:secure_passwords"&gt;http://ruby.railstutorial.org/chapters/modeling-and-viewing-users-two#sec:secure_passwords&lt;/a&gt;&lt;br&gt; &lt;br&gt;&lt;div class="gmail_quote"&gt;On Sat, Jan 28, 2012 at 2:21 PM, Colin Law &lt;span dir="ltr"&gt;&amp;lt;&lt;a href="mailto:clanlaw@googlemail.com"&gt;clanlaw@googlemail.com&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"&gt; &lt;div class="im"&gt;On 28 January 2012 07:45, uma ya &amp;lt;&lt;a href="mailto:lists@ruby-forum.com"&gt;lists@ruby-forum.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt; &amp;gt; I am using require &amp;#39;digest/sha1&amp;#39; to encrypt my password and save into&lt;br&gt; &amp;gt; database. During login it is showing the following error-&lt;br&gt; &amp;gt;&lt;br&gt; &amp;gt; undefined local variable or method `encrypted_password&amp;#39; for&lt;br&gt; &amp;gt; #&amp;lt;Signin:0x992c990&lt;br&gt; &lt;br&gt; &lt;/div&gt;You have tried to access a method encrypted_password on the Signin&lt;br&gt; class.  Either the signins table does not have a column of that name,&lt;br&gt; or you are calling encrypted_password on the wrong class type.&lt;br&gt; &lt;br&gt; Colin&lt;br&gt; &lt;div class="HOEnZb"&gt;&lt;div class="h5"&gt;&lt;br&gt; &amp;gt;&lt;br&gt; &amp;gt; code:&lt;br&gt; &amp;gt;&lt;br&gt; &amp;gt; before_save :encrypt_password&lt;br&gt; &amp;gt;&lt;br&gt; &amp;gt; def has_password?(submitted_password)&lt;br&gt; &amp;gt;  encrypted_password == encrypt(submitted_password)&lt;br&gt; &amp;gt; end&lt;br&gt; &amp;gt;&lt;br&gt; &amp;gt;  private&lt;br&gt; &amp;gt;&lt;br&gt; &amp;gt;     def encrypt_password&lt;br&gt; &amp;gt;       self.salt = make_salt unless has_password?(password)&lt;br&gt; &amp;gt;       self.encrypted_password = encrypt(password)&lt;br&gt; &amp;gt;     end&lt;br&gt; &amp;gt;&lt;br&gt; &amp;gt;     def encrypt(string)&lt;br&gt; &amp;gt;       secure_hash(&amp;quot;#{salt}--#{string}&amp;quot;)&lt;br&gt; &amp;gt;     end&lt;br&gt; &amp;gt;&lt;br&gt; &amp;gt;     def make_salt&lt;br&gt; &amp;gt;       secure_hash(&amp;quot;#{Time.now.utc}--#{password}&amp;quot;)&lt;br&gt; &amp;gt;     end&lt;br&gt; &amp;gt;&lt;br&gt; &amp;gt;     def secure_hash(string)&lt;br&gt; &amp;gt;       Digest::SHA2.hexdigest(string)&lt;br&gt; &amp;gt;     end&lt;br&gt; &amp;gt;&lt;br&gt; &amp;gt;&lt;br&gt; &amp;gt;&lt;br&gt; &amp;gt; Please help me dis !&lt;br&gt; &amp;gt;&lt;br&gt; &amp;gt; --&lt;br&gt; &amp;gt; Posted via &lt;a href="http://www.ruby-forum.com/" target="_blank"&gt;http://www.ruby-forum.com/&lt;/a&gt;.&lt;br&gt; &amp;gt;&lt;br&gt; &amp;gt; --&lt;br&gt; &amp;gt; You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt; &amp;gt; To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt; &amp;gt; To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt; &amp;gt; For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en" target="_blank"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;br&gt; &amp;gt;&lt;br&gt; &lt;br&gt; &lt;br&gt; &lt;br&gt; &lt;/div&gt;&lt;/div&gt;&lt;span class="HOEnZb"&gt;&lt;font color="#888888"&gt;--&lt;br&gt; &lt;a href="http://gplus.to/clanlaw" target="_blank"&gt;gplus.to/clanlaw&lt;/a&gt;&lt;br&gt; &lt;/font&gt;&lt;/span&gt;&lt;div class="HOEnZb"&gt;&lt;div class="h5"&gt;&lt;br&gt; --&lt;br&gt; You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt; To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt; To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt; For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en" target="_blank"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;br&gt; &lt;br&gt; &lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;  &lt;p&gt;&lt;/p&gt;  -- &lt;br /&gt; You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.&lt;br /&gt; To post to this group, send email to rubyonrails-talk@googlegroups.com.&lt;br /&gt; To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.&lt;br /&gt;  For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.&lt;br /&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-5479168799183497276?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/5479168799183497276/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-password-encryption-is-not_8748.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/5479168799183497276'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/5479168799183497276'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-password-encryption-is-not_8748.html' title='Re: [Rails] password encryption is not working..'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-4016604543939540430</id><published>2012-01-28T00:51:00.000-08:00</published><updated>2012-01-28T00:52:22.850-08:00</updated><title type='text'>Re: [Rails] password encryption is not working..</title><content type='html'>On 28 January 2012 07:45, uma ya &amp;lt;&lt;a href="mailto:lists@ruby-forum.com"&gt;lists@ruby-forum.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt; I am using require &amp;#39;digest/sha1&amp;#39; to encrypt my password and save into&lt;br&gt;&amp;gt; database. During login it is showing the following error-&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; undefined local variable or method `encrypted_password&amp;#39; for&lt;br&gt;&amp;gt; #&amp;lt;Signin:0x992c990&lt;p&gt;You have tried to access a method encrypted_password on the Signin&lt;br&gt;class.  Either the signins table does not have a column of that name,&lt;br&gt;or you are calling encrypted_password on the wrong class type.&lt;p&gt;Colin&lt;p&gt;&amp;gt;&lt;br&gt;&amp;gt; code:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; before_save :encrypt_password&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; def has_password?(submitted_password)&lt;br&gt;&amp;gt; &amp;#160;encrypted_password == encrypt(submitted_password)&lt;br&gt;&amp;gt; end&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;#160;private&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; def encrypt_password&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; &amp;#160; self.salt = make_salt unless has_password?(password)&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; &amp;#160; self.encrypted_password = encrypt(password)&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; end&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; def encrypt(string)&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; &amp;#160; secure_hash(&amp;quot;#{salt}--#{string}&amp;quot;)&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; end&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; def make_salt&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; &amp;#160; secure_hash(&amp;quot;#{Time.now.utc}--#{password}&amp;quot;)&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; end&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; def secure_hash(string)&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; &amp;#160; Digest::SHA2.hexdigest(string)&lt;br&gt;&amp;gt; &amp;#160; &amp;#160; end&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; Please help me dis !&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; --&lt;br&gt;&amp;gt; Posted via &lt;a href="http://www.ruby-forum.com/"&gt;http://www.ruby-forum.com/&lt;/a&gt;.&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; --&lt;br&gt;&amp;gt; You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;&amp;gt; To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;&amp;gt; To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;&amp;gt; For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;br&gt;&amp;gt;&lt;p&gt;&lt;p&gt;-- &lt;br&gt;&lt;a href="http://gplus.to/clanlaw"&gt;gplus.to/clanlaw&lt;/a&gt;&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-4016604543939540430?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/4016604543939540430/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-password-encryption-is-not_28.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/4016604543939540430'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/4016604543939540430'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-password-encryption-is-not_28.html' title='Re: [Rails] password encryption is not working..'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-7377131891447392316</id><published>2012-01-28T00:40:00.001-08:00</published><updated>2012-01-28T00:40:58.213-08:00</updated><title type='text'>Re: [Rails] ActionMailer and Ruby SMTP causing a segmentation fault!</title><content type='html'>On 27 January 2012 23:14, Don &amp;lt;&lt;a href="mailto:don.leatham@gmail.com"&gt;don.leatham@gmail.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&amp;gt; I just activated Devise&amp;#39; :confirmable option in my User model. &amp;#160;As Devise&lt;br&gt;&amp;gt; tries to send out the confirmation-link email I get a segmentation-fault&lt;br&gt;&amp;gt; error in Ruby&amp;#39;s SMTP library:&lt;br&gt;&amp;gt;&lt;br&gt;&amp;gt; ... lib/ruby/1.9.1/net/smtp.rb:583: [BUG] Segmentation fault&lt;p&gt;If you are using ruby 1.9.1 then upgrade to 1.9.2 (or 1.9.3 though&lt;br&gt;maybe it is still a bit new) or go back to 1.8.7&lt;br&gt;1.9.1 did not play well with Rails&lt;p&gt;Colin&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-7377131891447392316?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/7377131891447392316/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-actionmailer-and-ruby-smtp.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/7377131891447392316'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/7377131891447392316'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-actionmailer-and-ruby-smtp.html' title='Re: [Rails] ActionMailer and Ruby SMTP causing a segmentation fault!'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-1857681101440538203</id><published>2012-01-27T23:56:00.000-08:00</published><updated>2012-01-27T23:57:00.532-08:00</updated><title type='text'>Re: [Rails] password encryption is not working..</title><content type='html'>you are not declared &amp;#39;encrypted_password&amp;#39;&amp;#39; variable. so first declared that variable in model and use it.&lt;br&gt;&lt;br&gt;&lt;div class="gmail_quote"&gt;On Sat, Jan 28, 2012 at 1:15 PM, uma ya &lt;span dir="ltr"&gt;&amp;lt;&lt;a href="mailto:lists@ruby-forum.com"&gt;lists@ruby-forum.com&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt; &lt;blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"&gt;I am using require &amp;#39;digest/sha1&amp;#39; to encrypt my password and save into&lt;br&gt; database. During login it is showing the following error-&lt;br&gt; &lt;br&gt; undefined local variable or method `encrypted_password&amp;#39; for&lt;br&gt; #&amp;lt;Signin:0x992c990&lt;br&gt; &lt;br&gt; code:&lt;br&gt; &lt;br&gt; before_save :encrypt_password&lt;br&gt; &lt;br&gt; def has_password?(submitted_password)&lt;br&gt;   encrypted_password == encrypt(submitted_password)&lt;br&gt; end&lt;br&gt; &lt;br&gt;   private&lt;br&gt; &lt;br&gt;      def encrypt_password&lt;br&gt;        self.salt = make_salt unless has_password?(password)&lt;br&gt;        self.encrypted_password = encrypt(password)&lt;br&gt;      end&lt;br&gt; &lt;br&gt;      def encrypt(string)&lt;br&gt;        secure_hash(&amp;quot;#{salt}--#{string}&amp;quot;)&lt;br&gt;      end&lt;br&gt; &lt;br&gt;      def make_salt&lt;br&gt;        secure_hash(&amp;quot;#{Time.now.utc}--#{password}&amp;quot;)&lt;br&gt;      end&lt;br&gt; &lt;br&gt;      def secure_hash(string)&lt;br&gt;        Digest::SHA2.hexdigest(string)&lt;br&gt;      end&lt;br&gt; &lt;br&gt; &lt;br&gt; &lt;br&gt; Please help me dis !&lt;br&gt; &lt;span class="HOEnZb"&gt;&lt;font color="#888888"&gt;&lt;br&gt; --&lt;br&gt; Posted via &lt;a href="http://www.ruby-forum.com/" target="_blank"&gt;http://www.ruby-forum.com/&lt;/a&gt;.&lt;br&gt; &lt;br&gt; --&lt;br&gt; You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt; To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt; To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt; For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en" target="_blank"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;br&gt; &lt;br&gt; &lt;/font&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;  &lt;p&gt;&lt;/p&gt;  -- &lt;br /&gt; You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.&lt;br /&gt; To post to this group, send email to rubyonrails-talk@googlegroups.com.&lt;br /&gt; To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.&lt;br /&gt;  For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.&lt;br /&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-1857681101440538203?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/1857681101440538203/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-password-encryption-is-not.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/1857681101440538203'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/1857681101440538203'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-password-encryption-is-not.html' title='Re: [Rails] password encryption is not working..'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-8070455265529325763</id><published>2012-01-27T23:45:00.001-08:00</published><updated>2012-01-27T23:45:34.508-08:00</updated><title type='text'>[Rails] password encryption is not working..</title><content type='html'>I am using require &amp;#39;digest/sha1&amp;#39; to encrypt my password and save into&lt;br&gt;database. During login it is showing the following error-&lt;p&gt;undefined local variable or method `encrypted_password&amp;#39; for&lt;br&gt;#&amp;lt;Signin:0x992c990&lt;p&gt;code:&lt;p&gt;before_save :encrypt_password&lt;p&gt;def has_password?(submitted_password)&lt;br&gt;  encrypted_password == encrypt(submitted_password)&lt;br&gt;end&lt;p&gt;  private&lt;p&gt;     def encrypt_password&lt;br&gt;       self.salt = make_salt unless has_password?(password)&lt;br&gt;       self.encrypted_password = encrypt(password)&lt;br&gt;     end&lt;p&gt;     def encrypt(string)&lt;br&gt;       secure_hash(&amp;quot;#{salt}--#{string}&amp;quot;)&lt;br&gt;     end&lt;p&gt;     def make_salt&lt;br&gt;       secure_hash(&amp;quot;#{Time.now.utc}--#{password}&amp;quot;)&lt;br&gt;     end&lt;p&gt;     def secure_hash(string)&lt;br&gt;       Digest::SHA2.hexdigest(string)&lt;br&gt;     end&lt;p&gt;&lt;p&gt;Please help me dis !&lt;p&gt;-- &lt;br&gt;Posted via &lt;a href="http://www.ruby-forum.com/"&gt;http://www.ruby-forum.com/&lt;/a&gt;.&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-8070455265529325763?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/8070455265529325763/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-password-encryption-is-not.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/8070455265529325763'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/8070455265529325763'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-password-encryption-is-not.html' title='[Rails] password encryption is not working..'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-4454803685407206982</id><published>2012-01-27T20:14:00.001-08:00</published><updated>2012-01-27T20:14:57.877-08:00</updated><title type='text'>[Rails] Re: Redirecting to create new page with input</title><content type='html'>Thanks for your explanation.  It is exactly what I wanted.&lt;p&gt;in search.html.erb, I added&lt;p&gt;  &amp;lt;%= link_to(&amp;#39;RegisterThisMovie&amp;#39;, {:controller =&amp;gt; &amp;#39;video&amp;#39;, :action =&amp;gt; &lt;br&gt;&amp;#39;new&amp;#39;, :url =&amp;gt; y }) %&amp;gt;&lt;p&gt;&amp;#39;y&amp;#39; contains the url of the movie after executing the search.&lt;p&gt;in video_controller.rb, I added&lt;p&gt;  def new&lt;br&gt;    @video = Video.new&lt;br&gt;    @video.url = params[:url]                 #&amp;lt;---HERE&lt;br&gt;    respond_to do |format|&lt;br&gt;      format.html # new.html.erb&lt;br&gt;      format.json { render json: @video }&lt;br&gt;    end&lt;br&gt;  end&lt;p&gt;then it worked fine!&lt;br&gt;Thanks for your help.&lt;p&gt;soichi&lt;p&gt;-- &lt;br&gt;Posted via &lt;a href="http://www.ruby-forum.com/"&gt;http://www.ruby-forum.com/&lt;/a&gt;.&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-4454803685407206982?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/4454803685407206982/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-re-redirecting-to-create-new-page.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/4454803685407206982'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/4454803685407206982'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-re-redirecting-to-create-new-page.html' title='[Rails] Re: Redirecting to create new page with input'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-2275773275969445469</id><published>2012-01-27T20:10:00.001-08:00</published><updated>2012-01-27T20:10:37.887-08:00</updated><title type='text'>[Rails] Re: Skipping the First Line when reading in a text file</title><content type='html'>Hai!&lt;p&gt;  That is depending upon gem. if you use csv then follow about steps and &lt;br&gt;if you use fastercsv then follows this link&lt;p&gt; &lt;a href="http://fastercsv.rubyforge.org/"&gt;http://fastercsv.rubyforge.org/&lt;/a&gt;&lt;p&gt;Bye:)&lt;br&gt;bdeveloper01&lt;p&gt;-- &lt;br&gt;Posted via &lt;a href="http://www.ruby-forum.com/"&gt;http://www.ruby-forum.com/&lt;/a&gt;.&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-2275773275969445469?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/2275773275969445469/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-re-skipping-first-line-when_27.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/2275773275969445469'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/2275773275969445469'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-re-skipping-first-line-when_27.html' title='[Rails] Re: Skipping the First Line when reading in a text file'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-5360241101895706569</id><published>2012-01-27T17:22:00.001-08:00</published><updated>2012-01-27T17:22:27.040-08:00</updated><title type='text'>Re: [Rails] Re: Polymorphic association</title><content type='html'>When you say documentation you mean the Rails Guide?&lt;br&gt;&lt;br&gt;&lt;div class="gmail_quote"&gt;On Fri, Jan 27, 2012 at 7:37 PM, Mohamad El-Husseini &lt;span dir="ltr"&gt;&amp;lt;&lt;a href="mailto:husseini.mel@gmail.com"&gt;husseini.mel@gmail.com&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt; &lt;blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"&gt;I&amp;#39;ll second what Colin said. I&amp;#39;ll also emphasize the need to &amp;quot;hold your horses&amp;quot;. There&amp;#39;s nothing more frustrating than having to wade through a ton of stuff before you start building something. But it&amp;#39;s absolutely worth it, and it will save you a ton of time in the long run.&lt;br&gt; &lt;br&gt;If I had spent 10% of my time reading documentation, I would have saved the other 90% that I wasted editing lines of code, scanning hurriedly over tutorials, asking a ton of questions, etc... it really is true. It&amp;#39;s frustrating at first, but it pays off and saves you a ton of time in the long term.&lt;div class="im"&gt; &lt;br&gt;  &lt;p&gt;&lt;/p&gt;  -- &lt;br&gt; You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;&lt;/div&gt; To view this discussion on the web visit &lt;a href="https://groups.google.com/d/msg/rubyonrails-talk/-/gpfZEWYqkawJ" target="_blank"&gt;https://groups.google.com/d/msg/rubyonrails-talk/-/gpfZEWYqkawJ&lt;/a&gt;.&lt;div class="HOEnZb"&gt;&lt;div class="h5"&gt; &lt;br&gt;  To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com" target="_blank"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt; To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com" target="_blank"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;  For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en" target="_blank"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;br&gt;   &lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;  &lt;p&gt;&lt;/p&gt;  -- &lt;br /&gt; You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.&lt;br /&gt; To post to this group, send email to rubyonrails-talk@googlegroups.com.&lt;br /&gt; To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.&lt;br /&gt;  For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.&lt;br /&gt;   &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-5360241101895706569?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/5360241101895706569/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-re-polymorphic-association_4643.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/5360241101895706569'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/5360241101895706569'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/re-rails-re-polymorphic-association_4643.html' title='Re: [Rails] Re: Polymorphic association'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-1755079209454159062</id><published>2012-01-27T15:46:00.000-08:00</published><updated>2012-01-27T15:47:12.437-08:00</updated><title type='text'>[Rails] Warden - how to setup custom encryptor</title><content type='html'>I`m writting sinatra app and i would like to setup encryption in Warden&lt;br&gt;like i did it in devise when i used Rails.&lt;p&gt;  module Devise&lt;br&gt;    module Encryptors&lt;br&gt;      class Md5 &amp;lt; Base&lt;br&gt;        def self.digest(password, stretches, salt, pepper)&lt;br&gt;          str = [password].flatten.compact.join&lt;br&gt;          Digest::MD5.hexdigest(Digest::MD5.hexdigest(str))&lt;br&gt;        end&lt;br&gt;      end&lt;br&gt;    end&lt;br&gt;  end&lt;p&gt;Where I can setup this module ??&lt;br&gt;How to set Warden to use MD5 encryption?&lt;p&gt;-- &lt;br&gt;Posted via &lt;a href="http://www.ruby-forum.com/"&gt;http://www.ruby-forum.com/&lt;/a&gt;.&lt;p&gt;-- &lt;br&gt;You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;To post to this group, send email to &lt;a href="mailto:rubyonrails-talk@googlegroups.com"&gt;rubyonrails-talk@googlegroups.com&lt;/a&gt;.&lt;br&gt;To unsubscribe from this group, send email to &lt;a href="mailto:rubyonrails-talk%2Bunsubscribe@googlegroups.com"&gt;rubyonrails-talk+unsubscribe@googlegroups.com&lt;/a&gt;.&lt;br&gt;For more options, visit this group at &lt;a href="http://groups.google.com/group/rubyonrails-talk?hl=en"&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4056961807189001841-1755079209454159062?l=netrubyonrails.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://netrubyonrails.blogspot.com/feeds/1755079209454159062/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-warden-how-to-setup-custom.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/1755079209454159062'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4056961807189001841/posts/default/1755079209454159062'/><link rel='alternate' type='text/html' href='http://netrubyonrails.blogspot.com/2012/01/rails-warden-how-to-setup-custom.html' title='[Rails] Warden - how to setup custom encryptor'/><author><name>Ruby on Rails</name><uri>http://www.blogger.com/profile/14748132668734760482</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4056961807189001841.post-4885120349826932120</id><published>2012-01-27T15:14:00.001-08:00</published><updated>2012-01-27T15:14:34.069-08:00</updated><title type='text'>[Rails] ActionMailer and Ruby SMTP causing a segmentation fault!</title><content type='html'>I just activated Devise' :confirmable option in my User model. &amp;nbsp;As Devise tries to send out the confirmation-link email I get a segmentation-fault error in Ruby's SMTP library:&amp;nbsp;&lt;br&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;pre class="lang-rb prettyprint" style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; overflow-x: auto; overflow-y: auto; width: auto; max-height: 600px; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-position: initial initial; background-repeat: initial initial; "&gt;&lt;code style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(238, 238, 238); font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; background-position: initial initial; background-repeat: initial initial; "&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;...&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt; lib&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;/&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;ruby&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;/&lt;/span&gt;&lt;span class="lit" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(128, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;1.9&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;.&lt;/span&gt;&lt;span class="lit" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(128, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;1&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;/&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;net&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;/&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;smtp&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;.&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;rb&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;:&lt;/span&gt;&lt;span class="lit" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(128, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;583&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;:&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt; &lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;[&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;BUG&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;]&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt; &lt;/span&gt;&lt;span class="typ" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(43, 145, 175); background-position: initial initial; background-repeat: initial initial; "&gt;Segmentation&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt; fault&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); clear: both; word-wrap: break-word; color: rgb(0, 0, 0); font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-position: initial initial; background-repeat: initial initial; "&gt;My&amp;nbsp;&lt;code style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 5px; padding-bottom: 1px; padding-left: 5px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(238, 238, 238); font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; background-position: initial initial; background-repeat: initial initial; "&gt;config/environments/development.rb&lt;/code&gt;&amp;nbsp;file has the following:&lt;/p&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); clear: both; word-wrap: break-word; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "&gt;&lt;font class="Apple-style-span" face="Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif"&gt;&lt;span class="Apple-style-span" style="white-space: pre; "&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;pre class="lang-rb prettyprint" style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; overflow-x: auto; overflow-y: auto; width: auto; max-height: 600px; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-position: initial initial; background-repeat: initial initial; "&gt;&lt;font class="Apple-style-span" face="Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif"&gt;&lt;code style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(238, 238, 238); font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; background-position: initial initial; background-repeat: initial initial; "&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;&amp;nbsp; config&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;.&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;action_mailer&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;.&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;delivery_method &lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;=&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt; &lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;:&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;smtp&lt;br&gt;&amp;nbsp; config&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;.&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;action_mailer&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;.&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;raise_delivery_errors &lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;=&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt; &lt;/span&gt;&lt;span class="kwd" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 139); background-position: initial initial; background-repeat: initial initial; "&gt;true&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;&lt;br&gt;&amp;nbsp; config&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;.&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;action_mailer&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;.&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;default_url_options &lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;=&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt; &lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;{&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt; &lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;:&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;host &lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;=&amp;gt;&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt; &lt;/span&gt;&lt;span class="str" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(128, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;'localhost:3000'&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt; &lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/font&gt;&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none; "&gt;My&amp;nbsp;&lt;/span&gt;&lt;code style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 5px; padding-bottom: 1px; padding-left: 5px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-position: initial initial; background-repeat: initial initial; "&gt;/config/initializers/setup_mail.rb&lt;/code&gt;&lt;span style="color: rgb(0, 0, 0); font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none; "&gt;&amp;nbsp;file:&lt;/span&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;pre class="lang-rb prettyprint" style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; overflow-x: auto; overflow-y: auto; width: auto; max-height: 600px; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-position: initial initial; background-repeat: initial initial; "&gt;&lt;code style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(238, 238, 238); font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; background-position: initial initial; background-repeat: initial initial; "&gt;&lt;span class="typ" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(43, 145, 175); background-position: initial initial; background-repeat: initial initial; "&gt;ActionMailer&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;::&lt;/span&gt;&lt;span class="typ" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(43, 145, 175); background-position: initial initial; background-repeat: initial initial; "&gt;Base&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;.&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;smtp_settings &lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;=&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt; &lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;{&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;&lt;br&gt;&amp;nbsp; &lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;:&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;address &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;=&amp;gt;&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt; &lt;/span&gt;&lt;span class="str" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(128, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;"smtp.gmail.com"&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;,&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;&lt;br&gt;&amp;nbsp; &lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;:&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;port &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;=&amp;gt;&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt; &lt;/span&gt;&lt;span class="lit" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(128, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;587&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;,&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;&lt;br&gt;&amp;nbsp; &lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;:&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;domain &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;=&amp;gt;&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt; &lt;/span&gt;&lt;span class="str" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(128, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;"mydomain.com"&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;,&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;&lt;br&gt;&amp;nbsp; &lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;:&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;user_name &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;=&amp;gt;&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt; &lt;/span&gt;&lt;span class="str" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(128, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;"[redacted]"&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;,&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;&lt;br&gt;&amp;nbsp; &lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;:&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;password &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;=&amp;gt;&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt; &lt;/span&gt;&lt;span class="str" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(128, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;"[redacted]"&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;,&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;&lt;br&gt;&amp;nbsp; &lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;:&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;authentication &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;=&amp;gt;&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt; &lt;/span&gt;&lt;span class="str" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(128, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;"plain"&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;,&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;&lt;br&gt;&amp;nbsp; &lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;:&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;enable_starttls_auto &lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;=&amp;gt;&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt; &lt;/span&gt;&lt;span class="kwd" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 139); background-position: initial initial; background-repeat: initial initial; "&gt;true&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;&lt;br&gt;&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;}&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;&lt;br&gt;&lt;/span&gt;&lt;span class="typ" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(43, 145, 175); background-position: initial initial; background-repeat: initial initial; "&gt;ActionMailer&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;::&lt;/span&gt;&lt;span class="typ" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(43, 145, 175); background-position: initial initial; background-repeat: initial initial; "&gt;Base&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;.&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;default_url_options&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;[:&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;host&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;]&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt; &lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;=&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt; &lt;/span&gt;&lt;span class="str" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(128, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;"localhost:3000"&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre class="lang-rb prettyprint" style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; overflow-x: auto; overflow-y: auto; width: auto; max-height: 600px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "&gt;&lt;font class="Apple-style-span" color="#800000"&gt;&lt;span class="Apple-style-span" style="color: rgb(34, 34, 34); font-family: Arial, Helvetica, sans-serif; line-height: normal; white-space: normal; "&gt;The relevant code in smtp.rb &amp;nbsp; are these two methods:&lt;/span&gt;&lt;br&gt;&lt;/font&gt;&lt;/pre&gt;&lt;pre class="lang-rb prettyprint" style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; overflow-x: auto; overflow-y: auto; width: auto; max-height: 600px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "&gt;&lt;font class="Apple-style-span" color="#800000"&gt;&lt;span class="Apple-style-span" style="color: rgb(34, 34, 34); font-family: Arial, Helvetica, sans-serif; line-height: normal; white-space: normal; "&gt;&lt;pre class="lang-rb prettyprint" style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; overflow-x: auto; overflow-y: auto; width: auto; max-height: 600px; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-position: initial initial; background-repeat: initial initial; "&gt;&lt;code style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(238, 238, 238); font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; background-position: initial initial; background-repeat: initial initial; "&gt;&lt;span class="kwd" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 139); background-position: initial initial; background-repeat: initial initial; "&gt;def&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt; ssl_socket&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;(&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;socket&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;,&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt; context&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;)&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;&lt;br&gt;&amp;nbsp; &lt;/span&gt;&lt;span class="typ" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(43, 145, 175); background-position: initial initial; background-repeat: initial initial; "&gt;OpenSSL&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;::&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;SSL&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;::&lt;/span&gt;&lt;span class="typ" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(43, 145, 175); background-position: initial initial; background-repeat: initial initial; "&gt;SSLSocket&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;.&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;new socket&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;,&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt; context&lt;br&gt;&lt;/span&gt;&lt;span class="kwd" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 139); background-position: initial initial; background-repeat: initial initial; "&gt;end&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;&lt;br&gt;&lt;br&gt;&lt;/span&gt;&lt;span class="kwd" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 139); background-position: initial initial; background-repeat: initial initial; "&gt;def&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt; tlsconnect&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;(&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;s&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;)&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;&lt;br&gt;&amp;nbsp; verified &lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;=&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt; &lt;/span&gt;&lt;span class="kwd" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 139); background-position: initial initial; background-repeat: initial initial; "&gt;false&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;&lt;br&gt;&amp;nbsp; s &lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;=&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt; ssl_socket&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;(&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;s&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;,&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt; &lt;/span&gt;&lt;span class="lit" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(128, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;@ssl_context&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;)&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;&lt;br&gt;&amp;nbsp; logging &lt;/span&gt;&lt;span class="str" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(128, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;"TLS connection started"&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;&lt;br&gt;&amp;nbsp; s&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;.&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;sync_close &lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;=&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt; &lt;/span&gt;&lt;span class="kwd" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 139); background-position: initial initial; background-repeat: initial initial; "&gt;true&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;&lt;br&gt;&amp;nbsp; s&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;.&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;connect &amp;nbsp;&lt;/span&gt;&lt;span class="com" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: gray; background-position: initial initial; background-repeat: initial initial; "&gt;# THIS IS LINE 583&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;&lt;br&gt;&amp;nbsp; &lt;/span&gt;&lt;span class="kwd" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 139); background-position: initial initial; background-repeat: initial initial; "&gt;if&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt; &lt;/span&gt;&lt;span class="lit" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(128, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;@ssl_context&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;.&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;verify_mode &lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;!=&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt; &lt;/span&gt;&lt;span class="typ" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(43, 145, 175); background-position: initial initial; background-repeat: initial initial; "&gt;OpenSSL&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;::&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;SSL&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;::&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;VERIFY_NONE&lt;br&gt;&amp;nbsp; &amp;nbsp; s&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;.&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;post_connection_check&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;(&lt;/span&gt;&lt;span class="lit" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(128, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;@address&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;)&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;&lt;br&gt;&amp;nbsp; &lt;/span&gt;&lt;span class="kwd" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 139); background-position: initial initial; background-repeat: initial initial; "&gt;end&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;&lt;br&gt;&amp;nbsp; verified &lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;=&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt; &lt;/span&gt;&lt;span class="kwd" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 139); background-position: initial initial; background-repeat: initial initial; "&gt;true&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;&lt;br&gt;&amp;nbsp; s&lt;br&gt;&lt;/span&gt;&lt;span class="kwd" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 139); background-position: initial initial; background-repeat: initial initial; "&gt;ensure&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;&lt;br&gt;&amp;nbsp; s&lt;/span&gt;&lt;span class="pun" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;.&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt;close &lt;/span&gt;&lt;span class="kwd" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 139); background-position: initial initial; background-repeat: initial initial; "&gt;unless&lt;/span&gt;&lt;span class="pln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 0); background-position: initial initial; background-repeat: initial initial; "&gt; verified&lt;br&gt;&lt;/span&gt;&lt;span class="kwd" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(0, 0, 139); background-position: initial initial; background-repeat: initial initial; "&gt;end&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/span&gt;&lt;/font&gt;&lt;/pre&gt;&lt;pre class="lang-rb prettyprint" style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; overflow-x: auto; overflow-y: auto; width: auto; max-height: 600px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "&gt;&lt;font class="Apple-style-span" color="#800000"&gt;&lt;span class="Apple-style-span" style="color: rgb(34, 34, 34); font-family: Arial, Helvetica, sans-serif; line-height: normal; white-space: normal; "&gt;I've tried setting&amp;nbsp;&lt;/span&gt;&lt;/font&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 0, 0); "&gt;&lt;code style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px;
