<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-13830</id>
	<title>Nabble - Ruby on Rails</title>
	<updated>2009-11-27T01:45:47Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/Ruby-on-Rails-f13830.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Ruby-on-Rails-f13830.html" />
	<subtitle type="html">Rails is a full-stack framework for developing database-backed web applications according to the Model-View-Control pattern. From the Ajax in the view, to the request and response in the controller, to the domain model wrapping the database, Rails gives you a pure-Ruby development environment. To go live, all you need to add is a database and a web server. Ruby on Rails home is &lt;a href=&quot;http://rubyonrails.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26540018</id>
	<title>Re: Problème de scaffold</title>
	<published>2009-11-27T01:45:47Z</published>
	<updated>2009-11-27T01:45:47Z</updated>
	<author>
		<name>Bobo Bobo-2</name>
	</author>
	<content type="html">&lt;br&gt;Michel Belleville &amp;gt;
&lt;br&gt;&lt;br&gt;Changer encore de versio ne résoudra pas mon problème. Je serai même 
&lt;br&gt;plutôt tenté de revenir à la version 1.2 pour qu'enfin ce qui est dit 
&lt;br&gt;dans mon bouquin fonctionne.
&lt;br&gt;&lt;br&gt;Stephane de la Linuxerie &amp;gt;
&lt;br&gt;&lt;br&gt;Avec &amp;nbsp;le rake db:create j'y ai cru. Mais non :-( Sur cette instruction 
&lt;br&gt;j'ai droit à un &amp;quot;depot_development already exists&amp;quot;. La table est bien 
&lt;br&gt;là, mais toujours sans mes champs. Et c'est toujours le cas après le 
&lt;br&gt;migrate.
&lt;br&gt;-- 
&lt;br&gt;Posted via &lt;a href=&quot;http://www.ruby-forum.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ruby-forum.com/&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;--~--~---------~--~----~------------~-------~--~----~
&lt;br&gt;Vous avez reçu ce message, car vous êtes abonné au groupe &amp;quot;Railsfrance&amp;quot; de Google Groups.
&lt;br&gt;Pour transmettre des messages à ce groupe, envoyez un e-mail à l'adresse &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26540018&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;railsfrance@...&lt;/a&gt;
&lt;br&gt;Pour résilier votre abonnement envoyez un e-mail à l'adresse &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26540018&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;railsfrance-unsubscribe@...&lt;/a&gt;
&lt;br&gt;-~----------~----~----~----~------~----~------~--~---
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/RailsFrance-f21823.html&quot; embed=&quot;fixTarget[21823]&quot; target=&quot;_top&quot; &gt;RailsFrance&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Probl%C3%A8me-de-scaffold-tp26538773p26540018.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26540016</id>
	<title>Re: Not able to run webrick server in windows</title>
	<published>2009-11-27T01:45:18Z</published>
	<updated>2009-11-27T01:45:18Z</updated>
	<author>
		<name>abhisheksreepal</name>
	</author>
	<content type="html">&lt;div class=&quot;gmail_quote&quot;&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;&lt;div&gt;&lt;div class=&quot;h5&quot;&gt;Hi Darian,&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Thanks for the solution.&lt;/div&gt;
&lt;div&gt;It worked.&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;/div&gt;&lt;br&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;--&lt;/p&gt;

You received this message because you are subscribed to the Google Groups &quot;Ruby on Rails: Talk&quot; group.&lt;br /&gt;

To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26540016&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk@...&lt;/a&gt;.&lt;br /&gt;

To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26540016&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk+unsubscribe@...&lt;/a&gt;.&lt;br /&gt;

For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.&lt;br /&gt;

&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/RubyOnRails-Users-f13831.html&quot; embed=&quot;fixTarget[13831]&quot; target=&quot;_top&quot; &gt;RubyOnRails Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Not-able-to-run-webrick-server-in-windows-tp26517182p26540016.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26539950</id>
	<title>Re: Design</title>
	<published>2009-11-27T01:38:45Z</published>
	<updated>2009-11-27T01:38:45Z</updated>
	<author>
		<name>Kemal Pince-2</name>
	</author>
	<content type="html">If you want to have fancy looking web pages (and customers do, by the way) it takes too long to get it together with a text editor.&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Fri, Nov 27, 2009 at 8:53 AM, Hassan Schroeder &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26539950&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;hassan.schroeder@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;&lt;div class=&quot;im&quot;&gt;On Thu, Nov 26, 2009 at 10:36 AM, Kemal Pince &amp;lt;&lt;a href=&quot;http://rails.kp&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;rails.kp&lt;/a&gt;@&lt;a href=&quot;http://gmail.com&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;gmail.com&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;

&lt;br&gt;
&amp;gt; I wonder what you guys out there are using to generate the extra html and&lt;br&gt;
&amp;gt; css to make your web pages look great once you have the backbone of the app&lt;br&gt;
&amp;gt; up and running with RoR ?&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;Uh, a &amp;quot;text editor&amp;quot;?  :-)&lt;br&gt;
&lt;br&gt;
--&lt;br&gt;
Hassan Schroeder ------------------------ &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26539950&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;hassan.schroeder@...&lt;/a&gt;&lt;br&gt;
twitter: @hassan&lt;br&gt;
&lt;font color=&quot;#888888&quot;&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=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26539950&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk@...&lt;/a&gt;.&lt;br&gt;
To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26539950&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk%2Bunsubscribe@...&lt;/a&gt;.&lt;br&gt;
For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/rubyonrails-talk?hl=en&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/font&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;--&lt;/p&gt;

You received this message because you are subscribed to the Google Groups &quot;Ruby on Rails: Talk&quot; group.&lt;br /&gt;

To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26539950&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk@...&lt;/a&gt;.&lt;br /&gt;

To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26539950&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk+unsubscribe@...&lt;/a&gt;.&lt;br /&gt;

For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.&lt;br /&gt;

&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/RubyOnRails-Users-f13831.html&quot; embed=&quot;fixTarget[13831]&quot; target=&quot;_top&quot; &gt;RubyOnRails Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Design-tp26533423p26539950.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26539771</id>
	<title>Re: Problème de scaffold</title>
	<published>2009-11-27T01:23:17Z</published>
	<updated>2009-11-27T01:23:17Z</updated>
	<author>
		<name>Michel Belleville</name>
	</author>
	<content type="html">&lt;div class=&quot;gmail_quote&quot;&gt;2009/11/27 Bobo Bobo &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26539771&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;list-incoming@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;

&lt;div class=&quot;im&quot;&gt;&lt;br&gt;
Comment est déclaré le modèle Product ?&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;Je vois ca où ?&lt;br&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;Dans la modèle Product (app/models/product.rb)&lt;br&gt; &lt;/div&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;

&lt;div class=&quot;im&quot;&gt;
Est-ce que tu as vérifié la table dans la base de données ?&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;Bonne pioche ! Hormis un champ id la table est vide. Le scaffold puis le&lt;br&gt;
migrate ne devait-il pas me généner les champs ? Et plus largement,&lt;br&gt;
quelle est la procédure standard d&amp;#39;utilisation du scaffold en rails 2.0&lt;br&gt;
? Il me semblait pourtant l&amp;#39;avoir suivi...&lt;br&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;En fait à ta place je commencerais surtoout par utiliser une version de Rails à jour, la 2.0 date quand même...&lt;br&gt;&lt;br&gt;Actuellement on est passé à la 2.3.5, et il y a plein de bonnes choses dedans.&lt;br&gt;

&lt;/div&gt;&lt;/div&gt;&lt;br clear=&quot;all&quot;&gt;Michel Belleville&lt;br&gt;&lt;br&gt;
--~--~---------~--~----~------------~-------~--~----~&lt;br&gt;
Vous avez reçu ce message, car vous êtes abonné au groupe &amp;quot;Railsfrance&amp;quot; de Google Groups.
 &lt;br&gt; Pour transmettre des messages à ce groupe, envoyez un e-mail à l'adresse &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26539771&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;railsfrance@...&lt;/a&gt;
 &lt;br&gt; Pour résilier votre abonnement envoyez un e-mail à l'adresse &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26539771&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;railsfrance-unsubscribe@...&lt;/a&gt;&lt;br&gt;
-~----------~----~----~----~------~----~------~--~---&lt;br&gt;
&lt;br&gt;
&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/RailsFrance-f21823.html&quot; embed=&quot;fixTarget[21823]&quot; target=&quot;_top&quot; &gt;RailsFrance&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Probl%C3%A8me-de-scaffold-tp26538773p26539771.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26539744</id>
	<title>Re: Problème de scaffold</title>
	<published>2009-11-27T01:20:50Z</published>
	<updated>2009-11-27T01:20:50Z</updated>
	<author>
		<name>cyril mougel</name>
	</author>
	<content type="html">&lt;br&gt;Bobo Bobo a écrit :
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Comment est déclaré le modèle Product ?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Je vois ca où ?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Est-ce que tu as vérifié la table dans la base de données ?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Bonne pioche ! Hormis un champ id la table est vide. Le scaffold puis le 
&lt;br&gt;&amp;gt; migrate ne devait-il pas me généner les champs ? Et plus largement, 
&lt;br&gt;&amp;gt; quelle est la procédure standard d'utilisation du scaffold en rails 2.0 
&lt;br&gt;&amp;gt; ? Il me semblait pourtant l'avoir suivi...
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;le rake db:migrate devrait effectivement te remplir la table
&lt;br&gt;correctement. Je te conseille de drop la table et relancer la migration
&lt;br&gt;pour voir si le problème persiste.
&lt;br&gt;&lt;br&gt;La procédure d'utilisation du scaffold est simple
&lt;br&gt;1) tu le génères
&lt;br&gt;2) tu l'enlève
&lt;br&gt;3) tu écris comme tu préfères.
&lt;br&gt;&lt;br&gt;Personnellement, je n'utilise les scaffold que pour me créer les
&lt;br&gt;fichiers avec les bon entente.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Cyril Mougel
&lt;br&gt;&lt;a href=&quot;http://blog.shingara.fr/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://blog.shingara.fr/&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;--~--~---------~--~----~------------~-------~--~----~
&lt;br&gt;Vous avez reçu ce message, car vous êtes abonné au groupe &amp;quot;Railsfrance&amp;quot; de Google Groups.
&lt;br&gt;Pour transmettre des messages à ce groupe, envoyez un e-mail à l'adresse &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26539744&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;railsfrance@...&lt;/a&gt;
&lt;br&gt;Pour résilier votre abonnement envoyez un e-mail à l'adresse &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26539744&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;railsfrance-unsubscribe@...&lt;/a&gt;
&lt;br&gt;-~----------~----~----~----~------~----~------~--~---
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/RailsFrance-f21823.html&quot; embed=&quot;fixTarget[21823]&quot; target=&quot;_top&quot; &gt;RailsFrance&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Probl%C3%A8me-de-scaffold-tp26538773p26539744.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26539692</id>
	<title>Re: Problème de scaffold</title>
	<published>2009-11-27T01:16:19Z</published>
	<updated>2009-11-27T01:16:19Z</updated>
	<author>
		<name>Bobo Bobo-2</name>
	</author>
	<content type="html">&lt;br&gt;Comment est déclaré le modèle Product ?
&lt;br&gt;&lt;br&gt;Je vois ca où ?
&lt;br&gt;&lt;br&gt;Est-ce que tu as vérifié la table dans la base de données ?
&lt;br&gt;&lt;br&gt;Bonne pioche ! Hormis un champ id la table est vide. Le scaffold puis le 
&lt;br&gt;migrate ne devait-il pas me généner les champs ? Et plus largement, 
&lt;br&gt;quelle est la procédure standard d'utilisation du scaffold en rails 2.0 
&lt;br&gt;? Il me semblait pourtant l'avoir suivi...
&lt;br&gt;-- 
&lt;br&gt;Posted via &lt;a href=&quot;http://www.ruby-forum.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ruby-forum.com/&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;--~--~---------~--~----~------------~-------~--~----~
&lt;br&gt;Vous avez reçu ce message, car vous êtes abonné au groupe &amp;quot;Railsfrance&amp;quot; de Google Groups.
&lt;br&gt;Pour transmettre des messages à ce groupe, envoyez un e-mail à l'adresse &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26539692&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;railsfrance@...&lt;/a&gt;
&lt;br&gt;Pour résilier votre abonnement envoyez un e-mail à l'adresse &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26539692&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;railsfrance-unsubscribe@...&lt;/a&gt;
&lt;br&gt;-~----------~----~----~----~------~----~------~--~---
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/RailsFrance-f21823.html&quot; embed=&quot;fixTarget[21823]&quot; target=&quot;_top&quot; &gt;RailsFrance&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Probl%C3%A8me-de-scaffold-tp26538773p26539692.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26539539</id>
	<title>Re: Problème de scaffold</title>
	<published>2009-11-27T00:59:50Z</published>
	<updated>2009-11-27T00:59:50Z</updated>
	<author>
		<name>Michel Belleville</name>
	</author>
	<content type="html">Il y avait 4 questions en tout :&lt;br&gt;&lt;ul&gt;&lt;li&gt;répondu : quelle version de rails ?&lt;/li&gt;&lt;li&gt;répondu : qu&amp;#39;est-ce qui se trouve dans la migration qui crée la table products ?&lt;/li&gt;&lt;li&gt;en attente : est-ce que tu as vérifié la table dans la base de données ?&lt;/li&gt;

&lt;li&gt;
en attente : comment est déclaré le modèle Product ?&lt;br&gt;&lt;/li&gt;&lt;/ul&gt;Cordialement.&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;Michel Belleville&lt;br&gt;
&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;2009/11/27 Bobo Bobo &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26539539&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;list-incoming@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;

&lt;br&gt;
Effectivement, majuscule ou minuscule ne change rien à la rénération du&lt;br&gt;
sccafold.&lt;br&gt;
&lt;br&gt;
Michel Belleville &amp;gt; Comme dit dasns mo prgemier post, c&amp;#39;est du rail 2.0&lt;br&gt;
&lt;br&gt;
Mon fichier 001_create_products.rb donne ca :&lt;br&gt;
&lt;br&gt;
class CreateProducts &amp;lt; ActiveRecord::Migration&lt;br&gt;
  def self.up&lt;br&gt;
    create_table :products do |t|&lt;br&gt;
      t.string :title&lt;br&gt;
      t.text :description&lt;br&gt;
      t.string :image_url&lt;br&gt;
&lt;br&gt;
      t.timestamps&lt;br&gt;
    end&lt;br&gt;
  end&lt;br&gt;
&lt;br&gt;
  def self.down&lt;br&gt;
    drop_table :products&lt;br&gt;
  end&lt;br&gt;
end&lt;br&gt;
&lt;br&gt;
Et le products_controller.rb ca :&lt;br&gt;
&lt;br&gt;
class ProductsController &amp;lt; ApplicationController&lt;br&gt;
  # GET /products&lt;br&gt;
  # GET /products.xml&lt;br&gt;
  def index&lt;br&gt;
    @products = Product.find(:all)&lt;br&gt;
&lt;br&gt;
    respond_to do |format|&lt;br&gt;
      format.html # index.html.erb&lt;br&gt;
      format.xml  { render :xml =&amp;gt; @products }&lt;br&gt;
    end&lt;br&gt;
  end&lt;br&gt;
&lt;br&gt;
  # GET /products/1&lt;br&gt;
  # GET /products/1.xml&lt;br&gt;
  def show&lt;br&gt;
    @product = Product.find(params[:id])&lt;br&gt;
&lt;br&gt;
    respond_to do |format|&lt;br&gt;
      format.html # show.html.erb&lt;br&gt;
      format.xml  { render :xml =&amp;gt; @product }&lt;br&gt;
    end&lt;br&gt;
  end&lt;br&gt;
&lt;br&gt;
  # GET /products/new&lt;br&gt;
  # GET /products/new.xml&lt;br&gt;
  def new&lt;br&gt;
    @product = Product.new&lt;br&gt;
&lt;br&gt;
    respond_to do |format|&lt;br&gt;
      format.html # new.html.erb&lt;br&gt;
      format.xml  { render :xml =&amp;gt; @product }&lt;br&gt;
    end&lt;br&gt;
  end&lt;br&gt;
&lt;br&gt;
  # GET /products/1/edit&lt;br&gt;
  def edit&lt;br&gt;
    @product = Product.find(params[:id])&lt;br&gt;
  end&lt;br&gt;
&lt;br&gt;
  # POST /products&lt;br&gt;
  # POST /products.xml&lt;br&gt;
  def create&lt;br&gt;
    @product = Product.new(params[:product])&lt;br&gt;
&lt;br&gt;
    respond_to do |format|&lt;br&gt;
      if @product.save&lt;br&gt;
        flash[:notice] = &amp;#39;Product was successfully created.&amp;#39;&lt;br&gt;
        format.html { redirect_to(@product) }&lt;br&gt;
        format.xml  { render :xml =&amp;gt; @product, :status =&amp;gt; :created,&lt;br&gt;
:location =&amp;gt; @product }&lt;br&gt;
      else&lt;br&gt;
        format.html { render :action =&amp;gt; &amp;quot;new&amp;quot; }&lt;br&gt;
        format.xml  { render :xml =&amp;gt; @product.errors, :status =&amp;gt;&lt;br&gt;
:unprocessable_entity }&lt;br&gt;
      end&lt;br&gt;
    end&lt;br&gt;
  end&lt;br&gt;
&lt;br&gt;
  # PUT /products/1&lt;br&gt;
  # PUT /products/1.xml&lt;br&gt;
  def update&lt;br&gt;
    @product = Product.find(params[:id])&lt;br&gt;
&lt;br&gt;
    respond_to do |format|&lt;br&gt;
      if @product.update_attributes(params[:product])&lt;br&gt;
        flash[:notice] = &amp;#39;Product was successfully updated.&amp;#39;&lt;br&gt;
        format.html { redirect_to(@product) }&lt;br&gt;
        format.xml  { head :ok }&lt;br&gt;
      else&lt;br&gt;
        format.html { render :action =&amp;gt; &amp;quot;edit&amp;quot; }&lt;br&gt;
        format.xml  { render :xml =&amp;gt; @product.errors, :status =&amp;gt;&lt;br&gt;
:unprocessable_entity }&lt;br&gt;
      end&lt;br&gt;
    end&lt;br&gt;
  end&lt;br&gt;
&lt;br&gt;
  # DELETE /products/1&lt;br&gt;
  # DELETE /products/1.xml&lt;br&gt;
  def destroy&lt;br&gt;
    @product = Product.find(params[:id])&lt;br&gt;
    @product.destroy&lt;br&gt;
&lt;br&gt;
    respond_to do |format|&lt;br&gt;
      format.html { redirect_to(products_url) }&lt;br&gt;
      format.xml  { head :ok }&lt;br&gt;
    end&lt;br&gt;
  end&lt;br&gt;
end&lt;br&gt;
&lt;br&gt;
Le problème intervient à la création d&amp;#39;un nouveau produit. La page de&lt;br&gt;
formulaire products/new.&lt;br&gt;
&lt;font color=&quot;#888888&quot;&gt;--&lt;br&gt;
Posted via &lt;a href=&quot;http://www.ruby-forum.com/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.ruby-forum.com/&lt;/a&gt;.&lt;br&gt;
&lt;/font&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br&gt;
--~--~---------~--~----~------------~-------~--~----~&lt;br&gt;
Vous avez reçu ce message, car vous êtes abonné au groupe &amp;quot;Railsfrance&amp;quot; de Google Groups.
 &lt;br&gt; Pour transmettre des messages à ce groupe, envoyez un e-mail à l'adresse &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26539539&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;railsfrance@...&lt;/a&gt;
 &lt;br&gt; Pour résilier votre abonnement envoyez un e-mail à l'adresse &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26539539&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;railsfrance-unsubscribe@...&lt;/a&gt;&lt;br&gt;
-~----------~----~----~----~------~----~------~--~---&lt;br&gt;
&lt;br&gt;
&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/RailsFrance-f21823.html&quot; embed=&quot;fixTarget[21823]&quot; target=&quot;_top&quot; &gt;RailsFrance&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Probl%C3%A8me-de-scaffold-tp26538773p26539539.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26539424</id>
	<title>Re: Problème de scaffold</title>
	<published>2009-11-27T00:48:21Z</published>
	<updated>2009-11-27T00:48:21Z</updated>
	<author>
		<name>Bobo Bobo-2</name>
	</author>
	<content type="html">&lt;br&gt;Effectivement, majuscule ou minuscule ne change rien à la rénération du 
&lt;br&gt;sccafold.
&lt;br&gt;&lt;br&gt;Michel Belleville &amp;gt; Comme dit dasns mo prgemier post, c'est du rail 2.0
&lt;br&gt;&lt;br&gt;Mon fichier 001_create_products.rb donne ca :
&lt;br&gt;&lt;br&gt;class CreateProducts &amp;lt; ActiveRecord::Migration
&lt;br&gt;&amp;nbsp; def self.up
&lt;br&gt;&amp;nbsp; &amp;nbsp; create_table :products do |t|
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; t.string :title
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; t.text :description
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; t.string :image_url
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; t.timestamps
&lt;br&gt;&amp;nbsp; &amp;nbsp; end
&lt;br&gt;&amp;nbsp; end
&lt;br&gt;&lt;br&gt;&amp;nbsp; def self.down
&lt;br&gt;&amp;nbsp; &amp;nbsp; drop_table :products
&lt;br&gt;&amp;nbsp; end
&lt;br&gt;end
&lt;br&gt;&lt;br&gt;Et le products_controller.rb ca :
&lt;br&gt;&lt;br&gt;class ProductsController &amp;lt; ApplicationController
&lt;br&gt;&amp;nbsp; # GET /products
&lt;br&gt;&amp;nbsp; # GET /products.xml
&lt;br&gt;&amp;nbsp; def index
&lt;br&gt;&amp;nbsp; &amp;nbsp; @products = Product.find(:all)
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; respond_to do |format|
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; format.html # index.html.erb
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; format.xml &amp;nbsp;{ render :xml =&amp;gt; @products }
&lt;br&gt;&amp;nbsp; &amp;nbsp; end
&lt;br&gt;&amp;nbsp; end
&lt;br&gt;&lt;br&gt;&amp;nbsp; # GET /products/1
&lt;br&gt;&amp;nbsp; # GET /products/1.xml
&lt;br&gt;&amp;nbsp; def show
&lt;br&gt;&amp;nbsp; &amp;nbsp; @product = Product.find(params[:id])
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; respond_to do |format|
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; format.html # show.html.erb
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; format.xml &amp;nbsp;{ render :xml =&amp;gt; @product }
&lt;br&gt;&amp;nbsp; &amp;nbsp; end
&lt;br&gt;&amp;nbsp; end
&lt;br&gt;&lt;br&gt;&amp;nbsp; # GET /products/new
&lt;br&gt;&amp;nbsp; # GET /products/new.xml
&lt;br&gt;&amp;nbsp; def new
&lt;br&gt;&amp;nbsp; &amp;nbsp; @product = Product.new
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; respond_to do |format|
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; format.html # new.html.erb
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; format.xml &amp;nbsp;{ render :xml =&amp;gt; @product }
&lt;br&gt;&amp;nbsp; &amp;nbsp; end
&lt;br&gt;&amp;nbsp; end
&lt;br&gt;&lt;br&gt;&amp;nbsp; # GET /products/1/edit
&lt;br&gt;&amp;nbsp; def edit
&lt;br&gt;&amp;nbsp; &amp;nbsp; @product = Product.find(params[:id])
&lt;br&gt;&amp;nbsp; end
&lt;br&gt;&lt;br&gt;&amp;nbsp; # POST /products
&lt;br&gt;&amp;nbsp; # POST /products.xml
&lt;br&gt;&amp;nbsp; def create
&lt;br&gt;&amp;nbsp; &amp;nbsp; @product = Product.new(params[:product])
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; respond_to do |format|
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if @product.save
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; flash[:notice] = 'Product was successfully created.'
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; format.html { redirect_to(@product) }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; format.xml &amp;nbsp;{ render :xml =&amp;gt; @product, :status =&amp;gt; :created, 
&lt;br&gt;:location =&amp;gt; @product }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; else
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; format.html { render :action =&amp;gt; &amp;quot;new&amp;quot; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; format.xml &amp;nbsp;{ render :xml =&amp;gt; @product.errors, :status =&amp;gt; 
&lt;br&gt;:unprocessable_entity }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; end
&lt;br&gt;&amp;nbsp; &amp;nbsp; end
&lt;br&gt;&amp;nbsp; end
&lt;br&gt;&lt;br&gt;&amp;nbsp; # PUT /products/1
&lt;br&gt;&amp;nbsp; # PUT /products/1.xml
&lt;br&gt;&amp;nbsp; def update
&lt;br&gt;&amp;nbsp; &amp;nbsp; @product = Product.find(params[:id])
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; respond_to do |format|
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if @product.update_attributes(params[:product])
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; flash[:notice] = 'Product was successfully updated.'
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; format.html { redirect_to(@product) }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; format.xml &amp;nbsp;{ head :ok }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; else
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; format.html { render :action =&amp;gt; &amp;quot;edit&amp;quot; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; format.xml &amp;nbsp;{ render :xml =&amp;gt; @product.errors, :status =&amp;gt; 
&lt;br&gt;:unprocessable_entity }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; end
&lt;br&gt;&amp;nbsp; &amp;nbsp; end
&lt;br&gt;&amp;nbsp; end
&lt;br&gt;&lt;br&gt;&amp;nbsp; # DELETE /products/1
&lt;br&gt;&amp;nbsp; # DELETE /products/1.xml
&lt;br&gt;&amp;nbsp; def destroy
&lt;br&gt;&amp;nbsp; &amp;nbsp; @product = Product.find(params[:id])
&lt;br&gt;&amp;nbsp; &amp;nbsp; @product.destroy
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; respond_to do |format|
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; format.html { redirect_to(products_url) }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; format.xml &amp;nbsp;{ head :ok }
&lt;br&gt;&amp;nbsp; &amp;nbsp; end
&lt;br&gt;&amp;nbsp; end
&lt;br&gt;end
&lt;br&gt;&lt;br&gt;Le problème intervient à la création d'un nouveau produit. La page de 
&lt;br&gt;formulaire products/new.
&lt;br&gt;-- 
&lt;br&gt;Posted via &lt;a href=&quot;http://www.ruby-forum.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ruby-forum.com/&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;--~--~---------~--~----~------------~-------~--~----~
&lt;br&gt;Vous avez reçu ce message, car vous êtes abonné au groupe &amp;quot;Railsfrance&amp;quot; de Google Groups.
&lt;br&gt;Pour transmettre des messages à ce groupe, envoyez un e-mail à l'adresse &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26539424&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;railsfrance@...&lt;/a&gt;
&lt;br&gt;Pour résilier votre abonnement envoyez un e-mail à l'adresse &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26539424&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;railsfrance-unsubscribe@...&lt;/a&gt;
&lt;br&gt;-~----------~----~----~----~------~----~------~--~---
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/RailsFrance-f21823.html&quot; embed=&quot;fixTarget[21823]&quot; target=&quot;_top&quot; &gt;RailsFrance&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Probl%C3%A8me-de-scaffold-tp26538773p26539424.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26539335</id>
	<title>Re: Problème de scaffold</title>
	<published>2009-11-27T00:39:25Z</published>
	<updated>2009-11-27T00:39:25Z</updated>
	<author>
		<name>Michel Belleville</name>
	</author>
	<content type="html">Merci pestak.&lt;br&gt;&lt;br&gt;Ceci dit avec une majuscule c&amp;#39;est censé marcher quand même, et dans le cas présent je crois qu&amp;#39;il ne voulait pas forcément apporter des compléments à la table.&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;Michel Belleville&lt;br&gt;


&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;2009/11/27 pestak &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26539335&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pestak@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;

&lt;br&gt;
Bonjour,&lt;br&gt;
&lt;br&gt;
Moi aussi je débute avec RoR. Quand je fais un scaffold, je ne met pas&lt;br&gt;
de majuscule au nom de la table.&lt;br&gt;
Je met la liste des champs de ma table avec leur type : ruby script/&lt;br&gt;
generate scaffold product title:string description:text&lt;br&gt;
image_url:string&lt;br&gt;
Puis je lance la commande. Après je vais dans db\migrate j&amp;#39;ouvre le&lt;br&gt;
ficher généré et j&amp;#39;y apporte les compléments comme&lt;br&gt;
&amp;quot;:default=&amp;gt;false...&amp;quot;.&lt;br&gt;
Et enfin, je lance le rake db:migrate&lt;br&gt;
&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;
&lt;br&gt;
On 27 nov, 08:32, Bobo Bobo &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26539335&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;list-incom...@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;
&amp;gt; Bonjour à tous !&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Comme beaucoup je débute l&amp;#39;apprentissage de ruby avec le livre &amp;quot;Ruby on&lt;br&gt;
&amp;gt; Rails 2e édition&amp;quot;. Je dois avoué que je suis bloqué avec le scaffold.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; J&amp;#39;ai vu que son utilisation avait changé entre l&amp;#39;écriture du livre et&lt;br&gt;
&amp;gt; l&amp;#39;apparition de rail 2.0. J&amp;#39;ai donc adapté mais ca ne fonctione toujours&lt;br&gt;
&amp;gt; pas.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Erreur affichée :&lt;br&gt;
&amp;gt; &amp;lt;code&amp;gt;undefined method `title&amp;#39; for #&amp;amp;lt;Product id: nil&amp;amp;gt;&amp;lt;/code&amp;gt;&lt;br&gt;
&amp;gt; Extracted source (around line #8):&lt;br&gt;
&amp;gt; &amp;lt;code&amp;gt;5: &amp;amp;lt;% form_for(@product) do |f| %&amp;amp;gt;&lt;br&gt;
&amp;gt; 6:   &amp;amp;lt;p&amp;amp;gt;&lt;br&gt;
&amp;gt; 7:     &amp;amp;lt;b&amp;gt;Title&amp;amp;lt;/b&amp;gt;&amp;amp;lt;br /&amp;amp;gt;&lt;br&gt;
&amp;gt; 8:     &amp;amp;lt;%= f.text_field :title %&amp;amp;gt;&lt;br&gt;
&amp;gt; 9:   &amp;amp;lt;/p&amp;amp;gt;&lt;br&gt;
&amp;gt; 10:&lt;br&gt;
&amp;gt; 11:   &amp;amp;lt;p&amp;amp;gt;&lt;br&gt;
&amp;gt; &amp;lt;/code&amp;gt;&lt;br&gt;
&amp;gt; RAILS_ROOT: E:/C-web/Ruby/Test/depot&lt;br&gt;
&amp;gt; &amp;lt;code&amp;gt;E:/C-web/Ruby/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/attribute_methods.rb:205:in&lt;br&gt;
&amp;gt; `method_missing&amp;#39;&lt;br&gt;
&amp;gt; E:/C-web/Ruby/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/helpers/form_helper.rb:562:in&lt;br&gt;
&amp;gt; `send&amp;#39;&lt;br&gt;
&amp;gt; E:/C-web/Ruby/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/helpers/form_helper.rb:562:in&lt;br&gt;
&amp;gt; `value_before_type_cast&amp;#39;&lt;br&gt;
&amp;gt; E:/C-web/Ruby/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/helpers/form_helper.rb:550:in&lt;br&gt;
&amp;gt; `value_before_type_cast&amp;#39;&lt;br&gt;
&amp;gt; E:/C-web/Ruby/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/helpers/form_helper.rb:465:in&lt;br&gt;
&amp;gt; `to_input_field_tag&amp;#39;&lt;br&gt;
&amp;gt; E:/C-web/Ruby/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/helpers/form_helper.rb:289:in&lt;br&gt;
&amp;gt; `text_field&amp;#39;&lt;br&gt;
&amp;gt; E:/C-web/Ruby/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/helpers/form_helper.rb:640:in&lt;br&gt;
&amp;gt; `send&amp;#39;&lt;br&gt;
&amp;gt; E:/C-web/Ruby/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/helpers/form_helper.rb:640:in&lt;br&gt;
&amp;gt; `text_field&amp;#39;&lt;br&gt;
&amp;gt; app/views/products/new.html.erb:8:in&lt;br&gt;
&amp;gt; `_run_erb_47app47views47products47new46html46erb&amp;#39;&lt;br&gt;
&amp;gt; app/views/products/new.html.erb:5:in&lt;br&gt;
&amp;gt; `_run_erb_47app47views47products47new46html46erb&amp;#39;&lt;br&gt;
&amp;gt; app/controllers/products_controller.rb:29:in `new&amp;#39;&amp;lt;/code&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Il me semble pourtant avoir suivi la procédure :&lt;br&gt;
&amp;gt; &amp;lt;code&amp;gt;Test&amp;gt;rails -d mysql depot&lt;br&gt;
&amp;gt; depot&amp;gt;ruby script/generate scaffold Product title:string desc&lt;br&gt;
&amp;gt; ription:text image_url:string&lt;br&gt;
&amp;gt; depot&amp;gt;rake db:migrate&lt;br&gt;
&amp;gt; depot&amp;gt;ruby script/server webrick&lt;br&gt;
&amp;gt; &amp;lt;/code&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Quelqu&amp;#39;un peut-il m&amp;#39;aider ? Merci.&lt;br&gt;
&amp;gt; --&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&amp;gt; Posted viahttp://&lt;a href=&quot;http://www.ruby-forum.com/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;www.ruby-forum.com/&lt;/a&gt;.&lt;br&gt;
&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br&gt;
--~--~---------~--~----~------------~-------~--~----~&lt;br&gt;
Vous avez reçu ce message, car vous êtes abonné au groupe &amp;quot;Railsfrance&amp;quot; de Google Groups.
 &lt;br&gt; Pour transmettre des messages à ce groupe, envoyez un e-mail à l'adresse &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26539335&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;railsfrance@...&lt;/a&gt;
 &lt;br&gt; Pour résilier votre abonnement envoyez un e-mail à l'adresse &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26539335&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;railsfrance-unsubscribe@...&lt;/a&gt;&lt;br&gt;
-~----------~----~----~----~------~----~------~--~---&lt;br&gt;
&lt;br&gt;
&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/RailsFrance-f21823.html&quot; embed=&quot;fixTarget[21823]&quot; target=&quot;_top&quot; &gt;RailsFrance&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Probl%C3%A8me-de-scaffold-tp26538773p26539335.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26539285</id>
	<title>Re: Using authlogic With a Model Other Than User?</title>
	<published>2009-11-27T00:33:52Z</published>
	<updated>2009-11-27T00:33:52Z</updated>
	<author>
		<name>Billee D.</name>
	</author>
	<content type="html">Maybe a stupid question here, but could you not make AdminUser a
&lt;br&gt;subclass of User and turn off the authlogic on User methods? I guess
&lt;br&gt;what I'm asking here is are there certain design requirements in your
&lt;br&gt;project which dictate that the AdminUser class *must* be separated
&lt;br&gt;from the base User class?
&lt;br&gt;&lt;br&gt;It seems that if the AdminUser needs to be separate — and you need to
&lt;br&gt;user authlogic — the logical choice would be to fork the gem and make
&lt;br&gt;your modifications to that copy instead of monkeying around in the
&lt;br&gt;official gem. It may also be easier to just add access control to the
&lt;br&gt;existing User class which allows certain users to be Admins.
&lt;br&gt;&lt;br&gt;Just trying to wrap my head around this. :)
&lt;br&gt;&lt;br&gt;On Nov 26, 6:28 am, athem &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26539285&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;allan.m.mil...@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I want to implement authentication using the authlogic gem in an
&lt;br&gt;&amp;gt; application that already implements a User model that I cannot
&lt;br&gt;&amp;gt; modify.  The authlogic authentication would be for something like a
&lt;br&gt;&amp;gt; new AdminUser model, completely separate from the existing User model.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Since authlogic is installed as a gem on the server (and used by other
&lt;br&gt;&amp;gt; applications), the gem code itself cannot be modified.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Any tips for where to begin/how to approach this?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; thanks.
&lt;/div&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=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26539285&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26539285&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/rubyonrails-talk?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/RubyOnRails-Users-f13831.html&quot; embed=&quot;fixTarget[13831]&quot; target=&quot;_top&quot; &gt;RubyOnRails Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Using-authlogic-With-a-Model-Other-Than-User--tp26528035p26539285.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26539257</id>
	<title>Re: Problème de scaffold</title>
	<published>2009-11-27T00:31:33Z</published>
	<updated>2009-11-27T00:31:33Z</updated>
	<author>
		<name>pestak</name>
	</author>
	<content type="html">&lt;br&gt;Bonjour,
&lt;br&gt;&lt;br&gt;Moi aussi je débute avec RoR. Quand je fais un scaffold, je ne met pas
&lt;br&gt;de majuscule au nom de la table.
&lt;br&gt;Je met la liste des champs de ma table avec leur type : ruby script/
&lt;br&gt;generate scaffold product title:string description:text
&lt;br&gt;image_url:string
&lt;br&gt;Puis je lance la commande. Après je vais dans db\migrate j'ouvre le
&lt;br&gt;ficher généré et j'y apporte les compléments comme
&lt;br&gt;&amp;quot;:default=&amp;gt;false...&amp;quot;.
&lt;br&gt;Et enfin, je lance le rake db:migrate
&lt;br&gt;&lt;br&gt;&lt;br&gt;On 27 nov, 08:32, Bobo Bobo &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26539257&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;list-incom...@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Bonjour à tous !
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Comme beaucoup je débute l'apprentissage de ruby avec le livre &amp;quot;Ruby on
&lt;br&gt;&amp;gt; Rails 2e édition&amp;quot;. Je dois avoué que je suis bloqué avec le scaffold.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; J'ai vu que son utilisation avait changé entre l'écriture du livre et
&lt;br&gt;&amp;gt; l'apparition de rail 2.0. J'ai donc adapté mais ca ne fonctione toujours
&lt;br&gt;&amp;gt; pas.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Erreur affichée :
&lt;br&gt;&amp;gt; &amp;lt;code&amp;gt;undefined method `title' for #&amp;lt;Product id: nil&amp;gt;&amp;lt;/code&amp;gt;
&lt;br&gt;&amp;gt; Extracted source (around line #8):
&lt;br&gt;&amp;gt; &amp;lt;code&amp;gt;5: &amp;lt;% form_for(@product) do |f| %&amp;gt;
&lt;br&gt;&amp;gt; 6:   &amp;lt;p&amp;gt;
&lt;br&gt;&amp;gt; 7:     &amp;lt;b&amp;gt;Title&amp;lt;/b&amp;gt;&amp;lt;br /&amp;gt;
&lt;br&gt;&amp;gt; 8:     &amp;lt;%= f.text_field :title %&amp;gt;
&lt;br&gt;&amp;gt; 9:   &amp;lt;/p&amp;gt;
&lt;br&gt;&amp;gt; 10:
&lt;br&gt;&amp;gt; 11:   &amp;lt;p&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/code&amp;gt;
&lt;br&gt;&amp;gt; RAILS_ROOT: E:/C-web/Ruby/Test/depot
&lt;br&gt;&amp;gt; &amp;lt;code&amp;gt;E:/C-web/Ruby/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/attribute_methods.rb:205:in
&lt;br&gt;&amp;gt; `method_missing'
&lt;br&gt;&amp;gt; E:/C-web/Ruby/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/helpers/form_helper.rb:562:in
&lt;br&gt;&amp;gt; `send'
&lt;br&gt;&amp;gt; E:/C-web/Ruby/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/helpers/form_helper.rb:562:in
&lt;br&gt;&amp;gt; `value_before_type_cast'
&lt;br&gt;&amp;gt; E:/C-web/Ruby/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/helpers/form_helper.rb:550:in
&lt;br&gt;&amp;gt; `value_before_type_cast'
&lt;br&gt;&amp;gt; E:/C-web/Ruby/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/helpers/form_helper.rb:465:in
&lt;br&gt;&amp;gt; `to_input_field_tag'
&lt;br&gt;&amp;gt; E:/C-web/Ruby/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/helpers/form_helper.rb:289:in
&lt;br&gt;&amp;gt; `text_field'
&lt;br&gt;&amp;gt; E:/C-web/Ruby/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/helpers/form_helper.rb:640:in
&lt;br&gt;&amp;gt; `send'
&lt;br&gt;&amp;gt; E:/C-web/Ruby/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/helpers/form_helper.rb:640:in
&lt;br&gt;&amp;gt; `text_field'
&lt;br&gt;&amp;gt; app/views/products/new.html.erb:8:in
&lt;br&gt;&amp;gt; `_run_erb_47app47views47products47new46html46erb'
&lt;br&gt;&amp;gt; app/views/products/new.html.erb:5:in
&lt;br&gt;&amp;gt; `_run_erb_47app47views47products47new46html46erb'
&lt;br&gt;&amp;gt; app/controllers/products_controller.rb:29:in `new'&amp;lt;/code&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Il me semble pourtant avoir suivi la procédure :
&lt;br&gt;&amp;gt; &amp;lt;code&amp;gt;Test&amp;gt;rails -d mysql depot
&lt;br&gt;&amp;gt; depot&amp;gt;ruby script/generate scaffold Product title:string desc
&lt;br&gt;&amp;gt; ription:text image_url:string
&lt;br&gt;&amp;gt; depot&amp;gt;rake db:migrate
&lt;br&gt;&amp;gt; depot&amp;gt;ruby script/server webrick
&lt;br&gt;&amp;gt; &amp;lt;/code&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Quelqu'un peut-il m'aider ? Merci.
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; Posted viahttp://www.ruby-forum.com/.
&lt;/div&gt;--~--~---------~--~----~------------~-------~--~----~
&lt;br&gt;Vous avez reçu ce message, car vous êtes abonné au groupe &amp;quot;Railsfrance&amp;quot; de Google Groups.
&lt;br&gt;Pour transmettre des messages à ce groupe, envoyez un e-mail à l'adresse &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26539257&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;railsfrance@...&lt;/a&gt;
&lt;br&gt;Pour résilier votre abonnement envoyez un e-mail à l'adresse &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26539257&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;railsfrance-unsubscribe@...&lt;/a&gt;
&lt;br&gt;-~----------~----~----~----~------~----~------~--~---
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/RailsFrance-f21823.html&quot; embed=&quot;fixTarget[21823]&quot; target=&quot;_top&quot; &gt;RailsFrance&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Probl%C3%A8me-de-scaffold-tp26538773p26539257.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26539195</id>
	<title>Re: Problème de scaffold</title>
	<published>2009-11-27T00:24:44Z</published>
	<updated>2009-11-27T00:24:44Z</updated>
	<author>
		<name>Michel Belleville</name>
	</author>
	<content type="html">Quelques questions déjà :&lt;br&gt;&lt;ul&gt;&lt;li&gt;quelle version de rails ?&lt;/li&gt;&lt;li&gt;qu&amp;#39;est-ce qui se trouve dans la migration qui crée la table products ?&lt;/li&gt;&lt;li&gt;est-ce que tu as vérifié la table dans la base de données ?&lt;/li&gt;&lt;li&gt;

comment est déclaré le modèle Product ?&lt;br&gt;&lt;/li&gt;&lt;/ul&gt;Cordialement.&lt;br&gt;&lt;br&gt;Michel Belleville&lt;br&gt;
&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;2009/11/27 Bobo Bobo &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26539195&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;list-incoming@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;

&lt;br&gt;
Bonjour à tous !&lt;br&gt;
&lt;br&gt;
Comme beaucoup je débute l&amp;#39;apprentissage de ruby avec le livre &amp;quot;Ruby on&lt;br&gt;
Rails 2e édition&amp;quot;. Je dois avoué que je suis bloqué avec le scaffold.&lt;br&gt;
&lt;br&gt;
J&amp;#39;ai vu que son utilisation avait changé entre l&amp;#39;écriture du livre et&lt;br&gt;
l&amp;#39;apparition de rail 2.0. J&amp;#39;ai donc adapté mais ca ne fonctione toujours&lt;br&gt;
pas.&lt;br&gt;
&lt;br&gt;
Erreur affichée :&lt;br&gt;
&amp;lt;code&amp;gt;undefined method `title&amp;#39; for #&amp;amp;lt;Product id: nil&amp;amp;gt;&amp;lt;/code&amp;gt;&lt;br&gt;
Extracted source (around line #8):&lt;br&gt;
&amp;lt;code&amp;gt;5: &amp;amp;lt;% form_for(@product) do |f| %&amp;amp;gt;&lt;br&gt;
6:   &amp;amp;lt;p&amp;amp;gt;&lt;br&gt;
7:     &amp;amp;lt;b&amp;gt;Title&amp;amp;lt;/b&amp;gt;&amp;amp;lt;br /&amp;amp;gt;&lt;br&gt;
8:     &amp;amp;lt;%= f.text_field :title %&amp;amp;gt;&lt;br&gt;
9:   &amp;amp;lt;/p&amp;amp;gt;&lt;br&gt;
10:&lt;br&gt;
11:   &amp;amp;lt;p&amp;amp;gt;&lt;br&gt;
&amp;lt;/code&amp;gt;&lt;br&gt;
RAILS_ROOT: E:/C-web/Ruby/Test/depot&lt;br&gt;
&amp;lt;code&amp;gt;E:/C-web/Ruby/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/attribute_methods.rb:205:in&lt;br&gt;
`method_missing&amp;#39;&lt;br&gt;
E:/C-web/Ruby/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/helpers/form_helper.rb:562:in&lt;br&gt;
`send&amp;#39;&lt;br&gt;
E:/C-web/Ruby/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/helpers/form_helper.rb:562:in&lt;br&gt;
`value_before_type_cast&amp;#39;&lt;br&gt;
E:/C-web/Ruby/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/helpers/form_helper.rb:550:in&lt;br&gt;
`value_before_type_cast&amp;#39;&lt;br&gt;
E:/C-web/Ruby/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/helpers/form_helper.rb:465:in&lt;br&gt;
`to_input_field_tag&amp;#39;&lt;br&gt;
E:/C-web/Ruby/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/helpers/form_helper.rb:289:in&lt;br&gt;
`text_field&amp;#39;&lt;br&gt;
E:/C-web/Ruby/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/helpers/form_helper.rb:640:in&lt;br&gt;
`send&amp;#39;&lt;br&gt;
E:/C-web/Ruby/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/helpers/form_helper.rb:640:in&lt;br&gt;
`text_field&amp;#39;&lt;br&gt;
app/views/products/new.html.erb:8:in&lt;br&gt;
`_run_erb_47app47views47products47new46html46erb&amp;#39;&lt;br&gt;
app/views/products/new.html.erb:5:in&lt;br&gt;
`_run_erb_47app47views47products47new46html46erb&amp;#39;&lt;br&gt;
app/controllers/products_controller.rb:29:in `new&amp;#39;&amp;lt;/code&amp;gt;&lt;br&gt;
&lt;br&gt;
Il me semble pourtant avoir suivi la procédure :&lt;br&gt;
&amp;lt;code&amp;gt;Test&amp;gt;rails -d mysql depot&lt;br&gt;
depot&amp;gt;ruby script/generate scaffold Product title:string desc&lt;br&gt;
ription:text image_url:string&lt;br&gt;
depot&amp;gt;rake db:migrate&lt;br&gt;
depot&amp;gt;ruby script/server webrick&lt;br&gt;
&amp;lt;/code&amp;gt;&lt;br&gt;
&lt;br&gt;
Quelqu&amp;#39;un peut-il m&amp;#39;aider ? Merci.&lt;br&gt;
&lt;font color=&quot;#888888&quot;&gt;--&lt;br&gt;
Posted via &lt;a href=&quot;http://www.ruby-forum.com/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.ruby-forum.com/&lt;/a&gt;.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/font&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br&gt;
--~--~---------~--~----~------------~-------~--~----~&lt;br&gt;
Vous avez reçu ce message, car vous êtes abonné au groupe &amp;quot;Railsfrance&amp;quot; de Google Groups.
 &lt;br&gt; Pour transmettre des messages à ce groupe, envoyez un e-mail à l'adresse &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26539195&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;railsfrance@...&lt;/a&gt;
 &lt;br&gt; Pour résilier votre abonnement envoyez un e-mail à l'adresse &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26539195&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;railsfrance-unsubscribe@...&lt;/a&gt;&lt;br&gt;
-~----------~----~----~----~------~----~------~--~---&lt;br&gt;
&lt;br&gt;
&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/RailsFrance-f21823.html&quot; embed=&quot;fixTarget[21823]&quot; target=&quot;_top&quot; &gt;RailsFrance&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Probl%C3%A8me-de-scaffold-tp26538773p26539195.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26538960</id>
	<title>Martijn Oost/TMME is out of the office.</title>
	<published>2009-11-26T23:55:28Z</published>
	<updated>2009-11-26T23:55:28Z</updated>
	<author>
		<name>Martijn.Oost</name>
	</author>
	<content type="html">&lt;br&gt;I will be out of the office starting &amp;nbsp;27/11/2009 and will not return until
&lt;br&gt;01/12/2009.
&lt;br&gt;&lt;br&gt;I will respond to your message when I return. For urgent matters contact
&lt;br&gt;Hans Vliebergh on 2826.
&lt;br&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=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26538960&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26538960&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/rubyonrails-talk?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/RubyOnRails-Users-f13831.html&quot; embed=&quot;fixTarget[13831]&quot; target=&quot;_top&quot; &gt;RubyOnRails Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Martijn-Oost-TMME-is-out-of-the-office.-tp26538960p26538960.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26539749</id>
	<title>Re: Problème de scaffold</title>
	<published>2009-11-26T23:47:14Z</published>
	<updated>2009-11-26T23:47:14Z</updated>
	<author>
		<name>Stephane de la Linuxerie</name>
	</author>
	<content type="html">bonjour,&lt;br&gt;&lt;br&gt;voici la procédure qui marche sur mon poste : &lt;br&gt;&lt;br&gt;rails -d mysql depot&lt;br&gt;cd depot&lt;br&gt;ruby script/generate scaffold Product title:string description:text image_url:string&lt;br&gt;rake db:create (pour créer la table)&lt;br&gt;
rake db:migrate&lt;br&gt;&lt;br&gt;ruby  script/server&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;Le 27 novembre 2009 08:32, Bobo Bobo &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26539749&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;list-incoming@...&lt;/a&gt;&amp;gt;&lt;/span&gt; a écrit :&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;&lt;br&gt;
Bonjour à tous !&lt;br&gt;
&lt;br&gt;
Comme beaucoup je débute l&amp;#39;apprentissage de ruby avec le livre &amp;quot;Ruby on&lt;br&gt;
Rails 2e édition&amp;quot;. Je dois avoué que je suis bloqué avec le scaffold.&lt;br&gt;
&lt;br&gt;
J&amp;#39;ai vu que son utilisation avait changé entre l&amp;#39;écriture du livre et&lt;br&gt;
l&amp;#39;apparition de rail 2.0. J&amp;#39;ai donc adapté mais ca ne fonctione toujours&lt;br&gt;
pas.&lt;br&gt;
&lt;br&gt;
Erreur affichée :&lt;br&gt;
&amp;lt;code&amp;gt;undefined method `title&amp;#39; for #&amp;amp;lt;Product id: nil&amp;amp;gt;&amp;lt;/code&amp;gt;&lt;br&gt;
Extracted source (around line #8):&lt;br&gt;
&amp;lt;code&amp;gt;5: &amp;amp;lt;% form_for(@product) do |f| %&amp;amp;gt;&lt;br&gt;
6:   &amp;amp;lt;p&amp;amp;gt;&lt;br&gt;
7:     &amp;amp;lt;b&amp;gt;Title&amp;amp;lt;/b&amp;gt;&amp;amp;lt;br /&amp;amp;gt;&lt;br&gt;
8:     &amp;amp;lt;%= f.text_field :title %&amp;amp;gt;&lt;br&gt;
9:   &amp;amp;lt;/p&amp;amp;gt;&lt;br&gt;
10:&lt;br&gt;
11:   &amp;amp;lt;p&amp;amp;gt;&lt;br&gt;
&amp;lt;/code&amp;gt;&lt;br&gt;
RAILS_ROOT: E:/C-web/Ruby/Test/depot&lt;br&gt;
&amp;lt;code&amp;gt;E:/C-web/Ruby/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/attribute_methods.rb:205:in&lt;br&gt;
`method_missing&amp;#39;&lt;br&gt;
E:/C-web/Ruby/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/helpers/form_helper.rb:562:in&lt;br&gt;
`send&amp;#39;&lt;br&gt;
E:/C-web/Ruby/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/helpers/form_helper.rb:562:in&lt;br&gt;
`value_before_type_cast&amp;#39;&lt;br&gt;
E:/C-web/Ruby/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/helpers/form_helper.rb:550:in&lt;br&gt;
`value_before_type_cast&amp;#39;&lt;br&gt;
E:/C-web/Ruby/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/helpers/form_helper.rb:465:in&lt;br&gt;
`to_input_field_tag&amp;#39;&lt;br&gt;
E:/C-web/Ruby/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/helpers/form_helper.rb:289:in&lt;br&gt;
`text_field&amp;#39;&lt;br&gt;
E:/C-web/Ruby/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/helpers/form_helper.rb:640:in&lt;br&gt;
`send&amp;#39;&lt;br&gt;
E:/C-web/Ruby/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/helpers/form_helper.rb:640:in&lt;br&gt;
`text_field&amp;#39;&lt;br&gt;
app/views/products/new.html.erb:8:in&lt;br&gt;
`_run_erb_47app47views47products47new46html46erb&amp;#39;&lt;br&gt;
app/views/products/new.html.erb:5:in&lt;br&gt;
`_run_erb_47app47views47products47new46html46erb&amp;#39;&lt;br&gt;
app/controllers/products_controller.rb:29:in `new&amp;#39;&amp;lt;/code&amp;gt;&lt;br&gt;
&lt;br&gt;
Il me semble pourtant avoir suivi la procédure :&lt;br&gt;
&amp;lt;code&amp;gt;Test&amp;gt;rails -d mysql depot&lt;br&gt;
depot&amp;gt;ruby script/generate scaffold Product title:string desc&lt;br&gt;
ription:text image_url:string&lt;br&gt;
depot&amp;gt;rake db:migrate&lt;br&gt;
depot&amp;gt;ruby script/server webrick&lt;br&gt;
&amp;lt;/code&amp;gt;&lt;br&gt;
&lt;br&gt;
Quelqu&amp;#39;un peut-il m&amp;#39;aider ? Merci.&lt;br&gt;
&lt;font color=&quot;#888888&quot;&gt;--&lt;br&gt;
Posted via &lt;a href=&quot;http://www.ruby-forum.com/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.ruby-forum.com/&lt;/a&gt;.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/font&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br&gt;
--~--~---------~--~----~------------~-------~--~----~&lt;br&gt;
Vous avez reçu ce message, car vous êtes abonné au groupe &amp;quot;Railsfrance&amp;quot; de Google Groups.
 &lt;br&gt; Pour transmettre des messages à ce groupe, envoyez un e-mail à l'adresse &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26539749&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;railsfrance@...&lt;/a&gt;
 &lt;br&gt; Pour résilier votre abonnement envoyez un e-mail à l'adresse &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26539749&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;railsfrance-unsubscribe@...&lt;/a&gt;&lt;br&gt;
-~----------~----~----~----~------~----~------~--~---&lt;br&gt;
&lt;br&gt;
&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/RailsFrance-f21823.html&quot; embed=&quot;fixTarget[21823]&quot; target=&quot;_top&quot; &gt;RailsFrance&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Probl%C3%A8me-de-scaffold-tp26538773p26539749.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26538813</id>
	<title>bad move? - complex form with *many* observe_field's</title>
	<published>2009-11-26T23:37:06Z</published>
	<updated>2009-11-26T23:37:06Z</updated>
	<author>
		<name>lunaclaire</name>
	</author>
	<content type="html">I have a pretty complex form with many text fields and a number of
&lt;br&gt;selects. We let the user add multiple types of associated objects to
&lt;br&gt;the parent object and to edit the values for those associated objs, so
&lt;br&gt;the form can have something like the following number of fields on the
&lt;br&gt;page:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;9 text fields + 3 selects + a*(1 text + 1 select) + b*(1 text + 1
&lt;br&gt;select) + c*(1 text + 1 select) + d*(1 text + 1 select) + e*(1 text +
&lt;br&gt;1 select) + f*(7 text + 1 select)
&lt;br&gt;&lt;br&gt;where the a, b, c, etc are the number of the diff types of assoc objs.
&lt;br&gt;&lt;br&gt;Also, it's designed to have an autosave function. I've taken an
&lt;br&gt;approach that is working, but I'm concerned that it may not be the
&lt;br&gt;best, mostly from a performance aspect.
&lt;br&gt;&lt;br&gt;Each of the text fields has an observe_field set up for it with
&lt;br&gt;a &amp;nbsp;:frequency =&amp;gt; 1.5 (this seemed to be the best setting for this to
&lt;br&gt;catch rapid typing without droopping chars while the autosave is
&lt;br&gt;performed).
&lt;br&gt;&lt;br&gt;And each of the selects observe_field() does not have the frequency
&lt;br&gt;set, so that it calls the autosave fxn only on change (vs when the
&lt;br&gt;user is scrolling over the choices).
&lt;br&gt;&lt;br&gt;Anyway, does anybody see a prob having *lots* of observers like this
&lt;br&gt;set up on a page? Seems like there could be a prob with having that
&lt;br&gt;many observe_fields set up for the text fields triggering on a
&lt;br&gt;frequency basis.
&lt;br&gt;&lt;br&gt;If so, one workaround I thought of was to leave the select observers
&lt;br&gt;in place and have one observe_field for the currently focused
&lt;br&gt;text_field to reduce the number number triggering every 1.5 secs.
&lt;br&gt;&lt;br&gt;But, if that sounds good, how would I dynamically change the DOM ID of
&lt;br&gt;that single observer? Or kill the prev one and create a new one for
&lt;br&gt;the newly focused field?
&lt;br&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=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26538813&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26538813&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/rubyonrails-talk?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/RubyOnRails-Users-f13831.html&quot; embed=&quot;fixTarget[13831]&quot; target=&quot;_top&quot; &gt;RubyOnRails Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/bad-move----complex-form-with-*many*-observe_field%27s-tp26538813p26538813.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26538773</id>
	<title>Problème de scaffold</title>
	<published>2009-11-26T23:32:10Z</published>
	<updated>2009-11-26T23:32:10Z</updated>
	<author>
		<name>Bobo Bobo-2</name>
	</author>
	<content type="html">&lt;br&gt;Bonjour à tous !
&lt;br&gt;&lt;br&gt;Comme beaucoup je débute l'apprentissage de ruby avec le livre &amp;quot;Ruby on
&lt;br&gt;Rails 2e édition&amp;quot;. Je dois avoué que je suis bloqué avec le scaffold.
&lt;br&gt;&lt;br&gt;J'ai vu que son utilisation avait changé entre l'écriture du livre et
&lt;br&gt;l'apparition de rail 2.0. J'ai donc adapté mais ca ne fonctione toujours
&lt;br&gt;pas.
&lt;br&gt;&lt;br&gt;Erreur affichée :
&lt;br&gt;&amp;lt;code&amp;gt;undefined method `title' for #&amp;lt;Product id: nil&amp;gt;&amp;lt;/code&amp;gt;
&lt;br&gt;Extracted source (around line #8):
&lt;br&gt;&amp;lt;code&amp;gt;5: &amp;lt;% form_for(@product) do |f| %&amp;gt;
&lt;br&gt;6: &amp;nbsp; &amp;lt;p&amp;gt;
&lt;br&gt;7: &amp;nbsp; &amp;nbsp; &amp;lt;b&amp;gt;Title&amp;lt;/b&amp;gt;&amp;lt;br /&amp;gt;
&lt;br&gt;8: &amp;nbsp; &amp;nbsp; &amp;lt;%= f.text_field :title %&amp;gt;
&lt;br&gt;9: &amp;nbsp; &amp;lt;/p&amp;gt;
&lt;br&gt;10:
&lt;br&gt;11: &amp;nbsp; &amp;lt;p&amp;gt;
&lt;br&gt;&amp;lt;/code&amp;gt;
&lt;br&gt;RAILS_ROOT: E:/C-web/Ruby/Test/depot
&lt;br&gt;&amp;lt;code&amp;gt;E:/C-web/Ruby/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/attribute_methods.rb:205:in
&lt;br&gt;`method_missing'
&lt;br&gt;E:/C-web/Ruby/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/helpers/form_helper.rb:562:in
&lt;br&gt;`send'
&lt;br&gt;E:/C-web/Ruby/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/helpers/form_helper.rb:562:in
&lt;br&gt;`value_before_type_cast'
&lt;br&gt;E:/C-web/Ruby/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/helpers/form_helper.rb:550:in
&lt;br&gt;`value_before_type_cast'
&lt;br&gt;E:/C-web/Ruby/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/helpers/form_helper.rb:465:in
&lt;br&gt;`to_input_field_tag'
&lt;br&gt;E:/C-web/Ruby/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/helpers/form_helper.rb:289:in
&lt;br&gt;`text_field'
&lt;br&gt;E:/C-web/Ruby/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/helpers/form_helper.rb:640:in
&lt;br&gt;`send'
&lt;br&gt;E:/C-web/Ruby/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/helpers/form_helper.rb:640:in
&lt;br&gt;`text_field'
&lt;br&gt;app/views/products/new.html.erb:8:in
&lt;br&gt;`_run_erb_47app47views47products47new46html46erb'
&lt;br&gt;app/views/products/new.html.erb:5:in
&lt;br&gt;`_run_erb_47app47views47products47new46html46erb'
&lt;br&gt;app/controllers/products_controller.rb:29:in `new'&amp;lt;/code&amp;gt;
&lt;br&gt;&lt;br&gt;Il me semble pourtant avoir suivi la procédure :
&lt;br&gt;&amp;lt;code&amp;gt;Test&amp;gt;rails -d mysql depot
&lt;br&gt;depot&amp;gt;ruby script/generate scaffold Product title:string desc
&lt;br&gt;ription:text image_url:string
&lt;br&gt;depot&amp;gt;rake db:migrate
&lt;br&gt;depot&amp;gt;ruby script/server webrick
&lt;br&gt;&amp;lt;/code&amp;gt;
&lt;br&gt;&lt;br&gt;Quelqu'un peut-il m'aider ? Merci.
&lt;br&gt;-- 
&lt;br&gt;Posted via &lt;a href=&quot;http://www.ruby-forum.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ruby-forum.com/&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;--~--~---------~--~----~------------~-------~--~----~
&lt;br&gt;Vous avez reçu ce message, car vous êtes abonné au groupe &amp;quot;Railsfrance&amp;quot; de Google Groups.
&lt;br&gt;Pour transmettre des messages à ce groupe, envoyez un e-mail à l'adresse &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26538773&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;railsfrance@...&lt;/a&gt;
&lt;br&gt;Pour résilier votre abonnement envoyez un e-mail à l'adresse &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26538773&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;railsfrance-unsubscribe@...&lt;/a&gt;
&lt;br&gt;-~----------~----~----~----~------~----~------~--~---
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/RailsFrance-f21823.html&quot; embed=&quot;fixTarget[21823]&quot; target=&quot;_top&quot; &gt;RailsFrance&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Probl%C3%A8me-de-scaffold-tp26538773p26538773.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26538556</id>
	<title>Nested model + error message</title>
	<published>2009-11-26T23:02:20Z</published>
	<updated>2009-11-26T23:02:20Z</updated>
	<author>
		<name>Abhishek shukla</name>
	</author>
	<content type="html">Hello Friend,&lt;br&gt;I want to override the default error message, but some how I am not able to implement it.&lt;br&gt;&lt;br&gt;The scenario is &lt;br&gt;I have a user table and user detail table I have implement nested model. &lt;br&gt;&lt;br&gt;And the below mention message is appearing and instead of that I want something &amp;quot;User Name cannot be blank&amp;quot;&lt;br&gt;
&lt;ul&gt;&lt;li&gt;&lt;b&gt;User detail given name can&amp;#39;t be blank&lt;/b&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br&gt;&lt;br&gt;Thanks&lt;br&gt;Abhis&lt;br&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;--&lt;/p&gt;

You received this message because you are subscribed to the Google Groups &quot;Ruby on Rails: Talk&quot; group.&lt;br /&gt;

To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26538556&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk@...&lt;/a&gt;.&lt;br /&gt;

To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26538556&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk+unsubscribe@...&lt;/a&gt;.&lt;br /&gt;

For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.&lt;br /&gt;

&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/RubyOnRails-Users-f13831.html&quot; embed=&quot;fixTarget[13831]&quot; target=&quot;_top&quot; &gt;RubyOnRails Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Nested-model-%2B-error-message-tp26538556p26538556.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26538531</id>
	<title>Re: ActionView::TemplateError (can't convert  ActiveRecord::Error into String)</title>
	<published>2009-11-26T22:56:59Z</published>
	<updated>2009-11-26T22:56:59Z</updated>
	<author>
		<name>Abhishek shukla</name>
	</author>
	<content type="html">If you get a solution please share/.&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Thu, Nov 26, 2009 at 9:42 PM, icke &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26538531&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;owain.mcguire@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
I cannot work out why this error is appearing.&lt;br&gt;
&lt;br&gt;
ActionView::TemplateError (can&amp;#39;t convert ActiveRecord::Error into&lt;br&gt;
String) on line #3 of app/views/button/_show_enquiry.html.erb:&lt;br&gt;
1: &amp;lt;h1&amp;gt;Send us a message&amp;lt;/h1&amp;gt;&lt;br&gt;
2: &amp;lt;% remote_form_for :enquiry, :url =&amp;gt; {:action  =&amp;gt; &amp;#39;send_mail&amp;#39;} do |&lt;br&gt;
f| %&amp;gt;&lt;br&gt;
3:      &amp;lt;%= error_messages_for &amp;#39;enquiry&amp;#39;, :header_message =&amp;gt; &amp;quot;Please try&lt;br&gt;
again!&amp;quot;, :message =&amp;gt; &amp;quot;We need you to change some items in order to&lt;br&gt;
send us a message:&amp;quot; %&amp;gt;&lt;br&gt;
4:      &amp;lt;table&amp;gt;&lt;br&gt;
5:          &amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;Name:&amp;lt;/td&amp;gt;                                  &amp;lt;td&amp;gt;&amp;lt;%= f.text_field :name, :size =&amp;gt; 30&lt;br&gt;
%&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br&gt;
6:          &amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;Contact tel:&amp;lt;/td&amp;gt;           &amp;lt;td&amp;gt;&amp;lt;%= f.text_field :tel, :size =&amp;gt;&lt;br&gt;
30 %&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br&gt;
&lt;br&gt;
    app/views/button/_show_enquiry.html.erb:3&lt;br&gt;
    app/views/button/_show_enquiry.html.erb:2&lt;br&gt;
    app/views/button/enquiry.rjs:1:in&lt;br&gt;
`_run_rjs_app47views47button47enquiry46rjs&amp;#39;&lt;br&gt;
    app/views/button/enquiry.rjs:1:in&lt;br&gt;
`_run_rjs_app47views47button47enquiry46rjs&amp;#39;&lt;br&gt;
    app/controllers/button_controller.rb:24:in `send_mail&amp;#39;&lt;br&gt;
    app/controllers/button_controller.rb:17:in `send_mail&amp;#39;&lt;br&gt;
&lt;br&gt;
Here is the partial that is doing the rendering:&lt;br&gt;
&lt;br&gt;
&amp;lt;h1&amp;gt;Send us a message&amp;lt;/h1&amp;gt;&lt;br&gt;
&amp;lt;% remote_form_for :enquiry, :url =&amp;gt; {:action  =&amp;gt; &amp;#39;send_mail&amp;#39;} do |f|&lt;br&gt;
%&amp;gt;&lt;br&gt;
        &amp;lt;%= error_messages_for :enquiry, :header_message =&amp;gt; &amp;quot;Please try&lt;br&gt;
again!&amp;quot;, :message =&amp;gt; &amp;quot;We need you to change some items in order to&lt;br&gt;
send us a message:&amp;quot; %&amp;gt;&lt;br&gt;
        &amp;lt;table&amp;gt;&lt;br&gt;
            &amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;Name:&amp;lt;/td&amp;gt;                                  &amp;lt;td&amp;gt;&amp;lt;%= f.text_field :name, :size =&amp;gt; 30&lt;br&gt;
%&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br&gt;
            &amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;Contact tel:&amp;lt;/td&amp;gt;           &amp;lt;td&amp;gt;&amp;lt;%= f.text_field :tel, :size =&amp;gt; 30&lt;br&gt;
%&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br&gt;
            &amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;Email Address:&amp;lt;/td&amp;gt; &amp;lt;td&amp;gt;&amp;lt;%= f.text_field :email, :size =&amp;gt;&lt;br&gt;
30 %&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br&gt;
            &amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;Subject:&amp;lt;/td&amp;gt;                               &amp;lt;td&amp;gt;&amp;lt;%= f.text_field :subject, :size =&amp;gt;&lt;br&gt;
30 %&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br&gt;
            &amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;Message:&amp;lt;/td&amp;gt;       &amp;lt;td&amp;gt;&amp;lt;%= f.text_area :message, :rows&lt;br&gt;
=&amp;gt; 8, :cols =&amp;gt; 30 %&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br&gt;
        &amp;lt;/table&amp;gt;&lt;br&gt;
        &amp;lt;%= submit_tag(&amp;quot;Send&amp;quot;) %&amp;gt;&lt;br&gt;
&amp;lt;% end %&amp;gt;&lt;br&gt;
&lt;br&gt;
And the partial is invoked by:&lt;br&gt;
&lt;br&gt;
page.replace_html &amp;#39;enquirybox&amp;#39;, :partial  =&amp;gt; &amp;#39;show_enquiry&amp;#39;, :locals&lt;br&gt;
=&amp;gt; {:enquiry  =&amp;gt; @enquiry}&lt;br&gt;
&lt;br&gt;
in turn invoked from an ajax request from:&lt;br&gt;
&lt;br&gt;
    respond_to  do |format|&lt;br&gt;
      format.js do&lt;br&gt;
        if @enquiry.save&lt;br&gt;
          Emailer.deliver_contact_email(@enquiry)&lt;br&gt;
          flash[:firstname] = @enquiry.firstname&lt;br&gt;
          render :action =&amp;gt; &amp;#39;thank_you&amp;#39;&lt;br&gt;
        else&lt;br&gt;
          render :action =&amp;gt; &amp;#39;enquiry&amp;#39;&lt;br&gt;
        end&lt;br&gt;
      end&lt;br&gt;
      format.html&lt;br&gt;
    end&lt;br&gt;
&lt;br&gt;
Anyone have any ideas?&lt;br&gt;
&lt;br&gt;
O.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
The only difference from the &amp;#39;norm&amp;#39; is that I am using the custom-err-&lt;br&gt;
msg plugin.&lt;br&gt;
&lt;br&gt;
O.&lt;br&gt;
&lt;font color=&quot;#888888&quot;&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=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26538531&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk@...&lt;/a&gt;.&lt;br&gt;
To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26538531&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk%2Bunsubscribe@...&lt;/a&gt;.&lt;br&gt;
For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/rubyonrails-talk?hl=en&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/font&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;--&lt;/p&gt;

You received this message because you are subscribed to the Google Groups &quot;Ruby on Rails: Talk&quot; group.&lt;br /&gt;

To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26538531&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk@...&lt;/a&gt;.&lt;br /&gt;

To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26538531&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk+unsubscribe@...&lt;/a&gt;.&lt;br /&gt;

For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.&lt;br /&gt;

&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/RubyOnRails-Users-f13831.html&quot; embed=&quot;fixTarget[13831]&quot; target=&quot;_top&quot; &gt;RubyOnRails Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ActionView%3A%3ATemplateError-%28can%27t-convert-ActiveRecord%3A%3AError--into-String%29-tp26531622p26538531.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26538510</id>
	<title>Re: Design</title>
	<published>2009-11-26T22:53:48Z</published>
	<updated>2009-11-26T22:53:48Z</updated>
	<author>
		<name>Hassan Schroeder-2</name>
	</author>
	<content type="html">On Thu, Nov 26, 2009 at 10:36 AM, Kemal Pince &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26538510&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rails.kp@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; I wonder what you guys out there are using to generate the extra html and
&lt;br&gt;&amp;gt; css to make your web pages look great once you have the backbone of the app
&lt;br&gt;&amp;gt; up and running with RoR ?
&lt;br&gt;&lt;br&gt;Uh, a &amp;quot;text editor&amp;quot;? &amp;nbsp;:-)
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Hassan Schroeder ------------------------ &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26538510&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;hassan.schroeder@...&lt;/a&gt;
&lt;br&gt;twitter: @hassan
&lt;br&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=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26538510&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26538510&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/rubyonrails-talk?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/RubyOnRails-Users-f13831.html&quot; embed=&quot;fixTarget[13831]&quot; target=&quot;_top&quot; &gt;RubyOnRails Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Design-tp26533423p26538510.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26538448</id>
	<title>Trying to use form_for or fields_for to get one record for  display</title>
	<published>2009-11-26T22:43:26Z</published>
	<updated>2009-11-26T22:43:26Z</updated>
	<author>
		<name>Bob Smith-29</name>
	</author>
	<content type="html">The reason I'm doing this is that the app is for a foodbank, and I'm
&lt;br&gt;trying to use a model as an attendance list. The model will have a
&lt;br&gt;date field, with a new record for each month. I need to display only
&lt;br&gt;the record for the current month, as way to safeguard against someone
&lt;br&gt;visiting too often. I'd like to use checkboxes for when a person
&lt;br&gt;attended this month, which is the reason for the form_for.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Bob Smith &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26538448&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bsm2th@...&lt;/a&gt;&amp;gt;
&lt;br&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=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26538448&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26538448&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/rubyonrails-talk?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/RubyOnRails-Users-f13831.html&quot; embed=&quot;fixTarget[13831]&quot; target=&quot;_top&quot; &gt;RubyOnRails Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Trying-to-use-form_for-or-fields_for-to-get-one-record-for--display-tp26538448p26538448.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26537986</id>
	<title>Re: Is this a bug?</title>
	<published>2009-11-26T21:06:39Z</published>
	<updated>2009-11-26T21:06:39Z</updated>
	<author>
		<name>femto Zheng</name>
	</author>
	<content type="html">observed_classes is [].
&lt;br&gt;I replied earlier, but the google post forum seems to
&lt;br&gt;went some wrong, so makes my post unsuccesful.
&lt;br&gt;Sorry for that.
&lt;br&gt;&lt;br&gt;On 11月26日, 下午4时50分, &amp;quot;Jeffrey L. Taylor&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26537986&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;r...@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Quoting femto &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26537986&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;femto...@...&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; &amp;gt; Hello all, while I'm using acts_as_audited(on jruby platform),
&lt;br&gt;&amp;gt; &amp;gt; after vendored the acts_as_audited, it reports some error,
&lt;br&gt;&amp;gt; &amp;gt; line 167,
&lt;br&gt;&amp;gt; &amp;gt; # Start observing the declared classes and their subclasses.
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp;def initialize
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;Set.new(observed_classes + observed_subclasses).each { |klass|
&lt;br&gt;&amp;gt; &amp;gt; add_observer! klass } #this line
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp;end
&lt;br&gt;&amp;gt; &amp;gt; after some trace shows this one, when observed_classes is empty, will
&lt;br&gt;&amp;gt; &amp;gt; return 0(Fixnum) causes the
&lt;br&gt;&amp;gt; &amp;gt; above line to report error,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; def observed_subclasses
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;observed_classes.sum([]) { |klass| klass.send(:subclasses) }
&lt;br&gt;&amp;gt; &amp;gt; end
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; so I changed it to this:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; def observed_subclasses
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#observed_classes.sum([]) { |klass| klass.send(:subclasses) }
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;result = []
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;observed_classes.each do |klass|
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; result += klass.send(:subclasses)
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;end
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;end
&lt;br&gt;&amp;gt; &amp;gt; It this a bug?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; What is definition of observed_classes? &amp;nbsp;When there are no observed classes,
&lt;br&gt;&amp;gt; does it return [] or nil?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Jeffrey
&lt;/div&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=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26537986&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26537986&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/rubyonrails-talk?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/RubyOnRails-Users-f13831.html&quot; embed=&quot;fixTarget[13831]&quot; target=&quot;_top&quot; &gt;RubyOnRails Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Is-this-a-bug--tp26523875p26537986.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26537908</id>
	<title>Re: Rails/JRuby WAR deployment and Migrations</title>
	<published>2009-11-26T20:44:37Z</published>
	<updated>2009-11-26T20:44:37Z</updated>
	<author>
		<name>Hassan Schroeder-2</name>
	</author>
	<content type="html">On Thu, Nov 26, 2009 at 11:33 AM, Conrad Taylor &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26537908&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;conradwt@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; Michael, why don't you simply use the glassfish gem for deployment?
&lt;br&gt;&lt;br&gt;It's not always suitable, especially if you have an existing Tomcat
&lt;br&gt;installation with other non-JRuby apps.
&lt;br&gt;&lt;br&gt;&amp;gt; In any cade, if you're trying to update the schema on the production
&lt;br&gt;&amp;gt; machine, the you can simply do the following:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; rake db:migrate RAILS_ENV=production
&lt;br&gt;&lt;br&gt;No, you can't; that's the whole point -- none of those rake tasks are
&lt;br&gt;packaged with the WAR file.
&lt;br&gt;&lt;br&gt;The legacy app I inherited uses Capistrano to check out and deploy
&lt;br&gt;a JRuby app in standard Rails format, which is useful for running
&lt;br&gt;migrations, scripts via cron jobs, etc., and then builds and deploys
&lt;br&gt;the WAR file from there.
&lt;br&gt;&lt;br&gt;It seems a little redundant, but it works :-)
&lt;br&gt;&lt;br&gt;FWIW,
&lt;br&gt;-- 
&lt;br&gt;Hassan Schroeder ------------------------ &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26537908&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;hassan.schroeder@...&lt;/a&gt;
&lt;br&gt;twitter: @hassan
&lt;br&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=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26537908&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26537908&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/rubyonrails-talk?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/RubyOnRails-Users-f13831.html&quot; embed=&quot;fixTarget[13831]&quot; target=&quot;_top&quot; &gt;RubyOnRails Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Rails-JRuby-WAR-deployment-and-Migrations-tp26533857p26537908.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26537796</id>
	<title>Re: Script/Server options for other ports</title>
	<published>2009-11-26T20:18:05Z</published>
	<updated>2009-11-26T20:18:05Z</updated>
	<author>
		<name>Jeffrey L. Taylor-8</name>
	</author>
	<content type="html">Quoting dwhitekiss &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26537796&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dwhitekiss@...&lt;/a&gt;&amp;gt;:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Does this mean that I have to reconfigure either bind or ror settings?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; # script/server
&lt;br&gt;&amp;gt; =&amp;gt; Booting WEBrick
&lt;br&gt;&amp;gt; =&amp;gt; Rails 2.3.4 application starting on &lt;a href=&quot;http://0.0.0.0:3000&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://0.0.0.0:3000&lt;/a&gt;&lt;br&gt;&amp;gt; =&amp;gt; Call with -d to detach
&lt;br&gt;&amp;gt; =&amp;gt; Ctrl-C to shutdown server
&lt;br&gt;&amp;gt; [2009-11-27 12:10:47] INFO &amp;nbsp;WEBrick 1.3.1
&lt;br&gt;&amp;gt; [2009-11-27 12:10:47] INFO &amp;nbsp;ruby 1.8.7 (2008-08-11) [i486-linux]
&lt;br&gt;&amp;gt; [2009-11-27 12:10:47] WARN &amp;nbsp;TCPServer Error: Address already in use -
&lt;br&gt;&amp;gt; bind(2)
&lt;br&gt;&amp;gt; Exiting
&lt;br&gt;&amp;gt; /usr/lib/ruby/1.8/webrick/utils.rb:73:in `initialize': Address already
&lt;br&gt;&amp;gt; in use - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; bind(2)
&lt;/div&gt;&lt;br&gt;script/server --port=3001
&lt;br&gt;&lt;br&gt;&lt;br&gt;For additional options: script/server --help
&lt;br&gt;&lt;br&gt;HTH,
&lt;br&gt;&amp;nbsp; Jeffrey
&lt;br&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=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26537796&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26537796&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/rubyonrails-talk?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/RubyOnRails-Users-f13831.html&quot; embed=&quot;fixTarget[13831]&quot; target=&quot;_top&quot; &gt;RubyOnRails Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Script-Server-options-for-other-ports-tp26537779p26537796.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26537779</id>
	<title>Script/Server options for other ports</title>
	<published>2009-11-26T20:13:59Z</published>
	<updated>2009-11-26T20:13:59Z</updated>
	<author>
		<name>Darwin Pintado-2</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;Does this mean that I have to reconfigure either bind or ror settings?
&lt;br&gt;&lt;br&gt;# script/server
&lt;br&gt;=&amp;gt; Booting WEBrick
&lt;br&gt;=&amp;gt; Rails 2.3.4 application starting on &lt;a href=&quot;http://0.0.0.0:3000&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://0.0.0.0:3000&lt;/a&gt;&lt;br&gt;=&amp;gt; Call with -d to detach
&lt;br&gt;=&amp;gt; Ctrl-C to shutdown server
&lt;br&gt;[2009-11-27 12:10:47] INFO &amp;nbsp;WEBrick 1.3.1
&lt;br&gt;[2009-11-27 12:10:47] INFO &amp;nbsp;ruby 1.8.7 (2008-08-11) [i486-linux]
&lt;br&gt;[2009-11-27 12:10:47] WARN &amp;nbsp;TCPServer Error: Address already in use -
&lt;br&gt;bind(2)
&lt;br&gt;Exiting
&lt;br&gt;/usr/lib/ruby/1.8/webrick/utils.rb:73:in `initialize': Address already
&lt;br&gt;in use - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; bind(2)
&lt;br&gt;(Errno::EADDRINUSE)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from /usr/lib/ruby/1.8/webrick/utils.rb:73:in `new'
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from /usr/lib/ruby/1.8/webrick/utils.rb:73:in
&lt;br&gt;`create_listeners'
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from /usr/lib/ruby/1.8/webrick/utils.rb:70:in `each'
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from /usr/lib/ruby/1.8/webrick/utils.rb:70:in
&lt;br&gt;`create_listeners'
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from /usr/lib/ruby/1.8/webrick/server.rb:75:in `listen'
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from /usr/lib/ruby/1.8/webrick/server.rb:63:in `initialize'
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from /usr/lib/ruby/1.8/webrick/httpserver.rb:24:in
&lt;br&gt;`initialize'
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from /usr/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/handler/
&lt;br&gt;webrick.rb: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10:in `new'
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from /usr/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/handler/
&lt;br&gt;webrick.rb: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10:in `run'
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/commands/
&lt;br&gt;server.rb:111
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:
&lt;br&gt;31:in `gem_
&lt;br&gt;original_require'
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:
&lt;br&gt;31:in `requ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ire'
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from script/server:3
&lt;br&gt;&lt;br&gt;Where should I change that in ror settings?
&lt;br&gt;&lt;br&gt;D
&lt;br&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=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26537779&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26537779&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/rubyonrails-talk?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/RubyOnRails-Users-f13831.html&quot; embed=&quot;fixTarget[13831]&quot; target=&quot;_top&quot; &gt;RubyOnRails Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Script-Server-options-for-other-ports-tp26537779p26537779.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26537633</id>
	<title>Re: Rails/JRuby WAR deployment and Migrations</title>
	<published>2009-11-26T19:43:51Z</published>
	<updated>2009-11-26T19:43:51Z</updated>
	<author>
		<name>Glenn-27</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I have similar set up as yours. &amp;nbsp;My production Linux server has plain
&lt;br&gt;Glassfish &amp; MySQL, and no JRuby is installed (it is packed in WAR
&lt;br&gt;file). &amp;nbsp;I ended up with running migration on my development computer.
&lt;br&gt;In my database.yml , I put the address of my production server. &amp;nbsp;My
&lt;br&gt;production server is located in private network for security purposes,
&lt;br&gt;so I am using SSH tunneling to access from outside.
&lt;br&gt;&lt;br&gt;Glen
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;On Nov 26, 4:27 pm, MichaelF &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26537633&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mich...@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Conrad -
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Forgive me if this is a stupid question (this is my first attempt at
&lt;br&gt;&amp;gt; deploying a WAR from RoR)...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; How can I run a rake command on the Tomcat server?  All that is on
&lt;br&gt;&amp;gt; there is Java / Tomcat / MySQL.  Do I have access to rake somehow
&lt;br&gt;&amp;gt; through the WAR that is deployed?  I know the JRuby JAR is in that WAR
&lt;br&gt;&amp;gt; but was not aware I could run rake tasks that way.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Nov 26, 12:33 pm, Conrad Taylor &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26537633&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;conra...@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Sent from my iPhone
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; On Nov 26, 2009, at 10:36 AM, MichaelF &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26537633&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mich...@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; I have been tinkering with RoR and JRuby for about a year to create
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; simple internal applications.  I am working on my first &amp;quot;real&amp;quot;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; application that will be deployed for use on the internet and have
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; some questions on proper deployment using RoR (2.2.2), JRuby (1.4) and
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; MySQL (5.0.x).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; (I will be deploying everything to a hosted Tomcat/MySQL environment)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; I can easily enough use Warbler to create a WAR file and deploy that
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; to Tomcat.  I also setup a MySQL server on the hosting machine as the
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; app is configured to use MySQL.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; The part that is causing me heartburn is getting the DB schema up to
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; the hosting site.  As a workaround for the initial release I simply
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; used mysqldump to export the entire schema and base data.  I then used
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; the mysql command interface to load the sqldump into the server.  This
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; works well enough for now, but what is the &amp;quot;right&amp;quot; way to deploy the
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; database schema and migration updates over time?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; While the app is in use over the next 3 months I will be building the
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;quot;admin/reporting&amp;quot; interface to it so I suspect I will need to modify
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; the schema in some way long after the app is in use and loaded with
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; real data.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; I appreciate your time and assistance with this question!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; --Michael
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Michael, why don't you simply use the glassfish gem for deployment?  
&lt;br&gt;&amp;gt; &amp;gt; In any cade, if you're trying to update the schema on the production  
&lt;br&gt;&amp;gt; &amp;gt; machine, the you can simply do the following:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; rake db:migrate RAILS_ENV=production
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Good luck
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; -Conrad
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; --
&lt;br&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 rubyonrails-
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26537633&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;talk@...&lt;/a&gt;.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26537633&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk+unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; .
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; For more options, visit this group athttp://groups.google.com/group/rubyonrails-talk?hl=en
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; .
&lt;/div&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=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26537633&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26537633&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/rubyonrails-talk?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/RubyOnRails-Users-f13831.html&quot; embed=&quot;fixTarget[13831]&quot; target=&quot;_top&quot; &gt;RubyOnRails Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Rails-JRuby-WAR-deployment-and-Migrations-tp26533857p26537633.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26537263</id>
	<title>Re: Rails/JRuby WAR deployment and Migrations</title>
	<published>2009-11-26T18:27:34Z</published>
	<updated>2009-11-26T18:27:34Z</updated>
	<author>
		<name>MichaelF-2</name>
	</author>
	<content type="html">Conrad -
&lt;br&gt;&lt;br&gt;Forgive me if this is a stupid question (this is my first attempt at
&lt;br&gt;deploying a WAR from RoR)...
&lt;br&gt;&lt;br&gt;&lt;br&gt;How can I run a rake command on the Tomcat server? &amp;nbsp;All that is on
&lt;br&gt;there is Java / Tomcat / MySQL. &amp;nbsp;Do I have access to rake somehow
&lt;br&gt;through the WAR that is deployed? &amp;nbsp;I know the JRuby JAR is in that WAR
&lt;br&gt;but was not aware I could run rake tasks that way.
&lt;br&gt;&lt;br&gt;On Nov 26, 12:33 pm, Conrad Taylor &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26537263&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;conra...@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Sent from my iPhone
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Nov 26, 2009, at 10:36 AM, MichaelF &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26537263&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mich...@...&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; &amp;gt; I have been tinkering with RoR and JRuby for about a year to create
&lt;br&gt;&amp;gt; &amp;gt; simple internal applications.  I am working on my first &amp;quot;real&amp;quot;
&lt;br&gt;&amp;gt; &amp;gt; application that will be deployed for use on the internet and have
&lt;br&gt;&amp;gt; &amp;gt; some questions on proper deployment using RoR (2.2.2), JRuby (1.4) and
&lt;br&gt;&amp;gt; &amp;gt; MySQL (5.0.x).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; (I will be deploying everything to a hosted Tomcat/MySQL environment)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I can easily enough use Warbler to create a WAR file and deploy that
&lt;br&gt;&amp;gt; &amp;gt; to Tomcat.  I also setup a MySQL server on the hosting machine as the
&lt;br&gt;&amp;gt; &amp;gt; app is configured to use MySQL.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; The part that is causing me heartburn is getting the DB schema up to
&lt;br&gt;&amp;gt; &amp;gt; the hosting site.  As a workaround for the initial release I simply
&lt;br&gt;&amp;gt; &amp;gt; used mysqldump to export the entire schema and base data.  I then used
&lt;br&gt;&amp;gt; &amp;gt; the mysql command interface to load the sqldump into the server.  This
&lt;br&gt;&amp;gt; &amp;gt; works well enough for now, but what is the &amp;quot;right&amp;quot; way to deploy the
&lt;br&gt;&amp;gt; &amp;gt; database schema and migration updates over time?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; While the app is in use over the next 3 months I will be building the
&lt;br&gt;&amp;gt; &amp;gt; &amp;quot;admin/reporting&amp;quot; interface to it so I suspect I will need to modify
&lt;br&gt;&amp;gt; &amp;gt; the schema in some way long after the app is in use and loaded with
&lt;br&gt;&amp;gt; &amp;gt; real data.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I appreciate your time and assistance with this question!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; --Michael
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Michael, why don't you simply use the glassfish gem for deployment?  
&lt;br&gt;&amp;gt; In any cade, if you're trying to update the schema on the production  
&lt;br&gt;&amp;gt; machine, the you can simply do the following:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; rake db:migrate RAILS_ENV=production
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Good luck
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -Conrad
&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; --
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; You received this message because you are subscribed to the Google  
&lt;br&gt;&amp;gt; &amp;gt; 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 rubyonrails-
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26537263&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;talk@...&lt;/a&gt;.
&lt;br&gt;&amp;gt; &amp;gt; To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26537263&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk+unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; .
&lt;br&gt;&amp;gt; &amp;gt; For more options, visit this group athttp://groups.google.com/group/rubyonrails-talk?hl=en
&lt;br&gt;&amp;gt; &amp;gt; .
&lt;/div&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=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26537263&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26537263&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/rubyonrails-talk?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/RubyOnRails-Users-f13831.html&quot; embed=&quot;fixTarget[13831]&quot; target=&quot;_top&quot; &gt;RubyOnRails Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Rails-JRuby-WAR-deployment-and-Migrations-tp26533857p26537263.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26537010</id>
	<title>[Solved] Re: Ajax.Updater &amp; Only get, put, and delete  requests are allowed.</title>
	<published>2009-11-26T17:42:30Z</published>
	<updated>2009-11-26T17:42:30Z</updated>
	<author>
		<name>brianp-4</name>
	</author>
	<content type="html">&lt;br&gt;function reloadPane(pane, src) {
&lt;br&gt;&amp;nbsp; new Ajax.Updater(pane, src, {method:'get', asynchronous:1,
&lt;br&gt;evalScripts:true, onLoading:function(request){pane.innerHTML='&amp;lt;img
&lt;br&gt;alt=&amp;quot;Wait&amp;quot; src=&amp;quot;/images/spinner.gif&amp;quot; style=&amp;quot;vertical-align:-3px&amp;quot; /&amp;gt;
&lt;br&gt;Loading...'}})
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;Makes the function work like desired. Now i just have to change my
&lt;br&gt;render layout so it doesn't load the entire page layout inside the
&lt;br&gt;container =)
&lt;br&gt;&lt;br&gt;On Nov 26, 11:26 am, brianp &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26537010&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;brian.o.pea...@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; And for anyone following this thread with the same problem, by
&lt;br&gt;&amp;gt; method:'delete' i mean method:'get' lol I copy &amp; pasted from an
&lt;br&gt;&amp;gt; example.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Nov 26, 10:28 am, &amp;quot;Jeffrey L. Taylor&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26537010&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;r...@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Brian,
&lt;br&gt;&amp;gt; &amp;gt;   Sounds good.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Jeffrey
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Quoting brianp &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26537010&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;brian.o.pea...@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; The 'new' action creates 3 empty models and displays the form to fill
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; in the properties for the 3 new objects (all from 1 form).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Create is followed from new to save the objects to the db etc via post
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; as expected.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; So I suppose the best idea would be to find a way to make the
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Ajax.Updater run via :get instead of :post. So I may keep my proper
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; RESTful resources.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; The script for the Ajax.updater is:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; function reloadPane(pane, src) {
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;   new Ajax.Updater(pane, src, {asynchronous:1, evalScripts:true,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; onLoading:function(request){pane.innerHTML='&amp;lt;img alt=&amp;quot;Wait&amp;quot; src=&amp;quot;/
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; images/spinner.gif&amp;quot; style=&amp;quot;vertical-align:-3px&amp;quot; /&amp;gt; Loading...'}})
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; method:'delete'
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; I tried using:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; function reloadPane(pane, src) {
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;   new Ajax.Updater(pane, src, {asynchronous:1, evalScripts:true,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; method:delete,  onLoading:function(request){pane.innerHTML='&amp;lt;img
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; alt=&amp;quot;Wait&amp;quot; src=&amp;quot;/images/spinner.gif&amp;quot; style=&amp;quot;vertical-align:-3px&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Loading...'}})
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; This didn't work but just now I found an example with:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; method:'delete' . Maybe the lack of quotes is what killed the script.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; I'll try that as soon as I get home and post back.
&lt;/div&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=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26537010&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26537010&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/rubyonrails-talk?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/RubyOnRails-Users-f13831.html&quot; embed=&quot;fixTarget[13831]&quot; target=&quot;_top&quot; &gt;RubyOnRails Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Ajax.Updater---Only-get%2C-put%2C-and-delete-requests-are--allowed.-tp26526054p26537010.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26536652</id>
	<title>Rails 2.3.5</title>
	<published>2009-11-26T16:45:14Z</published>
	<updated>2009-11-26T16:45:14Z</updated>
	<author>
		<name>Jean-François Trân-2</name>
	</author>
	<content type="html">&lt;br&gt;NZKoz sur Twitter :
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://twitter.com/nzkoz/status/6097003798&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/nzkoz/status/6097003798&lt;/a&gt;&lt;br&gt;&lt;br&gt;&amp;quot;Successfully registered gem: rails (2.3.5)&amp;quot;
&lt;br&gt;Release notes to come shortly
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://gemcutter.org/gems/rails&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gemcutter.org/gems/rails&lt;/a&gt;&lt;br&gt;&lt;br&gt;sudo gem install rails
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;-- Jean-François.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;BlockCamp Paris, samedi 28 novembre 2009
&lt;br&gt;&lt;a href=&quot;http://barcamp.org/BlockCampParis&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://barcamp.org/BlockCampParis&lt;/a&gt;&lt;br&gt;Inscription &lt;a href=&quot;http://blockcampparis.heroku.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://blockcampparis.heroku.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;--~--~---------~--~----~------------~-------~--~----~
&lt;br&gt;Vous avez reçu ce message, car vous êtes abonné au groupe &amp;quot;Railsfrance&amp;quot; de Google Groups.
&lt;br&gt;Pour transmettre des messages à ce groupe, envoyez un e-mail à l'adresse &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26536652&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;railsfrance@...&lt;/a&gt;
&lt;br&gt;Pour résilier votre abonnement envoyez un e-mail à l'adresse &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26536652&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;railsfrance-unsubscribe@...&lt;/a&gt;
&lt;br&gt;-~----------~----~----~----~------~----~------~--~---
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/RailsFrance-f21823.html&quot; embed=&quot;fixTarget[21823]&quot; target=&quot;_top&quot; &gt;RailsFrance&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Rails-2.3.5-tp26536652p26536652.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26535582</id>
	<title>Re: Errors while testing a Rails application</title>
	<published>2009-11-26T14:13:24Z</published>
	<updated>2009-11-26T14:13:24Z</updated>
	<author>
		<name>Frederick Cheung-2</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;On Nov 26, 9:54 pm, Gabriel Bianconi &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26535582&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bianconi.gabr...@...&lt;/a&gt;&amp;gt;
&lt;br&gt;wrote:
&lt;br&gt;&amp;gt; I don't know. How do I check this?
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;You could try uninstalling that gem.
&lt;br&gt;&lt;br&gt;Fred
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On 26 nov, 19:44, Frederick Cheung &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26535582&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;frederick.che...@...&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; &amp;gt; On Nov 26, 9:34 pm, Gabriel Bianconi &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26535582&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bianconi.gabr...@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; I can't find what I've done wrong.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Is rails getting confused because you've got a test/unit gem that is
&lt;br&gt;&amp;gt; &amp;gt; being used instead of the older version that is part of ruby 1.8 ?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Fred
&lt;/div&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=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26535582&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26535582&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/rubyonrails-talk?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/RubyOnRails-Users-f13831.html&quot; embed=&quot;fixTarget[13831]&quot; target=&quot;_top&quot; &gt;RubyOnRails Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Errors-while-testing-a-Rails-application-tp26535136p26535582.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26535413</id>
	<title>Re: Can the http response and the controller/action finish be  separated?</title>
	<published>2009-11-26T13:57:36Z</published>
	<updated>2009-11-26T13:57:36Z</updated>
	<author>
		<name>Sebastian von Conrad-2</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;You might want to have a look at the delayed_job gem (tobi built the
&lt;br&gt;original, and it has since been forked and extended by a number of
&lt;br&gt;people; I'd recommend collectiveidea's version: &lt;a href=&quot;http://github.com/collectiveidea/delayed_job&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://github.com/collectiveidea/delayed_job&lt;/a&gt;),
&lt;br&gt;which handles lengthy operations (jobs) without the browser having to
&lt;br&gt;sit around and wait for it to finish. See the doc for how it works.
&lt;br&gt;&lt;br&gt;The downside is that since the job will be running in the background,
&lt;br&gt;the browser will be completely oblivious to it and its status. To work
&lt;br&gt;around this, if you want to give the users some kind of overview, you
&lt;br&gt;can always build a screen which checks the status or statuses of
&lt;br&gt;running jobs.
&lt;br&gt;&lt;br&gt;delayed_job is server-side only, so in theory it shouldn't matter
&lt;br&gt;which webserver you're using to serve the website with (Apache/mongrel/
&lt;br&gt;nginx/etc.).
&lt;br&gt;&lt;br&gt;Best regards,
&lt;br&gt;Sebastian
&lt;br&gt;&lt;br&gt;On Nov 27, 7:12 am, explainer &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26535413&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;keburg...@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi all,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have a situation where a very simple request can trigger a time-
&lt;br&gt;&amp;gt; consuming operation, but the requesting page doesn't need the result
&lt;br&gt;&amp;gt; of the lengthy computation.  In the standard controller action of
&lt;br&gt;&amp;gt; handling the http request, it appears that ack'ing the request is
&lt;br&gt;&amp;gt; closely coupled with completing the request.  Can this be altered in
&lt;br&gt;&amp;gt; order to separate these two actions in time?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Presumably, the return of the ack frees the browser and allows the
&lt;br&gt;&amp;gt; user to continue doing whatever.  However, what condition causes the
&lt;br&gt;&amp;gt; web server to send another request to this same rails instance?  What
&lt;br&gt;&amp;gt; would happen if the ack was sent, freeing the browser, but the rails
&lt;br&gt;&amp;gt; app kept crunching on the data?  How does the web server know when the
&lt;br&gt;&amp;gt; rails app is done?  Does the rails app get called like a proc and just
&lt;br&gt;&amp;gt; return to the web server?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I know that this answer will vary based on whether the web server is
&lt;br&gt;&amp;gt; Apache or mongrel or thin or nginx, but I would like to understand how
&lt;br&gt;&amp;gt; the controller code wraps up an action.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Can someone point me towards a writeup somewhere?
&lt;/div&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=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26535413&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26535413&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/rubyonrails-talk?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/RubyOnRails-Users-f13831.html&quot; embed=&quot;fixTarget[13831]&quot; target=&quot;_top&quot; &gt;RubyOnRails Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Can-the-http-response-and-the-controller-action-finish-be--separated--tp26534944p26535413.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26535385</id>
	<title>Re: Errors while testing a Rails application</title>
	<published>2009-11-26T13:54:39Z</published>
	<updated>2009-11-26T13:54:39Z</updated>
	<author>
		<name>Gabriel Bianconi</name>
	</author>
	<content type="html">I don't know. How do I check this?
&lt;br&gt;&lt;br&gt;On 26 nov, 19:44, Frederick Cheung &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26535385&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;frederick.che...@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Nov 26, 9:34 pm, Gabriel Bianconi &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26535385&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bianconi.gabr...@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I can't find what I've done wrong.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Is rails getting confused because you've got a test/unit gem that is
&lt;br&gt;&amp;gt; being used instead of the older version that is part of ruby 1.8 ?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Fred
&lt;/div&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=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26535385&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26535385&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/rubyonrails-talk?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/RubyOnRails-Users-f13831.html&quot; embed=&quot;fixTarget[13831]&quot; target=&quot;_top&quot; &gt;RubyOnRails Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Errors-while-testing-a-Rails-application-tp26535136p26535385.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26535377</id>
	<title>attachment_fu and file extensions</title>
	<published>2009-11-26T13:53:52Z</published>
	<updated>2009-11-26T13:53:52Z</updated>
	<author>
		<name>Luthien</name>
	</author>
	<content type="html">hi, ror!
&lt;br&gt;does anybody know if it's possible to remove file's extension, cause
&lt;br&gt;filename.mp3 looks badly :(
&lt;br&gt;plugin-attachment_fu
&lt;br&gt;&lt;br&gt;thnx :)
&lt;br&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=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26535377&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26535377&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/rubyonrails-talk?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/RubyOnRails-Users-f13831.html&quot; embed=&quot;fixTarget[13831]&quot; target=&quot;_top&quot; &gt;RubyOnRails Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/attachment_fu-and-file-extensions-tp26535377p26535377.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26535290</id>
	<title>Re: Errors while testing a Rails application</title>
	<published>2009-11-26T13:44:10Z</published>
	<updated>2009-11-26T13:44:10Z</updated>
	<author>
		<name>Frederick Cheung-2</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;On Nov 26, 9:34 pm, Gabriel Bianconi &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26535290&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bianconi.gabr...@...&lt;/a&gt;&amp;gt;
&lt;br&gt;wrote:
&lt;br&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I can't find what I've done wrong.
&lt;br&gt;&lt;br&gt;Is rails getting confused because you've got a test/unit gem that is
&lt;br&gt;being used instead of the older version that is part of ruby 1.8 ?
&lt;br&gt;&lt;br&gt;Fred
&lt;br&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=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26535290&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26535290&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/rubyonrails-talk?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/RubyOnRails-Users-f13831.html&quot; embed=&quot;fixTarget[13831]&quot; target=&quot;_top&quot; &gt;RubyOnRails Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Errors-while-testing-a-Rails-application-tp26535136p26535290.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26535136</id>
	<title>Errors while testing a Rails application</title>
	<published>2009-11-26T13:34:02Z</published>
	<updated>2009-11-26T13:34:02Z</updated>
	<author>
		<name>Gabriel Bianconi</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;Hello.
&lt;br&gt;&lt;br&gt;I'm new to RoR and I'm trying to test my app.
&lt;br&gt;&lt;br&gt;In my sample app, I have in user_test.rb:
&lt;br&gt;&lt;br&gt;require 'test_helper'
&lt;br&gt;&lt;br&gt;class UserTest &amp;lt; ActiveSupport::TestCase
&lt;br&gt;&amp;nbsp; &amp;nbsp; def test_truth
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; assert true
&lt;br&gt;&amp;nbsp; &amp;nbsp; end
&lt;br&gt;end
&lt;br&gt;&lt;br&gt;The error I'm getting is:
&lt;br&gt;&lt;br&gt;Z:\web\rails\pbbg\test&amp;gt;ruby unit/user_test.rb
&lt;br&gt;c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_support/
&lt;br&gt;dependenci
&lt;br&gt;es.rb:105:in `const_missing': uninitialized constant
&lt;br&gt;Test::Unit::TestResult::Tes
&lt;br&gt;tResultFailureSupport (NameError)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from c:/ruby/lib/ruby/gems/1.8/gems/test-unit-2.0.3/lib/test/
&lt;br&gt;unit/testre
&lt;br&gt;sult.rb:28
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
&lt;br&gt;31:in `ge
&lt;br&gt;m_original_require'
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
&lt;br&gt;31:in `re
&lt;br&gt;quire'
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/
&lt;br&gt;active_suppo
&lt;br&gt;rt/dependencies.rb:158:in `require'
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from c:/ruby/lib/ruby/gems/1.8/gems/test-unit-2.0.3/lib/test/
&lt;br&gt;unit/ui/tes
&lt;br&gt;trunnermediator.rb:9
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
&lt;br&gt;31:in `ge
&lt;br&gt;m_original_require'
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
&lt;br&gt;31:in `re
&lt;br&gt;quire'
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/
&lt;br&gt;active_suppo
&lt;br&gt;rt/dependencies.rb:158:in `require'
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;... 6 levels...
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from c:/ruby/lib/ruby/1.8/test/unit/autorunner.rb:214:in `run'
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from c:/ruby/lib/ruby/1.8/test/unit/autorunner.rb:12:in `run'
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from c:/ruby/lib/ruby/1.8/test/unit.rb:278
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; from unit/user_test.rb:3
&lt;br&gt;&lt;br&gt;I can't find what I've done wrong.
&lt;br&gt;&lt;br&gt;Thanks in advance.
&lt;br&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=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26535136&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26535136&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/rubyonrails-talk?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/RubyOnRails-Users-f13831.html&quot; embed=&quot;fixTarget[13831]&quot; target=&quot;_top&quot; &gt;RubyOnRails Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Errors-while-testing-a-Rails-application-tp26535136p26535136.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26534944</id>
	<title>Can the http response and the controller/action finish be  separated?</title>
	<published>2009-11-26T13:12:38Z</published>
	<updated>2009-11-26T13:12:38Z</updated>
	<author>
		<name>Ken Burgett</name>
	</author>
	<content type="html">Hi all,
&lt;br&gt;&lt;br&gt;I have a situation where a very simple request can trigger a time-
&lt;br&gt;consuming operation, but the requesting page doesn't need the result
&lt;br&gt;of the lengthy computation. &amp;nbsp;In the standard controller action of
&lt;br&gt;handling the http request, it appears that ack'ing the request is
&lt;br&gt;closely coupled with completing the request. &amp;nbsp;Can this be altered in
&lt;br&gt;order to separate these two actions in time?
&lt;br&gt;&lt;br&gt;Presumably, the return of the ack frees the browser and allows the
&lt;br&gt;user to continue doing whatever. &amp;nbsp;However, what condition causes the
&lt;br&gt;web server to send another request to this same rails instance? &amp;nbsp;What
&lt;br&gt;would happen if the ack was sent, freeing the browser, but the rails
&lt;br&gt;app kept crunching on the data? &amp;nbsp;How does the web server know when the
&lt;br&gt;rails app is done? &amp;nbsp;Does the rails app get called like a proc and just
&lt;br&gt;return to the web server?
&lt;br&gt;&lt;br&gt;I know that this answer will vary based on whether the web server is
&lt;br&gt;Apache or mongrel or thin or nginx, but I would like to understand how
&lt;br&gt;the controller code wraps up an action.
&lt;br&gt;&lt;br&gt;Can someone point me towards a writeup somewhere?
&lt;br&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=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26534944&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk@...&lt;/a&gt;.
&lt;br&gt;To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26534944&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/rubyonrails-talk?hl=en&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/rubyonrails-talk?hl=en&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/RubyOnRails-Users-f13831.html&quot; embed=&quot;fixTarget[13831]&quot; target=&quot;_top&quot; &gt;RubyOnRails Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Can-the-http-response-and-the-controller-action-finish-be--separated--tp26534944p26534944.html" />
</entry>

</feed>
