<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-13831</id>
	<title>Nabble - RubyOnRails Users</title>
	<updated>2009-12-07T07:28:18Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/RubyOnRails-Users-f13831.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/RubyOnRails-Users-f13831.html" />
	<subtitle type="html"></subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26678879</id>
	<title>Re: Downloading Ruby on Rails guides for offline use?</title>
	<published>2009-12-07T07:28:18Z</published>
	<updated>2009-12-07T07:28:18Z</updated>
	<author>
		<name>Frederick Cheung-2</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;On Dec 7, 3:21 pm, T_P &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26678879&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tuo...@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; Hi!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The guides onhttp://guides.rubyonrails.org/are masterpieces. Is
&lt;br&gt;&amp;gt; there a convenient way to download all of them for off-line use?
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;You should be able to generate them yourself - run rake doc:guides
&lt;br&gt;from a rails app (it should put the output in doc/guides) or clone the
&lt;br&gt;rails source and run the doc task from there (if you want the most up
&lt;br&gt;to date ones)
&lt;br&gt;&lt;br&gt;Fred
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; Tuo
&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=26678879&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=26678879&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Downloading-Ruby-on-Rails-guides-for-offline-use--tp26678798p26678879.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26678798</id>
	<title>Downloading Ruby on Rails guides for offline use?</title>
	<published>2009-12-07T07:21:57Z</published>
	<updated>2009-12-07T07:21:57Z</updated>
	<author>
		<name>T_P</name>
	</author>
	<content type="html">Hi!
&lt;br&gt;&lt;br&gt;The guides on &lt;a href=&quot;http://guides.rubyonrails.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://guides.rubyonrails.org/&lt;/a&gt;&amp;nbsp;are masterpieces. Is
&lt;br&gt;there a convenient way to download all of them for off-line use?
&lt;br&gt;&lt;br&gt;Tuo
&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=26678798&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=26678798&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Downloading-Ruby-on-Rails-guides-for-offline-use--tp26678798p26678798.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26678718</id>
	<title>Re: Problem installing RoR Ubuntu 9.04</title>
	<published>2009-12-07T07:19:31Z</published>
	<updated>2009-12-07T07:19:31Z</updated>
	<author>
		<name>T_P</name>
	</author>
	<content type="html">Oh yes, it possible to use Postgresql with the BitNami package. But
&lt;br&gt;the downside is that you still end up having MySQL around. :-/
&lt;br&gt;First you install the BitNami Rubystack with MySQL, then you use
&lt;br&gt;Postgresql add-on.
&lt;br&gt;&lt;br&gt;Tuo
&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=26678718&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=26678718&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problem-installing-RoR-Ubuntu-9.04-tp26666579p26678718.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26678320</id>
	<title>Re: setting response.headers is non-effective?</title>
	<published>2009-12-07T06:52:43Z</published>
	<updated>2009-12-07T06:52:43Z</updated>
	<author>
		<name>Rick-13</name>
	</author>
	<content type="html">Both Ruby and C use the == operator to test that the rvalue equals the
&lt;br&gt;lvalue, as in: &amp;nbsp;this_email_message == pedantic
&lt;br&gt;&lt;br&gt;Ruby uses both = and =&amp;gt; as assignment operators, depending on the
&lt;br&gt;situation. &amp;nbsp;Of course this prompts the student to ask, are two
&lt;br&gt;assignment operators enough?
&lt;br&gt;&lt;br&gt;On Dec 7, 3:48 am, Dave English &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26678320&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dave.e.engl...@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; In message
&lt;br&gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26678320&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bbe1cc46-4b0b-4732-9478-2c21cce88...@...&lt;/a&gt;&amp;gt;,
&lt;br&gt;&amp;gt; CoolAJ86 &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26678320&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;coola...@...&lt;/a&gt;&amp;gt; writes
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;As far as I know, this should append these headers to the response
&lt;br&gt;&amp;gt; &amp;gt;from Rails no matter what, right?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;I've checked in Fierbug in Fierfox 3.5.5 and I only see my usual
&lt;br&gt;&amp;gt; &amp;gt;headers. What might be getting in the way?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Because this is Ruby, not C?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Use = for assignment, not ==
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Surely?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;#app/controllers/application_controller.rb
&lt;br&gt;&amp;gt; &amp;gt;class ApplicationController &amp;lt; ActionController::Base
&lt;br&gt;&amp;gt; &amp;gt;    after_filter :cors
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;    def cors
&lt;br&gt;&amp;gt; &amp;gt;      response.headers['Access-Control-Allow-Origin'] == '*'
&lt;br&gt;&amp;gt; &amp;gt;      response.headers['Access-Control-Allow-Methods'] == 'POST, GET,
&lt;br&gt;&amp;gt; &amp;gt;PUT, DELETE, OPTIONS, HEAD'
&lt;br&gt;&amp;gt; &amp;gt;      response.headers['Access-Control-Allow-Credentials'] == 'true'
&lt;br&gt;&amp;gt; &amp;gt;      response.headers['Access-Control-Allow-Headers'] == 'X-
&lt;br&gt;&amp;gt; &amp;gt;PINGOTHER'
&lt;br&gt;&amp;gt; &amp;gt;      response.headers['Access-Control-Max-Age'] == '86400' # 24 hours
&lt;br&gt;&amp;gt; &amp;gt;    end
&lt;br&gt;&amp;gt; &amp;gt;end
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; Dave English - Principal Software QA Engineer
&lt;br&gt;&amp;gt; Fiscal Systems (Software) Ltd
&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=26678320&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=26678320&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/setting-response.headers-is-non-effective--tp26672759p26678320.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26678178</id>
	<title>Re: Business logic against model records</title>
	<published>2009-12-07T06:41:20Z</published>
	<updated>2009-12-07T06:41:20Z</updated>
	<author>
		<name>Andrew Edwards-8</name>
	</author>
	<content type="html">I had be contemplating a STI solution but it still involved account
&lt;br&gt;types in the database.
&lt;br&gt;&lt;br&gt;I can see a number of problems being solved with your suggestion,
&lt;br&gt;hadn't thought of it this way. My initial thought though is that
&lt;br&gt;potentially there are around 10-15 account types, would this start to
&lt;br&gt;look ugly with so many models extending this single feature?
&lt;br&gt;&lt;br&gt;I've also got to check how STI influences AR performance. Potentially
&lt;br&gt;I've got around a million records in the accounts table as each
&lt;br&gt;product will have multiple accounts based on batches. Each time a
&lt;br&gt;delivery arrives it creates a new batch for that product which in turn
&lt;br&gt;creates a new account(s).
&lt;br&gt;&lt;br&gt;Every product has around 10 accounts, and every product creates a new
&lt;br&gt;set when a new batch of stock arrives, approx. 24 times a year. So you
&lt;br&gt;can see each product may spawn around 240 accounts a year at worst
&lt;br&gt;case scenario. It's a little heavy but storage is cheap and it allows
&lt;br&gt;a fantastic level of visibility of inventory progress and history.
&lt;br&gt;Just got to watch performance. Indexes and caching will likely be
&lt;br&gt;first ports of call.
&lt;br&gt;&lt;br&gt;Once an account reaches zero it is essentially dead and no longer
&lt;br&gt;used, however I need to keep it on hand for audit trail purposes. I
&lt;br&gt;will likely implement an accounting period function which archives
&lt;br&gt;older accounts out of the live accounts table.
&lt;br&gt;&lt;br&gt;On 7 Dec, 14:07, Clemens &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26678178&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;clemens.w...@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; possibly a case for Single Table Inheritance(STI)?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; class InventoryAccount &amp;lt; AR::Base
&lt;br&gt;&amp;gt;   belongs_to :product
&lt;br&gt;&amp;gt;   belongs_to :storage_location
&lt;br&gt;&amp;gt;   has_many :inventory_account_entries
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;   # common inventory account behaviour, possibly making use of
&lt;br&gt;&amp;gt;   # template method pattern
&lt;br&gt;&amp;gt; end
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; class AvailableInvetoryAccount &amp;lt; InventoryAccount
&lt;br&gt;&amp;gt;   # specific code/behaviour for Available...
&lt;br&gt;&amp;gt; end
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; class ReservedInvetoryAccount &amp;lt; InventoryAccount
&lt;br&gt;&amp;gt;   # specific code/behaviour for Reserved...
&lt;br&gt;&amp;gt; end
&lt;br&gt;&amp;gt; ...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On 7 Dez., 14:49, Andrew Edwards &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26678178&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;and...@...&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; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I have a small architectural decision to make.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I'm modeling double entry accounts to handle product inventory. An
&lt;br&gt;&amp;gt; &amp;gt; account is a combination of a product, storage location. Accounts also
&lt;br&gt;&amp;gt; &amp;gt; have sub-types such as &amp;quot;Available&amp;quot; and &amp;quot;Reserved&amp;quot;.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Therefore it is possible to have more than one account for the
&lt;br&gt;&amp;gt; &amp;gt; combination of ProductA and LocationA, one account with type
&lt;br&gt;&amp;gt; &amp;gt; &amp;quot;Available&amp;quot; and another with type &amp;quot;Reserved&amp;quot;. Accounts contain entries
&lt;br&gt;&amp;gt; &amp;gt; which add or subtract against the account balance. Entries then belong
&lt;br&gt;&amp;gt; &amp;gt; to transactions which ensure every addition to one account has a
&lt;br&gt;&amp;gt; &amp;gt; subtraction from another, essentially that product inventory is
&lt;br&gt;&amp;gt; &amp;gt; preserved.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; class InventoryAccount &amp;lt; AR::Base
&lt;br&gt;&amp;gt; &amp;gt;    belongs_to :inventory_account_type
&lt;br&gt;&amp;gt; &amp;gt;    belongs_to :product
&lt;br&gt;&amp;gt; &amp;gt;    belongs_to :storage_location
&lt;br&gt;&amp;gt; &amp;gt;    has_many :inventory_account_entries
&lt;br&gt;&amp;gt; &amp;gt; end
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; My issue is with InventoryAccountType, currently this is a AR model
&lt;br&gt;&amp;gt; &amp;gt; and a simple database table holding around 10 rows with a column for
&lt;br&gt;&amp;gt; &amp;gt; the type name (Available, Reserved etc). I populate this as seed data
&lt;br&gt;&amp;gt; &amp;gt; at application setup.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; InventoryAccountTypes don't necessarily need to be in the database
&lt;br&gt;&amp;gt; &amp;gt; although each account will need to be identified as one or the other
&lt;br&gt;&amp;gt; &amp;gt; some how (currently via foreign key to the types table). They are also
&lt;br&gt;&amp;gt; &amp;gt; fairly static and may only change with application feature updates.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I now need to define posting rules which are basically business logic
&lt;br&gt;&amp;gt; &amp;gt; for whenever a particular entry is made to an account of a certain
&lt;br&gt;&amp;gt; &amp;gt; type. Each account type has it's own set of posting rules.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I have considered creating an AR model for the posting rules and
&lt;br&gt;&amp;gt; &amp;gt; associating them with the account type. However I'm not sure about
&lt;br&gt;&amp;gt; &amp;gt; leverage the database layer to hold so much hardcoded business logic
&lt;br&gt;&amp;gt; &amp;gt; and relationships?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I also don't like relying on seed data to put business logic
&lt;br&gt;&amp;gt; &amp;gt; relationships in place.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I feel like I should place the business logic and available account
&lt;br&gt;&amp;gt; &amp;gt; types firmly in ruby code. What do people think? Has anyone tackled
&lt;br&gt;&amp;gt; &amp;gt; anything similar?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Thanks, Andrew.
&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=26678178&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=26678178&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Business-logic-against-model-records-tp26677514p26678178.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26678179</id>
	<title>view to pdf with pdf::writer</title>
	<published>2009-12-07T06:27:44Z</published>
	<updated>2009-12-07T06:27:44Z</updated>
	<author>
		<name>isabel-15</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;I would like to send a view to a pdf file.
&lt;br&gt;To do that I have choosen the tool &amp;quot;pdf::writer&amp;quot;, I have tested it and
&lt;br&gt;I found a problem when I do:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;pdf.text render :layout =&amp;gt; &amp;quot;my_layout&amp;quot;
&lt;br&gt;&lt;br&gt;it sends the whole html code to the pdf file.
&lt;br&gt;&lt;br&gt;How could I send the result of the html file to the pdf file?
&lt;br&gt;&lt;br&gt;Thanks and let me know if you do not understand it.
&lt;br&gt;&lt;br&gt;Isabel
&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=26678179&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=26678179&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/view-to-pdf-with-pdf%3A%3Awriter-tp26678179p26678179.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26677837</id>
	<title>Re: Ann: ArEvents</title>
	<published>2009-12-07T06:14:05Z</published>
	<updated>2009-12-07T06:14:05Z</updated>
	<author>
		<name>Raphael Bauduin</name>
	</author>
	<content type="html">Just added the possibility to ignore events permanently:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ArEventComment.ignore_ar_events(:before_create)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #some code
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ArEventComment.ignore_ar_events(:before_create)
&lt;br&gt;&lt;br&gt;or with a block of code:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ArEventComment.ignore_ar_events(:before_create) do
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #some code
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end
&lt;br&gt;&lt;br&gt;The code is on github: &lt;a href=&quot;http://github.com/raphinou/ArEvents&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://github.com/raphinou/ArEvents&lt;/a&gt;&lt;br&gt;&lt;br&gt;Raph
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Thu, Dec 3, 2009 at 5:19 PM, Raphael Bauduin &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26677837&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rblists@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I needed to be able to add actions to be taken during the lifecycle of
&lt;br&gt;&amp;gt; ActiveRecord object, but needed to configure it dynamically.
&lt;br&gt;&amp;gt; Observers were not flexible enough and I ended up developing ArEvents,
&lt;br&gt;&amp;gt; which lets you easily attach and detach event listeners, the events
&lt;br&gt;&amp;gt; correspond to the active record callbacks.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If you have an existing model, just include the ArEvents module:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ArEventComment.send(:include, ArEvents)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; and you can then add event listeners:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ArEventComment.add_ar_event_listener(:before_validation, ArEventCommentListener)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; An event listener is simply a class with a class method named trigger
&lt;br&gt;&amp;gt; that takes 2 arguments: the event fired and the object fireing the
&lt;br&gt;&amp;gt; event:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;class ArEventCommentListener
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;def self.trigger(evt, obj)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;puts &amp;quot;event #{evt} triggered by object #{obj.inspect}&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;end
&lt;br&gt;&amp;gt; &amp;nbsp;end
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm not yet using it in production, but tests pass as expected.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; You can find the code at &lt;a href=&quot;http://github.com/raphinou/ArEvents&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://github.com/raphinou/ArEvents&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; All comments and suggestions are of course welcome!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Raphaël
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; Web database: &lt;a href=&quot;http://www.myowndb.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.myowndb.com&lt;/a&gt;&lt;br&gt;&amp;gt; Free Software Developers Meeting: &lt;a href=&quot;http://www.fosdem.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.fosdem.org&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Web database: &lt;a href=&quot;http://www.myowndb.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.myowndb.com&lt;/a&gt;&lt;br&gt;Free Software Developers Meeting: &lt;a href=&quot;http://www.fosdem.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.fosdem.org&lt;/a&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=26677837&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=26677837&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Ann%3A-ArEvents-tp26628742p26677837.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26677752</id>
	<title>Re: Business logic against model records</title>
	<published>2009-12-07T06:07:13Z</published>
	<updated>2009-12-07T06:07:13Z</updated>
	<author>
		<name>clemens@ruby</name>
	</author>
	<content type="html">possibly a case for Single Table Inheritance(STI)?
&lt;br&gt;&lt;br&gt;class InventoryAccount &amp;lt; AR::Base
&lt;br&gt;&amp;nbsp; belongs_to :product
&lt;br&gt;&amp;nbsp; belongs_to :storage_location
&lt;br&gt;&amp;nbsp; has_many :inventory_account_entries
&lt;br&gt;&lt;br&gt;&amp;nbsp; # common inventory account behaviour, possibly making use of
&lt;br&gt;&amp;nbsp; # template method pattern
&lt;br&gt;end
&lt;br&gt;&lt;br&gt;class AvailableInvetoryAccount &amp;lt; InventoryAccount
&lt;br&gt;&amp;nbsp; # specific code/behaviour for Available...
&lt;br&gt;end
&lt;br&gt;&lt;br&gt;class ReservedInvetoryAccount &amp;lt; InventoryAccount
&lt;br&gt;&amp;nbsp; # specific code/behaviour for Reserved...
&lt;br&gt;end
&lt;br&gt;...
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;On 7 Dez., 14:49, Andrew Edwards &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26677752&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;and...@...&lt;/a&gt;&amp;gt;
&lt;br&gt;wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have a small architectural decision to make.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm modeling double entry accounts to handle product inventory. An
&lt;br&gt;&amp;gt; account is a combination of a product, storage location. Accounts also
&lt;br&gt;&amp;gt; have sub-types such as &amp;quot;Available&amp;quot; and &amp;quot;Reserved&amp;quot;.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Therefore it is possible to have more than one account for the
&lt;br&gt;&amp;gt; combination of ProductA and LocationA, one account with type
&lt;br&gt;&amp;gt; &amp;quot;Available&amp;quot; and another with type &amp;quot;Reserved&amp;quot;. Accounts contain entries
&lt;br&gt;&amp;gt; which add or subtract against the account balance. Entries then belong
&lt;br&gt;&amp;gt; to transactions which ensure every addition to one account has a
&lt;br&gt;&amp;gt; subtraction from another, essentially that product inventory is
&lt;br&gt;&amp;gt; preserved.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; class InventoryAccount &amp;lt; AR::Base
&lt;br&gt;&amp;gt;    belongs_to :inventory_account_type
&lt;br&gt;&amp;gt;    belongs_to :product
&lt;br&gt;&amp;gt;    belongs_to :storage_location
&lt;br&gt;&amp;gt;    has_many :inventory_account_entries
&lt;br&gt;&amp;gt; end
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; My issue is with InventoryAccountType, currently this is a AR model
&lt;br&gt;&amp;gt; and a simple database table holding around 10 rows with a column for
&lt;br&gt;&amp;gt; the type name (Available, Reserved etc). I populate this as seed data
&lt;br&gt;&amp;gt; at application setup.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; InventoryAccountTypes don't necessarily need to be in the database
&lt;br&gt;&amp;gt; although each account will need to be identified as one or the other
&lt;br&gt;&amp;gt; some how (currently via foreign key to the types table). They are also
&lt;br&gt;&amp;gt; fairly static and may only change with application feature updates.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I now need to define posting rules which are basically business logic
&lt;br&gt;&amp;gt; for whenever a particular entry is made to an account of a certain
&lt;br&gt;&amp;gt; type. Each account type has it's own set of posting rules.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have considered creating an AR model for the posting rules and
&lt;br&gt;&amp;gt; associating them with the account type. However I'm not sure about
&lt;br&gt;&amp;gt; leverage the database layer to hold so much hardcoded business logic
&lt;br&gt;&amp;gt; and relationships?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I also don't like relying on seed data to put business logic
&lt;br&gt;&amp;gt; relationships in place.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I feel like I should place the business logic and available account
&lt;br&gt;&amp;gt; types firmly in ruby code. What do people think? Has anyone tackled
&lt;br&gt;&amp;gt; anything similar?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks, Andrew.
&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=26677752&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=26677752&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Business-logic-against-model-records-tp26677514p26677752.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26677514</id>
	<title>Business logic against model records</title>
	<published>2009-12-07T05:49:36Z</published>
	<updated>2009-12-07T05:49:36Z</updated>
	<author>
		<name>Andrew Edwards-8</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I have a small architectural decision to make.
&lt;br&gt;&lt;br&gt;I'm modeling double entry accounts to handle product inventory. An
&lt;br&gt;account is a combination of a product, storage location. Accounts also
&lt;br&gt;have sub-types such as &amp;quot;Available&amp;quot; and &amp;quot;Reserved&amp;quot;.
&lt;br&gt;&lt;br&gt;Therefore it is possible to have more than one account for the
&lt;br&gt;combination of ProductA and LocationA, one account with type
&lt;br&gt;&amp;quot;Available&amp;quot; and another with type &amp;quot;Reserved&amp;quot;. Accounts contain entries
&lt;br&gt;which add or subtract against the account balance. Entries then belong
&lt;br&gt;to transactions which ensure every addition to one account has a
&lt;br&gt;subtraction from another, essentially that product inventory is
&lt;br&gt;preserved.
&lt;br&gt;&lt;br&gt;class InventoryAccount &amp;lt; AR::Base
&lt;br&gt;&amp;nbsp; &amp;nbsp;belongs_to :inventory_account_type
&lt;br&gt;&amp;nbsp; &amp;nbsp;belongs_to :product
&lt;br&gt;&amp;nbsp; &amp;nbsp;belongs_to :storage_location
&lt;br&gt;&amp;nbsp; &amp;nbsp;has_many :inventory_account_entries
&lt;br&gt;end
&lt;br&gt;&lt;br&gt;My issue is with InventoryAccountType, currently this is a AR model
&lt;br&gt;and a simple database table holding around 10 rows with a column for
&lt;br&gt;the type name (Available, Reserved etc). I populate this as seed data
&lt;br&gt;at application setup.
&lt;br&gt;&lt;br&gt;InventoryAccountTypes don't necessarily need to be in the database
&lt;br&gt;although each account will need to be identified as one or the other
&lt;br&gt;some how (currently via foreign key to the types table). They are also
&lt;br&gt;fairly static and may only change with application feature updates.
&lt;br&gt;&lt;br&gt;I now need to define posting rules which are basically business logic
&lt;br&gt;for whenever a particular entry is made to an account of a certain
&lt;br&gt;type. Each account type has it's own set of posting rules.
&lt;br&gt;&lt;br&gt;I have considered creating an AR model for the posting rules and
&lt;br&gt;associating them with the account type. However I'm not sure about
&lt;br&gt;leverage the database layer to hold so much hardcoded business logic
&lt;br&gt;and relationships?
&lt;br&gt;&lt;br&gt;I also don't like relying on seed data to put business logic
&lt;br&gt;relationships in place.
&lt;br&gt;&lt;br&gt;I feel like I should place the business logic and available account
&lt;br&gt;types firmly in ruby code. What do people think? Has anyone tackled
&lt;br&gt;anything similar?
&lt;br&gt;&lt;br&gt;Thanks, Andrew.
&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=26677514&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=26677514&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Business-logic-against-model-records-tp26677514p26677514.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26677500</id>
	<title>Re: Problem installing RoR Ubuntu 9.04 - SOLVED.</title>
	<published>2009-12-07T05:48:25Z</published>
	<updated>2009-12-07T05:48:25Z</updated>
	<author>
		<name>LuisRuby</name>
	</author>
	<content type="html">Hi friends!
&lt;br&gt;My problem has gone!
&lt;br&gt;With a little shame because it's so easy... :-).
&lt;br&gt;I received a tip to put &amp;quot;PATH=/var/lib/gems/1.8/bin:$PATH&amp;quot; in my
&lt;br&gt;file .profile with gedit. And all goes well!
&lt;br&gt;Thank you to everybody!
&lt;br&gt;&lt;br&gt;On Dec 7, 10:11 am, LuisRuby &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26677500&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;alfamemo...@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hmmmm, thank you. But I saw that BitNami install Mysql and PHP. Well,
&lt;br&gt;&amp;gt; I thought to use Firebird but it is more probable that I will use
&lt;br&gt;&amp;gt; Postgre and RoR. Is it possible?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Dec 7, 7:34 am, T_P &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26677500&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tuo...@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Hi, Luiz!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I had the same problem as you. Namely, I struggled with installing RoR
&lt;br&gt;&amp;gt; &amp;gt; development environment on my Ubuntu box.
&lt;br&gt;&amp;gt; &amp;gt; I found a nice and EASY solution: use BitNami RubyStack, which is
&lt;br&gt;&amp;gt; &amp;gt; available athttp://bitnami.org/stack/rubystack. Everything
&lt;br&gt;&amp;gt; &amp;gt; is included, and it works out of the box. I highly recommend it.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; It has a very clear user guide as well, athttp://bitnami.org/files/stacks/rubystack/2.0-0/rubystack.pdf.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Tuo
&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=26677500&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=26677500&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problem-installing-RoR-Ubuntu-9.04-tp26666579p26677500.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26677106</id>
	<title>Re: Secure receipt generation</title>
	<published>2009-12-07T05:15:33Z</published>
	<updated>2009-12-07T05:15:33Z</updated>
	<author>
		<name>Niels Meersschaert</name>
	</author>
	<content type="html">Why not just scope the find to the user?
&lt;br&gt;&lt;br&gt;class User
&lt;br&gt;has_many :receipts
&lt;br&gt;end
&lt;br&gt;&lt;br&gt;Then in your controller you can do something like
&lt;br&gt;&lt;br&gt;def show
&lt;br&gt;file_ref = current_user.receipts.find(params[:id])
&lt;br&gt;&lt;br&gt;#Read file code
&lt;br&gt;end
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Dec 7, 2009, at 7:43 AM, icke wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Has anyone got any ideas on how to approach the following:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I generate a pdf receipt and store it in a directory &amp;quot;outside&amp;quot; of
&lt;br&gt;&amp;gt; public since I do not want users to be able to just mess about with
&lt;br&gt;&amp;gt; URLs and look at other users receipts. &amp;nbsp;However, I do want users to be
&lt;br&gt;&amp;gt; able to download and see their own receipt. &amp;nbsp;I am struggling to come
&lt;br&gt;&amp;gt; up with a way of the browser showing the pdf but denying access to
&lt;br&gt;&amp;gt; other pdf's.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I had thought of using some sort of md5 generated id on a resource
&lt;br&gt;&amp;gt; called &amp;quot;receipt&amp;quot; to do a show but in the end there is always some
&lt;br&gt;&amp;gt; URL. &amp;nbsp;Is there a way of creating some sort of &amp;quot;one-time-use&amp;quot; URL by
&lt;br&gt;&amp;gt; forming the headers accordingly and then simply using a file-read to
&lt;br&gt;&amp;gt; serve up the file. &amp;nbsp;To me this seems a bit weird as the whole point of
&lt;br&gt;&amp;gt; webservers is doing precisely this.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I must be thinking along the wrong lines.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; O.
&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; You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.
&lt;br&gt;&amp;gt; To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26677106&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk@...&lt;/a&gt;.
&lt;br&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=26677106&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;&amp;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;&amp;gt; 
&lt;br&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=26677106&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=26677106&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Secure-receipt-generation-tp26676738p26677106.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26676738</id>
	<title>Secure receipt generation</title>
	<published>2009-12-07T04:43:44Z</published>
	<updated>2009-12-07T04:43:44Z</updated>
	<author>
		<name>icke</name>
	</author>
	<content type="html">Has anyone got any ideas on how to approach the following:
&lt;br&gt;&lt;br&gt;I generate a pdf receipt and store it in a directory &amp;quot;outside&amp;quot; of
&lt;br&gt;public since I do not want users to be able to just mess about with
&lt;br&gt;URLs and look at other users receipts. &amp;nbsp;However, I do want users to be
&lt;br&gt;able to download and see their own receipt. &amp;nbsp;I am struggling to come
&lt;br&gt;up with a way of the browser showing the pdf but denying access to
&lt;br&gt;other pdf's.
&lt;br&gt;&lt;br&gt;I had thought of using some sort of md5 generated id on a resource
&lt;br&gt;called &amp;quot;receipt&amp;quot; to do a show but in the end there is always some
&lt;br&gt;URL. &amp;nbsp;Is there a way of creating some sort of &amp;quot;one-time-use&amp;quot; URL by
&lt;br&gt;forming the headers accordingly and then simply using a file-read to
&lt;br&gt;serve up the file. &amp;nbsp;To me this seems a bit weird as the whole point of
&lt;br&gt;webservers is doing precisely this.
&lt;br&gt;&lt;br&gt;I must be thinking along the wrong lines.
&lt;br&gt;&lt;br&gt;Thanks.
&lt;br&gt;&lt;br&gt;O.
&lt;br&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=26676738&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=26676738&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Secure-receipt-generation-tp26676738p26676738.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26677144</id>
	<title>Re: accepts_nested_attributes_for + paperclip + polymorphic +  problem</title>
	<published>2009-12-07T04:41:23Z</published>
	<updated>2009-12-07T04:41:23Z</updated>
	<author>
		<name>Antony Fernandez</name>
	</author>
	<content type="html">&lt;br&gt;Hi Ab,
&lt;br&gt;&lt;br&gt;The form view should read:
&lt;br&gt;&lt;br&gt;&amp;lt;% form_for @office, :html =&amp;gt; {:multipart =&amp;gt; true} do |f| %&amp;gt;
&lt;br&gt;&lt;br&gt;This is always the case when dealing with file uploads.
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Dec 7, 9:05 am, Abhishek shukla &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26677144&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bettera...@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello Friends,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I am not able to retrieve the value form page
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; controller
&lt;br&gt;&amp;gt;   offices_controller
&lt;br&gt;&amp;gt;     def new
&lt;br&gt;&amp;gt;      @office = Office.new
&lt;br&gt;&amp;gt;     end
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;     def create
&lt;br&gt;&amp;gt;      @office = Office.new(params[:office])
&lt;br&gt;&amp;gt;      @office.save
&lt;br&gt;&amp;gt;    end
&lt;br&gt;&amp;gt;  end
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; VIEW
&lt;br&gt;&amp;gt;   &amp;lt;% form_for @office do |f| %&amp;gt;
&lt;br&gt;&amp;gt;     &amp;lt;%= f.text_area :office_name %&amp;gt;
&lt;br&gt;&amp;gt;     &amp;lt;% f.fields_for :images_attributes do |i| %&amp;gt;
&lt;br&gt;&amp;gt;      &amp;lt;%= i.file_field :avatar %&amp;gt;
&lt;br&gt;&amp;gt;     &amp;lt;%end%&amp;gt;
&lt;br&gt;&amp;gt;     &amp;lt;%= f.submit &amp;quot;Submit&amp;quot; %&amp;gt;
&lt;br&gt;&amp;gt;   &amp;lt;%end%&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Model
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Office.rb
&lt;br&gt;&amp;gt;     accepts_nested_attributes_for :image
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Image.rb
&lt;br&gt;&amp;gt;      belongs_to :imagable, :polymorphic =&amp;gt; true
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; PROBLEM
&lt;br&gt;&amp;gt;  When I press submit, the params[:office] only contain :office_name and
&lt;br&gt;&amp;gt; avatar is getting lost? I don;t know where excatly I am getting wrong.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks for any suggestion
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Abhis
&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=26677144&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=26677144&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/accepts_nested_attributes_for-%2B-paperclip-%2B-polymorphic-%2B--problem-tp26673879p26677144.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26676456</id>
	<title>Re: Re: hiding specific links</title>
	<published>2009-12-07T04:16:53Z</published>
	<updated>2009-12-07T04:16:53Z</updated>
	<author>
		<name>Colin Law-4</name>
	</author>
	<content type="html">2009/12/6 RubyonRails_newbie &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26676456&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;craigwesty79@...&lt;/a&gt;&amp;gt;:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; ** Resolved... **
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If anyone else comes across a similar issue, I did this to hide the
&lt;br&gt;&amp;gt; delete link if no posts exist:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;        &amp;lt;% if Post.exists?(@posts) %&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;        &amp;lt;%= image_tag (&amp;quot;delete.png&amp;quot;) %&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;                &amp;lt;%= link_to &amp;quot;Delete post&amp;quot;,
&lt;br&gt;&amp;gt;                        { :controller =&amp;gt; &amp;quot;posts&amp;quot;, :action =&amp;gt; &amp;quot;delete&amp;quot;,
&lt;br&gt;&amp;gt;                          :id =&amp;gt; @posts },
&lt;br&gt;&amp;gt;                          :confirm =&amp;gt; &amp;quot;Really delete this post? You cannot undo this!&amp;quot; %&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;Could you not just test @posts directly, presumably it will be nil or
&lt;br&gt;empty or something, or am I missing something? &amp;nbsp;I am a bit confused as
&lt;br&gt;I would expect a variable called @posts to be an array of Post objects
&lt;br&gt;but since you are using :id =&amp;gt; posts that suggests it is just one.
&lt;br&gt;&lt;br&gt;Colin
&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=26676456&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=26676456&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/hiding-specific-links-tp26669140p26676456.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26676388</id>
	<title>Re: Problem installing RoR Ubuntu 9.04</title>
	<published>2009-12-07T04:11:41Z</published>
	<updated>2009-12-07T04:11:41Z</updated>
	<author>
		<name>LuisRuby</name>
	</author>
	<content type="html">Hmmmm, thank you. But I saw that BitNami install Mysql and PHP. Well,
&lt;br&gt;I thought to use Firebird but it is more probable that I will use
&lt;br&gt;Postgre and RoR. Is it possible?
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Dec 7, 7:34 am, T_P &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26676388&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tuo...@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi, Luiz!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I had the same problem as you. Namely, I struggled with installing RoR
&lt;br&gt;&amp;gt; development environment on my Ubuntu box.
&lt;br&gt;&amp;gt; I found a nice and EASY solution: use BitNami RubyStack, which is
&lt;br&gt;&amp;gt; available athttp://bitnami.org/stack/rubystack. Everything
&lt;br&gt;&amp;gt; is included, and it works out of the box. I highly recommend it.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; It has a very clear user guide as well, athttp://bitnami.org/files/stacks/rubystack/2.0-0/rubystack.pdf.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Tuo
&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=26676388&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=26676388&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problem-installing-RoR-Ubuntu-9.04-tp26666579p26676388.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26676132</id>
	<title>Re: Cucumber and general Ruby question</title>
	<published>2009-12-07T03:50:25Z</published>
	<updated>2009-12-07T03:50:25Z</updated>
	<author>
		<name>clemens@ruby</name>
	</author>
	<content type="html">you could use tables
&lt;br&gt;&lt;br&gt;....feature:
&lt;br&gt;...
&lt;br&gt;&amp;nbsp; &amp;nbsp;Given the site has the following pages
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |page title|
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | title 1 |
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | title 2 |
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | title 3 |
&lt;br&gt;....
&lt;br&gt;&lt;br&gt;...steps.rb:
&lt;br&gt;...
&lt;br&gt;Given /^the site has the following pages$/ do | pages |
&lt;br&gt;&amp;nbsp; &amp;nbsp; pages.each |page_title|
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Page.create :title =&amp;gt; page_title unless Page.find_by_title
&lt;br&gt;(page_title)
&lt;br&gt;&amp;nbsp; &amp;nbsp; end
&lt;br&gt;end
&lt;br&gt;...
&lt;br&gt;&lt;br&gt;&lt;br&gt;On 7 Dez., 10:52, Gintautas Šimkus &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26676132&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dihita...@...&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 have this cucumber step definition:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Given /^the site has pages &amp;quot;(.+)&amp;quot; and &amp;quot;(.+)&amp;quot;$/ do | page_1, page_2 |
&lt;br&gt;&amp;gt;     Page.create :title =&amp;gt; page_1 if Page.find_by_title(page_1).nil?
&lt;br&gt;&amp;gt;     Page.create :title =&amp;gt; page_2 if Page.find_by_title(page_2).nil?
&lt;br&gt;&amp;gt; end
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This works, but obviously I would like to DRY it up. I was thinking along
&lt;br&gt;&amp;gt; the lines.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Given /^the site has pages &amp;quot;(.+)&amp;quot; and &amp;quot;(.+)&amp;quot;$/ do | *args |
&lt;br&gt;&amp;gt;     args.each { |page| Page.create :title =&amp;gt; page if
&lt;br&gt;&amp;gt; Page.find_by_title(page).nil? }
&lt;br&gt;&amp;gt; end
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The code is not syntactically correct that is what my question is about: how
&lt;br&gt;&amp;gt; to implement this concept right?
&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=26676132&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=26676132&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Cucumber-and-general-Ruby-question-tp26674911p26676132.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26675882</id>
	<title>Re: Why do so many Ruby/Rails developers use Macs?</title>
	<published>2009-12-07T03:24:03Z</published>
	<updated>2009-12-07T03:24:03Z</updated>
	<author>
		<name>aldo.nievas</name>
	</author>
	<content type="html">I bought a Macbook Pro from Argentina by u$2200 through
&lt;br&gt;megadistributors.com
&lt;br&gt;Just only u$300 more than US. And they delivered it at your door home.
&lt;br&gt;&lt;br&gt;And why Mac for Rail development ? Did you use combination Mac +
&lt;br&gt;Texmate ? It's awesome.
&lt;br&gt;&lt;br&gt;DHH and his team were developed Rails using that combination.
&lt;br&gt;&lt;br&gt;Cheers.
&lt;br&gt;Aldo Nievas
&lt;br&gt;www.satio.com.ar
&lt;br&gt;aldo.nievas (skype)
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Dec 4, 10:16 pm, Agustin Nicolas Viñao Laseras
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26675882&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;agustinvi...@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I talked Mac in Argentina (reseller, not direct Mac Store) is expensive to
&lt;br&gt;&amp;gt; buy the equipment. Whoever knows the benefits of using Mac hardware knows it
&lt;br&gt;&amp;gt; is not the same team using a different brand with OSX.
&lt;br&gt;&amp;gt; The price of Macbook Pro 2.66 in Argentina is $ S 3300 and in U.S. u $ s
&lt;br&gt;&amp;gt; 1999. And the reason is not taxes, is by middlemen.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Spanish mac reseller:&lt;a href=&quot;http://www.macstore.com.ar/producto.php?id=1615&amp;idCategoria=1&amp;idSubca&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.macstore.com.ar/producto.php?id=1615&amp;idCategoria=1&amp;idSubca&lt;/a&gt;...
&lt;br&gt;&amp;gt; (1 u$S = $3.82 argentine pesos)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Mac U.S. web:&lt;a href=&quot;http://store.apple.com/us/browse/home/shop_mac/family/macbook_pro&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://store.apple.com/us/browse/home/shop_mac/family/macbook_pro&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________
&lt;br&gt;&amp;gt;         Agustin Viñaowww.agustinvinao.com.ar
&lt;br&gt;&amp;gt;    agustinvinao (Skype)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Fri, Dec 4, 2009 at 6:32 PM, Colin Law &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26675882&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;clan...@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt; 2009/12/4 Agustin Nicolas Viñao Laseras &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26675882&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;agustinvi...@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; So sad that Mac not in countries like Argentina, only have expensive
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; resellers, we must pay price of 150% or more compared with the U.S..
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; _______________________
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Then you could use Ubuntu or one of the other similar distributions.
&lt;br&gt;&amp;gt; &amp;gt; That is good for RoR and cheaper, with excellent community support.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Colin
&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 Groups
&lt;br&gt;&amp;gt; &amp;gt; &amp;quot;Ruby on Rails: Talk&amp;quot; group.
&lt;br&gt;&amp;gt; &amp;gt; To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26675882&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk@...&lt;/a&gt;.
&lt;br&gt;&amp;gt; &amp;gt; To unsubscribe from this group, send email to
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26675882&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk+unsubscribe@...&lt;/a&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26675882&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk%2Bunsubscribe@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; .
&lt;br&gt;&amp;gt; &amp;gt; For more options, visit this group at
&lt;br&gt;&amp;gt; &amp;gt;&lt;a href=&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;/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=26675882&amp;i=6&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=26675882&amp;i=7&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-Why-do-so-many-Ruby-Rails-developers-use-Macs--tp26648224p26675882.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26675794</id>
	<title>Re: Route error to Admin namespace</title>
	<published>2009-12-07T03:14:00Z</published>
	<updated>2009-12-07T03:14:00Z</updated>
	<author>
		<name>Kristian Hellquist-2</name>
	</author>
	<content type="html">2009/12/6 Paulo Coutinho &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26675794&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;paulo@...&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; Your solution dont solve.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; But i try it:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; map.with_options(:namespace =&amp;gt; &amp;quot;admin&amp;quot;) do |admin|
&lt;br&gt;&amp;gt;       admin.clients_index 'admin/clients', :controller =&amp;gt; 'clients' #im on
&lt;br&gt;&amp;gt; admin so dont need redirect to &amp;quot;admin/clients&amp;quot; only &amp;quot;clients&amp;quot;
&lt;br&gt;&amp;gt; end
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; And to the index(home) action, it is OK, but for the others actions, NO
&lt;br&gt;&amp;gt; (insert/delete/edit).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This solution is near, but have to put all action do controller &amp;quot;clients&amp;quot;.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Any ideia?
&lt;/div&gt;&lt;br&gt;Oh my mistake ... :)
&lt;br&gt;&lt;br&gt;map.with_options(:namespace =&amp;gt; &amp;quot;admin&amp;quot;) do |admin|
&lt;br&gt;&amp;nbsp; admin.clients_index 'clients', :controller =&amp;gt; 'clients', :action =&amp;gt; 'index'
&lt;br&gt;&amp;nbsp; admin.clients_edit 'clients/:id/edit', :controller =&amp;gt; 'clients',
&lt;br&gt;:action =&amp;gt; 'edit'
&lt;br&gt;&amp;nbsp; admin.clients_insert 'clients/insert', :controller =&amp;gt; 'clients',
&lt;br&gt;:action =&amp;gt; 'insert', &amp;nbsp;:conditions =&amp;gt; { :method =&amp;gt; :post }
&lt;br&gt;end
&lt;br&gt;&lt;br&gt;Hint: Your actions looks to match the resource-pattern
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; Atenciosamente,
&lt;br&gt;&amp;gt; Paulo Coutinho.
&lt;br&gt;&amp;gt; Blog: www.prsolucoes.com/blog
&lt;br&gt;&amp;gt; Site: www.prsolucoes.com
&lt;br&gt;&amp;gt; Msn:  &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26675794&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;paulo@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 2009/12/6 Kristian Hellquist &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26675794&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kristian.hellquist@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; But local and on my server(passenger) it is ok, and function normal, but
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; on
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; JRUBY i get an error because it is thinking that &amp;quot;admin&amp;quot; is a controller
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; and
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; &amp;quot;clients&amp;quot; is a action of &amp;quot;admin&amp;quot;.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; My controllers is not restfull, so what i have to do, to correct it? Or
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; what
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; the best method to make the &amp;quot;admin&amp;quot;? I have to put any route?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I have an admin section in jruby application. Try to set the routes
&lt;br&gt;&amp;gt;&amp;gt; explicit with an admin namespace.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; map.with_options(:namespace =&amp;gt; &amp;quot;admin&amp;quot;) do |admin|
&lt;br&gt;&amp;gt;&amp;gt;  admin.resources :clients
&lt;br&gt;&amp;gt;&amp;gt;  # or in non restful-pattern
&lt;br&gt;&amp;gt;&amp;gt;  admin.clients_index 'clients', :controller =&amp;gt; 'admin/clients',
&lt;br&gt;&amp;gt;&amp;gt; :action =&amp;gt; 'index'
&lt;br&gt;&amp;gt;&amp;gt; end
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; You received this message because you are subscribed to the Google Groups
&lt;br&gt;&amp;gt;&amp;gt; &amp;quot;Ruby on Rails: Talk&amp;quot; group.
&lt;br&gt;&amp;gt;&amp;gt; To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26675794&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk@...&lt;/a&gt;.
&lt;br&gt;&amp;gt;&amp;gt; To unsubscribe from this group, send email to
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26675794&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; For more options, visit this group at
&lt;br&gt;&amp;gt;&amp;gt; &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;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; You received this message because you are subscribed to the Google Groups
&lt;br&gt;&amp;gt; &amp;quot;Ruby on Rails: Talk&amp;quot; group.
&lt;br&gt;&amp;gt; To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26675794&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk@...&lt;/a&gt;.
&lt;br&gt;&amp;gt; To unsubscribe from this group, send email to
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26675794&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk+unsubscribe@...&lt;/a&gt;.
&lt;br&gt;&amp;gt; For more options, visit this group at
&lt;br&gt;&amp;gt; &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;&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=26675794&amp;i=7&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=26675794&amp;i=8&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Route-error-to-Admin-namespace-tp26666685p26675794.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26675168</id>
	<title>Re: Where do I set Custom Headers as default?</title>
	<published>2009-12-07T02:13:35Z</published>
	<updated>2009-12-07T02:13:35Z</updated>
	<author>
		<name>Peter De Berdt</name>
	</author>
	<content type="html">&lt;html&gt;&lt;body style=&quot;word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; &quot;&gt;&lt;br&gt;&lt;div&gt;&lt;div&gt;On 07 Dec 2009, at 03:45, CoolAJ86 wrote:&lt;/div&gt;&lt;br class=&quot;Apple-interchange-newline&quot;&gt;&lt;blockquote type=&quot;cite&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; &quot;&gt;I would like to change the default headers which are sent out to&lt;br&gt;include these CORS headers:&lt;br&gt;&lt;br&gt;Access-Control-Allow-Origin: *&lt;br&gt;Access-Control-Allow-Methods: POST, GET, PUT, DELETE, OPTIONS&lt;br&gt;Access-Control-Allow-Headers: X-PINGOTHER&lt;br&gt;Content-Type: application/json; charset=UTF-8&lt;br&gt;&lt;br&gt;Could someone tell me where it is that I specify this?&lt;/span&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;div&gt;Assuming that you are on Rails 2.3 or higher, I would use a rack middleware for that. You have an example at&amp;nbsp;&lt;a href=&quot;http://www.hokstad.com/rewriting-content-types-with-rack.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.hokstad.com/rewriting-content-types-with-rack.html&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Keep in mind that the Rack config file in Rails is replaced by adding the rack middleware to environment.rb instead with:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;config.middleware.use NameOfMiddleWareClass&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;div&gt; &lt;div&gt;&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px&quot;&gt;&lt;font face=&quot;Helvetica&quot; size=&quot;3&quot; style=&quot;font: 12.0px Helvetica&quot;&gt;Best regards&lt;/font&gt;&lt;/p&gt; &lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px&quot;&gt;&lt;br&gt;&lt;/p&gt; &lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px&quot;&gt;&lt;font face=&quot;Helvetica&quot; size=&quot;3&quot; style=&quot;font: 12.0px Helvetica&quot;&gt;Peter De Berdt&lt;/font&gt;&lt;/p&gt; &lt;/div&gt; &lt;/div&gt;&lt;br&gt;&lt;/body&gt;&lt;/html&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=26675168&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=26675168&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;

</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Where-do-I-set-Custom-Headers-as-default--tp26671773p26675168.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26674911</id>
	<title>Cucumber and general Ruby question</title>
	<published>2009-12-07T01:52:11Z</published>
	<updated>2009-12-07T01:52:11Z</updated>
	<author>
		<name>Gintautas Simkus</name>
	</author>
	<content type="html">Hello,&lt;br&gt;&lt;br&gt;I have this cucumber step definition:&lt;br&gt;&lt;br&gt;Given /^the site has pages &amp;quot;(.+)&amp;quot; and &amp;quot;(.+)&amp;quot;$/ do | page_1, page_2 |&lt;br&gt;    Page.create :title =&amp;gt; page_1 if Page.find_by_title(page_1).nil?&lt;br&gt;
    Page.create :title =&amp;gt; page_2 if Page.find_by_title(page_2).nil?&lt;br&gt;end&lt;br&gt;&lt;br&gt;This works, but obviously I would like to DRY it up. I was thinking along the lines.&lt;br&gt;&lt;br&gt;Given /^the site has pages &amp;quot;(.+)&amp;quot; and &amp;quot;(.+)&amp;quot;$/ do | *args |&lt;br&gt;
    args.each { |page| Page.create :title =&amp;gt; page if Page.find_by_title(page).nil? }&lt;br&gt;end&lt;br&gt;&lt;br&gt;The code is not syntactically correct that is what my question is about: how to implement this concept right?&lt;br&gt;&lt;br&gt;Thanks.&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=26674911&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=26674911&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;

</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Cucumber-and-general-Ruby-question-tp26674911p26674911.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26674859</id>
	<title>Re: Problem installing RoR Ubuntu 9.04</title>
	<published>2009-12-07T01:46:52Z</published>
	<updated>2009-12-07T01:46:52Z</updated>
	<author>
		<name>LuisRuby</name>
	</author>
	<content type="html">OK, this is the result:
&lt;br&gt;gem env
&lt;br&gt;- RUBYGEMS VERSION: 1.3.1
&lt;br&gt;- RUBY VERSION: 1.8.7 (2008-08-11 patchlevel 72) [i486-linux]
&lt;br&gt;- INSTALLATION DIRECTORY: /var/lib/gems/1.8
&lt;br&gt;- RUBY EXECUTABLE: /usr/bin/ruby1.8
&lt;br&gt;- EXECUTABLE DIRECTORY: /var/lib/gems/1.8/bin
&lt;br&gt;- GEMS PATHS:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- /var/lib/gems/1.8
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- /home/luiz/.gem/ruby/1.8
&lt;br&gt;&lt;br&gt;On Dec 7, 7:22 am, rtacconi &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26674859&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rtacc...@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Usually when you export the path it should work. Check again that the
&lt;br&gt;&amp;gt; path corresponds to the gems path where you have the Rails gem. You
&lt;br&gt;&amp;gt; can use this command:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; gem env
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; to gather more info about the gem environment and you should be able
&lt;br&gt;&amp;gt; to see the GEM_PATH, so check if in that path you have the Rails gem.
&lt;br&gt;&amp;gt; It is a boring problem but it is usually a path issue.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Have you installed another version of Ruby? Reply with you gem env
&lt;br&gt;&amp;gt; output to get more help.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Dec 6, 4:04 pm, LuisRuby &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26674859&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;alfamemo...@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Dear friends,
&lt;br&gt;&amp;gt; &amp;gt; I installed RoR using the &amp;quot;Agile Web Development with Rails, 3rd
&lt;br&gt;&amp;gt; &amp;gt; edition&amp;quot; recipe in my Ubuntu 9.04. Apparently all has been installed
&lt;br&gt;&amp;gt; &amp;gt; well, but when I try to create a new application (page 35) using the
&lt;br&gt;&amp;gt; &amp;gt; command &amp;quot;rails demo&amp;quot;, I get the message &amp;quot;The program 'rails' is
&lt;br&gt;&amp;gt; &amp;gt; currently not installed. You can install it by typing: sudo apt-get
&lt;br&gt;&amp;gt; &amp;gt; install rails.  bash: rails: command not found.&amp;quot;
&lt;br&gt;&amp;gt; &amp;gt; It seems that Ubuntu not find Rails... and I typed the command &amp;quot;export
&lt;br&gt;&amp;gt; &amp;gt; PATH=/var/lib/gems/1.8/bin:$PATH.
&lt;br&gt;&amp;gt; &amp;gt; Sorry, I am RoR and Ubuntu novice.
&lt;br&gt;&amp;gt; &amp;gt; Thank you in advance!!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Luiz
&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=26674859&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=26674859&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problem-installing-RoR-Ubuntu-9.04-tp26666579p26674859.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26675274</id>
	<title>Re: Problem installing RoR Ubuntu 9.04</title>
	<published>2009-12-07T01:34:32Z</published>
	<updated>2009-12-07T01:34:32Z</updated>
	<author>
		<name>T_P</name>
	</author>
	<content type="html">Hi, Luiz!
&lt;br&gt;&lt;br&gt;I had the same problem as you. Namely, I struggled with installing RoR
&lt;br&gt;development environment on my Ubuntu box.
&lt;br&gt;I found a nice and EASY solution: use BitNami RubyStack, which is
&lt;br&gt;available at &lt;a href=&quot;http://bitnami.org/stack/rubystack&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://bitnami.org/stack/rubystack&lt;/a&gt;. Everything
&lt;br&gt;is included, and it works out of the box. I highly recommend it.
&lt;br&gt;&lt;br&gt;It has a very clear user guide as well, at
&lt;br&gt;&lt;a href=&quot;http://bitnami.org/files/stacks/rubystack/2.0-0/rubystack.pdf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://bitnami.org/files/stacks/rubystack/2.0-0/rubystack.pdf&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;HTH.
&lt;br&gt;&lt;br&gt;Tuo
&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=26675274&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=26675274&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problem-installing-RoR-Ubuntu-9.04-tp26666579p26675274.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26674733</id>
	<title>Ubuntu + RoR + Firebird  OR  Ubuntu + RoR + PostgreSQL ?</title>
	<published>2009-12-07T01:34:29Z</published>
	<updated>2009-12-07T01:34:29Z</updated>
	<author>
		<name>LuisRuby</name>
	</author>
	<content type="html">Dear friends,
&lt;br&gt;I am starting to build a system for an university using RoR. I would
&lt;br&gt;like to use Firebird because I worked with it for a long time and I
&lt;br&gt;love it! In this new project I will use a lot of stored procedures,
&lt;br&gt;data referential integrity and so on. But when I looked for the
&lt;br&gt;Firebird adapter for Ruby and the activerecord for Firebird adapter,
&lt;br&gt;it seems to have so few support and so few users, that I am afraid
&lt;br&gt;about its future.
&lt;br&gt;This is one of the most important e-mails I've sent on my life....! If
&lt;br&gt;I have to start using Postgre the time is now. But with a great pain
&lt;br&gt;on my heart for the Firebird.
&lt;br&gt;Could someone give me a good advice?
&lt;br&gt;Thank you very much!
&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=26674733&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=26674733&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Ubuntu-%2B-RoR-%2B-Firebird--OR--Ubuntu-%2B-RoR-%2B-PostgreSQL---tp26674733p26674733.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26674609</id>
	<title>Re: Problem installing RoR Ubuntu 9.04</title>
	<published>2009-12-07T01:22:05Z</published>
	<updated>2009-12-07T01:22:05Z</updated>
	<author>
		<name>rtacconi</name>
	</author>
	<content type="html">Usually when you export the path it should work. Check again that the
&lt;br&gt;path corresponds to the gems path where you have the Rails gem. You
&lt;br&gt;can use this command:
&lt;br&gt;&lt;br&gt;gem env
&lt;br&gt;&lt;br&gt;to gather more info about the gem environment and you should be able
&lt;br&gt;to see the GEM_PATH, so check if in that path you have the Rails gem.
&lt;br&gt;It is a boring problem but it is usually a path issue.
&lt;br&gt;&lt;br&gt;Have you installed another version of Ruby? Reply with you gem env
&lt;br&gt;output to get more help.
&lt;br&gt;&lt;br&gt;On Dec 6, 4:04 pm, LuisRuby &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26674609&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;alfamemo...@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Dear friends,
&lt;br&gt;&amp;gt; I installed RoR using the &amp;quot;Agile Web Development with Rails, 3rd
&lt;br&gt;&amp;gt; edition&amp;quot; recipe in my Ubuntu 9.04. Apparently all has been installed
&lt;br&gt;&amp;gt; well, but when I try to create a new application (page 35) using the
&lt;br&gt;&amp;gt; command &amp;quot;rails demo&amp;quot;, I get the message &amp;quot;The program 'rails' is
&lt;br&gt;&amp;gt; currently not installed. You can install it by typing: sudo apt-get
&lt;br&gt;&amp;gt; install rails.  bash: rails: command not found.&amp;quot;
&lt;br&gt;&amp;gt; It seems that Ubuntu not find Rails... and I typed the command &amp;quot;export
&lt;br&gt;&amp;gt; PATH=/var/lib/gems/1.8/bin:$PATH.
&lt;br&gt;&amp;gt; Sorry, I am RoR and Ubuntu novice.
&lt;br&gt;&amp;gt; Thank you in advance!!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Luiz
&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=26674609&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=26674609&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problem-installing-RoR-Ubuntu-9.04-tp26666579p26674609.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26674488</id>
	<title>Re: Re: Starting server is failing on Mac OSX 10.6 Snow  Leopard</title>
	<published>2009-12-07T01:09:12Z</published>
	<updated>2009-12-07T01:09:12Z</updated>
	<author>
		<name>Conrad Taylor</name>
	</author>
	<content type="html">On Sun, Dec 6, 2009 at 6:28 PM, timr &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26674488&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;timrandg@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&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;
I need help getting hpricot running on mac OS 10.6.2, ruby 1.9.1.&lt;br&gt;
Others have had the same problem apparently no answer has been posted.&lt;br&gt;
It seems that the gem install is not compiling one of the bundle files&lt;br&gt;
with the correct architecture. I am asking again for any help.&lt;br&gt;
Thanks in advance,&lt;br&gt;
Tim&lt;br&gt;
&lt;br&gt;
Here is how install goes:&lt;br&gt;
&lt;div class=&quot;im&quot;&gt;&lt;br&gt;
Tim:~/Desktop/RubyClub&amp;gt; sudo env ARCHFLAGS=&amp;quot;-arch i386&amp;quot; gem install&lt;br&gt;
why-hpricot --source &lt;a href=&quot;http://gems.github.com&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://gems.github.com&lt;/a&gt;&lt;br&gt;
Building native extensions.  This could take a while...&lt;br&gt;
Successfully installed why-hpricot-0.7.229&lt;br&gt;
1 gem installed&lt;br&gt;
Installing ri documentation for why-hpricot-0.7.229...&lt;br&gt;
Installing RDoc documentation for why-hpricot-0.7.229...&lt;br&gt;
Tim:~/Desktop/RubyClub&amp;gt; gem which hpricot&lt;br&gt;
(checking gem why-hpricot-0.7.229 for hpricot)&lt;br&gt;
/usr/local/lib/ruby19/gems/1.9.1/gems/why-hpricot-0.7.229/lib/&lt;br&gt;
hpricot.rb&lt;br&gt;
Tim:~/Desktop/RubyClub&amp;gt; ruby -e &amp;#39;require &amp;quot;hpricot&amp;quot;&amp;#39;&lt;br&gt;
/usr/local/lib/ruby19/gems/1.9.1/gems/why-hpricot-0.7.229/lib/&lt;br&gt;
hpricot.rb:20:in `require&amp;#39;: dlopen(/usr/local/lib/ruby19/gems/1.9.1/&lt;br&gt;
&lt;/div&gt;gems/why-hpricot-0.7.229/lib/hpricot_scan.bundle, 9): no suitable&lt;br&gt;
&lt;div class=&quot;im&quot;&gt;image found.  Did find: (LoadError)&lt;br&gt;
&lt;/div&gt;        /usr/local/lib/ruby19/gems/1.9.1/gems/why-hpricot-0.7.229/lib/&lt;br&gt;
&lt;div class=&quot;im&quot;&gt;hpricot_scan.bundle: mach-o, but wrong architecture - /usr/local/lib/&lt;br&gt;
&lt;/div&gt;&lt;div class=&quot;im&quot;&gt;ruby19/gems/1.9.1/gems/why-hpricot-0.7.229/lib/hpricot_scan.bundle&lt;br&gt;
        from /usr/local/lib/ruby19/gems/1.9.1/gems/why-hpricot-0.7.229/lib/&lt;br&gt;
hpricot.rb:20:in `&amp;lt;top (required)&amp;gt;&amp;#39;&lt;br&gt;
        from -e:1:in `require&amp;#39;&lt;br&gt;
        from -e:1:in `&amp;lt;main&amp;gt;&amp;#39;&lt;br&gt;
&lt;br&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Tim, the most recent version of hpricot is 0.8.2.  Thus, if you&amp;#39;re reinstalling&lt;/div&gt;&lt;div&gt;things, you might want to begin by making &lt;a href=&quot;http://gemcutter.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gemcutter.org&lt;/a&gt; your primary gem &lt;/div&gt;
&lt;div&gt;repository by doing the following:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;sudo gem install gemcutter&lt;/div&gt;&lt;div&gt;gem tumble&lt;/div&gt;&lt;div&gt;sudo gem install hpricot&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Next, let&amp;#39;s poke around your environment a bit by executing the following&lt;/div&gt;
&lt;div&gt;commands:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;which gem&lt;/div&gt;&lt;div&gt;gem environment&lt;/div&gt;&lt;div&gt;which ruby&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;Please give that a try and report back.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Good luck,&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;-Conrad&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&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 class=&quot;im&quot;&gt;
&lt;br&gt;
&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;On Oct 30, 9:01 am, Kurt &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26674488&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kur...@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;
&amp;gt; I am still running into this issue even after reinstalling hpricot&lt;br&gt;
&amp;gt; under Snow Leopard. When I require &amp;#39;hpricot&amp;#39; I get this error:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;         /usr/local/lib/ruby/gems/1.8/gems/hpricot-0.8.1/lib/&lt;br&gt;
&amp;gt; hpricot_scan.bundle: mach-o, but wrong architecture - /usr/local/lib/&lt;br&gt;
&amp;gt; ruby/gems/1.8/gems/hpricot-0.8.1/lib/hpricot_scan.bundle&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I have uninstalled and reinstalled the gem, including forcing the&lt;br&gt;
&amp;gt; architecture (both 64 and 32 bit). Either way I get the same error.&lt;br&gt;
&amp;gt; Here is what I&amp;#39;ve tried:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; sudo gem install hpricot&lt;br&gt;
&amp;gt; sudo env ARCHFLAGS=&amp;#39;-arch x86_64&amp;#39; gem install hpricot&lt;br&gt;
&amp;gt; sudo env ARCHFLAGS=&amp;#39;i386&amp;#39; gem install hpricot&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I am using Ruby 1.8.7 on a Mac Pro running 10.6.1.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; On Sep 5, 1:13 am, Ryo &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26674488&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ryoichiro.kam...@...&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; This issue has been resolved by reinstalling all gems.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&lt;a href=&quot;http://weblog.rubyonrails.org/2009/8/30/upgrading-to-snow-leopard&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://weblog.rubyonrails.org/2009/8/30/upgrading-to-snow-leopard&lt;/a&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=26674488&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=26674488&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk%2Bunsubscribe@...&lt;/a&gt;.&lt;br&gt;
&lt;/div&gt;&lt;/div&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;/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=26674488&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=26674488&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 http://groups.google.com/group/rubyonrails-talk?hl=en.&lt;br /&gt;

</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Starting-server-is-failing-on-Mac-OSX-10.6-Snow-Leopard-tp25305103p26674488.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26674371</id>
	<title>Re: Re: Starting server is failing on Mac OSX 10.6 Snow  Leopard</title>
	<published>2009-12-07T00:56:40Z</published>
	<updated>2009-12-07T00:56:40Z</updated>
	<author>
		<name>Conrad Taylor</name>
	</author>
	<content type="html">On Fri, Oct 30, 2009 at 9:01 AM, Kurt &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26674371&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kurtww@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&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;br&gt;
I am still running into this issue even after reinstalling hpricot&lt;br&gt;
under Snow Leopard. When I require &amp;#39;hpricot&amp;#39; I get this error:&lt;br&gt;
&lt;br&gt;
        /usr/local/lib/ruby/gems/1.8/gems/hpricot-0.8.1/lib/&lt;br&gt;
&lt;div class=&quot;im&quot;&gt;hpricot_scan.bundle: mach-o, but wrong architecture - /usr/local/lib/&lt;br&gt;
&lt;/div&gt;ruby/gems/1.8/gems/hpricot-0.8.1/lib/hpricot_scan.bundle&lt;br&gt;
&lt;br&gt;
I have uninstalled and reinstalled the gem, including forcing the&lt;br&gt;
architecture (both 64 and 32 bit). Either way I get the same error.&lt;br&gt;
Here is what I&amp;#39;ve tried:&lt;br&gt;
&lt;br&gt;
sudo gem install hpricot&lt;br&gt;
sudo env ARCHFLAGS=&amp;#39;-arch x86_64&amp;#39; gem install hpricot&lt;br&gt;
sudo env ARCHFLAGS=&amp;#39;i386&amp;#39; gem install hpricot&lt;br&gt;
&lt;br&gt;
I am using Ruby 1.8.7 on a Mac Pro running 10.6.1.&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;/div&gt;&lt;div&gt;Kurt, do you have a test case for reproducing the error message?&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;-Conrad&lt;/div&gt;&lt;div&gt; &lt;/div&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;
On Sep 5, 1:13 am, Ryo &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26674371&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ryoichiro.kam...@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;
&amp;gt; This issue has been resolved by reinstalling all gems.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://weblog.rubyonrails.org/2009/8/30/upgrading-to-snow-leopard&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://weblog.rubyonrails.org/2009/8/30/upgrading-to-snow-leopard&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
--~--~---------~--~----~------------~-------~--~----~&lt;br&gt;
You received this message because you are subscribed to the Google Groups &amp;quot;Ruby on Rails: Talk&amp;quot; group.&lt;br&gt;
To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26674371&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=26674371&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;/div&gt;&lt;/div&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=26674371&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=26674371&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;

</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Starting-server-is-failing-on-Mac-OSX-10.6-Snow-Leopard-tp25305103p26674371.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26674397</id>
	<title>problem starting rails (hobo) app with passenger</title>
	<published>2009-12-07T00:55:26Z</published>
	<updated>2009-12-07T00:55:26Z</updated>
	<author>
		<name>Edward Samokhvalov</name>
	</author>
	<content type="html">Dear All!
&lt;br&gt;&lt;br&gt;I've set up my apache, passenger and configs, the passenger works, but
&lt;br&gt;the app can't be started. the erros are the following
&lt;br&gt;&lt;br&gt;These are the possible causes:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; *
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; There may be a syntax error in the application's code. Please
&lt;br&gt;check for such errors and fix them.
&lt;br&gt;&amp;nbsp; &amp;nbsp; *
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; A required library may not installed. Please install all
&lt;br&gt;libraries that this application requires.
&lt;br&gt;&amp;nbsp; &amp;nbsp; *
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; The application may not be properly configured. Please check
&lt;br&gt;whether all configuration files are written correctly, fix any
&lt;br&gt;incorrect configurations, and restart this application.
&lt;br&gt;&amp;nbsp; &amp;nbsp; *
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; A service that the application relies on (such as the database
&lt;br&gt;server or the Ferret search engine server) may not have been started.
&lt;br&gt;Please start that service.
&lt;br&gt;&lt;br&gt;Further information about the error may have been written to the
&lt;br&gt;application's log file. Please check it in order to analyse the
&lt;br&gt;problem.
&lt;br&gt;&lt;br&gt;Error message:
&lt;br&gt;&amp;nbsp; &amp;nbsp; No such file or directory - /nonexistent
&lt;br&gt;Exception class:
&lt;br&gt;&amp;nbsp; &amp;nbsp; Errno::ENOENT
&lt;br&gt;Application root:
&lt;br&gt;&amp;nbsp; &amp;nbsp; /home/es-server/employee_status
&lt;br&gt;&lt;br&gt;Backtrace:
&lt;br&gt;&amp;nbsp; &amp;nbsp; # &amp;nbsp; File &amp;nbsp; &amp;nbsp;Line &amp;nbsp; &amp;nbsp;Location
&lt;br&gt;&amp;nbsp; &amp;nbsp; 0 &amp;nbsp; /usr/local/lib/site_ruby/1.8/rubygems.rb &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;723 &amp;nbsp; &amp;nbsp; in
&lt;br&gt;`initialize'
&lt;br&gt;&amp;nbsp; &amp;nbsp; 1 &amp;nbsp; /usr/local/lib/site_ruby/1.8/rubygems.rb &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;723 &amp;nbsp; &amp;nbsp; in
&lt;br&gt;`new'
&lt;br&gt;&amp;nbsp; &amp;nbsp; 2 &amp;nbsp; /usr/local/lib/site_ruby/1.8/rubygems.rb &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;723 &amp;nbsp; &amp;nbsp; in
&lt;br&gt;`set_paths'
&lt;br&gt;&amp;nbsp; &amp;nbsp; 3 &amp;nbsp; /usr/local/lib/site_ruby/1.8/rubygems.rb &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;719 &amp;nbsp; &amp;nbsp; in
&lt;br&gt;`each'
&lt;br&gt;&amp;nbsp; &amp;nbsp; 4 &amp;nbsp; /usr/local/lib/site_ruby/1.8/rubygems.rb &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;719 &amp;nbsp; &amp;nbsp; in
&lt;br&gt;`set_paths'
&lt;br&gt;&amp;nbsp; &amp;nbsp; 5 &amp;nbsp; /usr/local/lib/site_ruby/1.8/rubygems.rb &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;526 &amp;nbsp; &amp;nbsp; in
&lt;br&gt;`path'
&lt;br&gt;&amp;nbsp; &amp;nbsp; 6 &amp;nbsp; /usr/local/lib/site_ruby/1.8/rubygems/source_index.rb
&lt;br&gt;66 &amp;nbsp; &amp;nbsp; &amp;nbsp;in
&lt;br&gt;`installed_spec_directories'
&lt;br&gt;&amp;nbsp; &amp;nbsp; 7 &amp;nbsp; /usr/local/lib/site_ruby/1.8/rubygems/source_index.rb
&lt;br&gt;56 &amp;nbsp; &amp;nbsp; &amp;nbsp;in
&lt;br&gt;`from_installed_gems'
&lt;br&gt;&amp;nbsp; &amp;nbsp; 8 &amp;nbsp; /usr/local/lib/site_ruby/1.8/rubygems.rb &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;736 &amp;nbsp; &amp;nbsp; in
&lt;br&gt;`source_index'
&lt;br&gt;&amp;nbsp; &amp;nbsp; 9 &amp;nbsp; /usr/local/lib/site_ruby/1.8/rubygems.rb &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;140 &amp;nbsp; &amp;nbsp; in
&lt;br&gt;`activate'
&lt;br&gt;&amp;nbsp; &amp;nbsp; 10 &amp;nbsp;/usr/local/lib/site_ruby/1.8/rubygems.rb &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;49 &amp;nbsp; &amp;nbsp; &amp;nbsp;in
&lt;br&gt;`gem'
&lt;br&gt;&amp;nbsp; &amp;nbsp; 11 &amp;nbsp;/home/es-server/employee_status/config/boot.rb &amp;nbsp;60 &amp;nbsp; &amp;nbsp; &amp;nbsp;in
&lt;br&gt;`load_rails_gem'
&lt;br&gt;&amp;nbsp; &amp;nbsp; 12 &amp;nbsp;/home/es-server/employee_status/config/boot.rb &amp;nbsp;54 &amp;nbsp; &amp;nbsp; &amp;nbsp;in
&lt;br&gt;`load_initializer'
&lt;br&gt;&amp;nbsp; &amp;nbsp; 13 &amp;nbsp;/home/es-server/employee_status/config/boot.rb &amp;nbsp;38 &amp;nbsp; &amp;nbsp; &amp;nbsp;in
&lt;br&gt;`run'
&lt;br&gt;&amp;nbsp; &amp;nbsp; 14 &amp;nbsp;/home/es-server/employee_status/config/boot.rb &amp;nbsp;11 &amp;nbsp; &amp;nbsp; &amp;nbsp;in
&lt;br&gt;`boot!'
&lt;br&gt;&amp;nbsp; &amp;nbsp; 15 &amp;nbsp;/home/es-server/employee_status/config/boot.rb &amp;nbsp;110
&lt;br&gt;&amp;nbsp; &amp;nbsp; 16 &amp;nbsp;/usr/local/lib/site_ruby/1.8/rubygems/
&lt;br&gt;custom_require.rb &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 31
&lt;br&gt;in `gem_original_require'
&lt;br&gt;&amp;nbsp; &amp;nbsp; 17 &amp;nbsp;/usr/local/lib/site_ruby/1.8/rubygems/
&lt;br&gt;custom_require.rb &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 31
&lt;br&gt;in `require'
&lt;br&gt;&amp;nbsp; &amp;nbsp; 18 &amp;nbsp;/home/es-server/employee_status/config/environment.rb &amp;nbsp; 7
&lt;br&gt;&amp;nbsp; &amp;nbsp; 19 &amp;nbsp;/usr/local/lib/site_ruby/1.8/rubygems/
&lt;br&gt;custom_require.rb &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 31
&lt;br&gt;in `gem_original_require'
&lt;br&gt;&amp;nbsp; &amp;nbsp; 20 &amp;nbsp;/usr/local/lib/site_ruby/1.8/rubygems/
&lt;br&gt;custom_require.rb &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 31
&lt;br&gt;in `require'
&lt;br&gt;&amp;nbsp; &amp;nbsp; 21 &amp;nbsp;/usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/
&lt;br&gt;phusion_passenger/railz/application_spawner.rb &amp;nbsp;299 &amp;nbsp; &amp;nbsp; in
&lt;br&gt;`preload_application'
&lt;br&gt;&amp;nbsp; &amp;nbsp; 22 &amp;nbsp;/usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/
&lt;br&gt;phusion_passenger/railz/application_spawner.rb &amp;nbsp;248 &amp;nbsp; &amp;nbsp; in
&lt;br&gt;`initialize_server'
&lt;br&gt;&amp;nbsp; &amp;nbsp; 23 &amp;nbsp;/usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/
&lt;br&gt;phusion_passenger/utils.rb &amp;nbsp; &amp;nbsp; &amp;nbsp;255 &amp;nbsp; &amp;nbsp; in `report_app_init_status'
&lt;br&gt;&amp;nbsp; &amp;nbsp; 24 &amp;nbsp;/usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/
&lt;br&gt;phusion_passenger/railz/application_spawner.rb &amp;nbsp;233 &amp;nbsp; &amp;nbsp; in
&lt;br&gt;`initialize_server'
&lt;br&gt;&amp;nbsp; &amp;nbsp; 25 &amp;nbsp;/usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/
&lt;br&gt;phusion_passenger/abstract_server.rb &amp;nbsp; &amp;nbsp;194 &amp;nbsp; &amp;nbsp; in
&lt;br&gt;`start_synchronously'
&lt;br&gt;&amp;nbsp; &amp;nbsp; 26 &amp;nbsp;/usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/
&lt;br&gt;phusion_passenger/abstract_server.rb &amp;nbsp; &amp;nbsp;163 &amp;nbsp; &amp;nbsp; in `start'
&lt;br&gt;&amp;nbsp; &amp;nbsp; 27 &amp;nbsp;/usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/
&lt;br&gt;phusion_passenger/railz/application_spawner.rb &amp;nbsp;209 &amp;nbsp; &amp;nbsp; in `start'
&lt;br&gt;&amp;nbsp; &amp;nbsp; 28 &amp;nbsp;/usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/
&lt;br&gt;phusion_passenger/spawn_manager.rb &amp;nbsp; &amp;nbsp; &amp;nbsp;262 &amp;nbsp; &amp;nbsp; in
&lt;br&gt;`spawn_rails_application'
&lt;br&gt;&amp;nbsp; &amp;nbsp; 29 &amp;nbsp;/usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/
&lt;br&gt;phusion_passenger/abstract_server_collection.rb &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 126 &amp;nbsp; &amp;nbsp; in
&lt;br&gt;`lookup_or_add'
&lt;br&gt;&amp;nbsp; &amp;nbsp; 30 &amp;nbsp;/usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/
&lt;br&gt;phusion_passenger/spawn_manager.rb &amp;nbsp; &amp;nbsp; &amp;nbsp;256 &amp;nbsp; &amp;nbsp; in
&lt;br&gt;`spawn_rails_application'
&lt;br&gt;&amp;nbsp; &amp;nbsp; 31 &amp;nbsp;/usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/
&lt;br&gt;phusion_passenger/abstract_server_collection.rb &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 80 &amp;nbsp; &amp;nbsp; &amp;nbsp;in
&lt;br&gt;`synchronize'
&lt;br&gt;&amp;nbsp; &amp;nbsp; 32 &amp;nbsp;/usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/
&lt;br&gt;phusion_passenger/abstract_server_collection.rb &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 79 &amp;nbsp; &amp;nbsp; &amp;nbsp;in
&lt;br&gt;`synchronize'
&lt;br&gt;&amp;nbsp; &amp;nbsp; 33 &amp;nbsp;/usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/
&lt;br&gt;phusion_passenger/spawn_manager.rb &amp;nbsp; &amp;nbsp; &amp;nbsp;255 &amp;nbsp; &amp;nbsp; in
&lt;br&gt;`spawn_rails_application'
&lt;br&gt;&amp;nbsp; &amp;nbsp; 34 &amp;nbsp;/usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/
&lt;br&gt;phusion_passenger/spawn_manager.rb &amp;nbsp; &amp;nbsp; &amp;nbsp;154 &amp;nbsp; &amp;nbsp; in `spawn_application'
&lt;br&gt;&amp;nbsp; &amp;nbsp; 35 &amp;nbsp;/usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/
&lt;br&gt;phusion_passenger/spawn_manager.rb &amp;nbsp; &amp;nbsp; &amp;nbsp;287 &amp;nbsp; &amp;nbsp; in
&lt;br&gt;`handle_spawn_application'
&lt;br&gt;&amp;nbsp; &amp;nbsp; 36 &amp;nbsp;/usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/
&lt;br&gt;phusion_passenger/abstract_server.rb &amp;nbsp; &amp;nbsp;352 &amp;nbsp; &amp;nbsp; in `__send__'
&lt;br&gt;&amp;nbsp; &amp;nbsp; 37 &amp;nbsp;/usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/
&lt;br&gt;phusion_passenger/abstract_server.rb &amp;nbsp; &amp;nbsp;352 &amp;nbsp; &amp;nbsp; in `main_loop'
&lt;br&gt;&amp;nbsp; &amp;nbsp; 38 &amp;nbsp;/usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/
&lt;br&gt;phusion_passenger/abstract_server.rb &amp;nbsp; &amp;nbsp;196 &amp;nbsp; &amp;nbsp; in
&lt;br&gt;`start_synchronously'
&lt;br&gt;&amp;nbsp; &amp;nbsp; 39 &amp;nbsp;/usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/bin/passenger-
&lt;br&gt;spawn-server &amp;nbsp; &amp;nbsp;61
&lt;br&gt;&lt;br&gt;Please help.
&lt;br&gt;&lt;br&gt;thx 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=26674397&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=26674397&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/problem-starting-rails-%28hobo%29-app-with-passenger-tp26674397p26674397.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26674332</id>
	<title>Re: Problem installing RoR Ubuntu 9.04</title>
	<published>2009-12-07T00:52:40Z</published>
	<updated>2009-12-07T00:52:40Z</updated>
	<author>
		<name>LuisRuby</name>
	</author>
	<content type="html">OK but... I forgot to ask... before any try to solve my problem, I
&lt;br&gt;think I have to uninstall RoR and then reinstall. How to do that? I
&lt;br&gt;found something but as I'm a novice, it's difficult to choose a path.
&lt;br&gt;Thank you for all that gently replied!
&lt;br&gt;&lt;br&gt;On Dec 6, 2:35 pm, Dhruva Sagar &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26674332&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dhruva.sa...@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Follow this tutorial.&lt;a href=&quot;https://help.ubuntu.com/community/RubyOnRails&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://help.ubuntu.com/community/RubyOnRails&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks &amp; Regards,
&lt;br&gt;&amp;gt; Dhruva Sagar.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Sun, Dec 6, 2009 at 9:34 PM, LuisRuby &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26674332&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;alfamemo...@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt; Dear friends,
&lt;br&gt;&amp;gt; &amp;gt; I installed RoR using the &amp;quot;Agile Web Development with Rails, 3rd
&lt;br&gt;&amp;gt; &amp;gt; edition&amp;quot; recipe in my Ubuntu 9.04. Apparently all has been installed
&lt;br&gt;&amp;gt; &amp;gt; well, but when I try to create a new application (page 35) using the
&lt;br&gt;&amp;gt; &amp;gt; command &amp;quot;rails demo&amp;quot;, I get the message &amp;quot;The program 'rails' is
&lt;br&gt;&amp;gt; &amp;gt; currently not installed. You can install it by typing: sudo apt-get
&lt;br&gt;&amp;gt; &amp;gt; install rails.  bash: rails: command not found.&amp;quot;
&lt;br&gt;&amp;gt; &amp;gt; It seems that Ubuntu not find Rails... and I typed the command &amp;quot;export
&lt;br&gt;&amp;gt; &amp;gt; PATH=/var/lib/gems/1.8/bin:$PATH.
&lt;br&gt;&amp;gt; &amp;gt; Sorry, I am RoR and Ubuntu novice.
&lt;br&gt;&amp;gt; &amp;gt; Thank you in advance!!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Luiz
&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 Groups
&lt;br&gt;&amp;gt; &amp;gt; &amp;quot;Ruby on Rails: Talk&amp;quot; group.
&lt;br&gt;&amp;gt; &amp;gt; To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26674332&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk@...&lt;/a&gt;.
&lt;br&gt;&amp;gt; &amp;gt; To unsubscribe from this group, send email to
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26674332&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk+unsubscribe@...&lt;/a&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26674332&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rubyonrails-talk%2Bunsubscribe@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; .
&lt;br&gt;&amp;gt; &amp;gt; For more options, visit this group at
&lt;br&gt;&amp;gt; &amp;gt;&lt;a href=&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;/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=26674332&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=26674332&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problem-installing-RoR-Ubuntu-9.04-tp26666579p26674332.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26674287</id>
	<title>Re: setting response.headers is non-effective?</title>
	<published>2009-12-07T00:48:28Z</published>
	<updated>2009-12-07T00:48:28Z</updated>
	<author>
		<name>Dave English-3</name>
	</author>
	<content type="html">In message 
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26674287&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bbe1cc46-4b0b-4732-9478-2c21cce885e2@...&lt;/a&gt;&amp;gt;, 
&lt;br&gt;CoolAJ86 &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26674287&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;coolaj86@...&lt;/a&gt;&amp;gt; writes
&lt;br&gt;&amp;gt;As far as I know, this should append these headers to the response
&lt;br&gt;&amp;gt;from Rails no matter what, right?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;I've checked in Fierbug in Fierfox 3.5.5 and I only see my usual
&lt;br&gt;&amp;gt;headers. What might be getting in the way?
&lt;br&gt;&lt;br&gt;Because this is Ruby, not C?
&lt;br&gt;&lt;br&gt;Use = for assignment, not ==
&lt;br&gt;&lt;br&gt;Surely?
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;#app/controllers/application_controller.rb
&lt;br&gt;&amp;gt;class ApplicationController &amp;lt; ActionController::Base
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;after_filter :cors
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;def cors
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;response.headers['Access-Control-Allow-Origin'] == '*'
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;response.headers['Access-Control-Allow-Methods'] == 'POST, GET,
&lt;br&gt;&amp;gt;PUT, DELETE, OPTIONS, HEAD'
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;response.headers['Access-Control-Allow-Credentials'] == 'true'
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;response.headers['Access-Control-Allow-Headers'] == 'X-
&lt;br&gt;&amp;gt;PINGOTHER'
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;response.headers['Access-Control-Max-Age'] == '86400' # 24 hours
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;end
&lt;br&gt;&amp;gt;end
&lt;/div&gt;-- 
&lt;br&gt;Dave English - Principal Software QA Engineer
&lt;br&gt;Fiscal Systems (Software) Ltd
&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=26674287&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=26674287&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/setting-response.headers-is-non-effective--tp26672759p26674287.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26673879</id>
	<title>accepts_nested_attributes_for + paperclip + polymorphic +  problem</title>
	<published>2009-12-07T00:05:18Z</published>
	<updated>2009-12-07T00:05:18Z</updated>
	<author>
		<name>Abhishek shukla</name>
	</author>
	<content type="html">Hello Friends,&lt;br&gt;&lt;br&gt; &lt;br&gt;I am not able to retrieve the value form page&lt;br&gt;&lt;br&gt;controller&lt;br&gt;  offices_controller&lt;br&gt;    def new&lt;br&gt;     @office = Office.new    &lt;br&gt;    end&lt;br&gt;&lt;br&gt;    def create&lt;br&gt;     @office = Office.new(params[:office])&lt;br&gt;
     @office.save&lt;br&gt;   end&lt;br&gt; end&lt;br&gt;&lt;br&gt;VIEW&lt;br&gt;  &amp;lt;% form_for @office do |f| %&amp;gt;&lt;br&gt;    &amp;lt;%= f.text_area :office_name %&amp;gt;&lt;br&gt;    &amp;lt;% f.fields_for :images_attributes do |i| %&amp;gt;&lt;br&gt;     &amp;lt;%= i.file_field :avatar %&amp;gt;&lt;br&gt;
    &amp;lt;%end%&amp;gt;&lt;br&gt;    &amp;lt;%= f.submit &amp;quot;Submit&amp;quot; %&amp;gt;&lt;br&gt;  &amp;lt;%end%&amp;gt;&lt;br&gt;&lt;br&gt;Model&lt;br&gt;&lt;br&gt;Office.rb&lt;br&gt;    accepts_nested_attributes_for :image&lt;br&gt;&lt;br&gt;Image.rb&lt;br&gt;     belongs_to :imagable, :polymorphic =&amp;gt; true&lt;br&gt;
&lt;br&gt;PROBLEM&lt;br&gt; When I press submit, the params[:office] only contain :office_name and avatar is getting lost? I don;t know where excatly I am getting wrong.&lt;br&gt;&lt;br&gt;Thanks for any suggestion&lt;br&gt;&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=26673879&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=26673879&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;

</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/accepts_nested_attributes_for-%2B-paperclip-%2B-polymorphic-%2B--problem-tp26673879p26673879.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26673014</id>
	<title>Re: setting response.headers is non-effective?</title>
	<published>2009-12-06T22:13:39Z</published>
	<updated>2009-12-06T22:13:39Z</updated>
	<author>
		<name>xds2000</name>
	</author>
	<content type="html">your way is correct.&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://guides.rubyonrails.org/action_controller_overview.html#other-ways-to-use-filters&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://guides.rubyonrails.org/action_controller_overview.html#other-ways-to-use-filters&lt;/a&gt;&lt;br&gt;&lt;h5 id=&quot;setting-custom-headers&quot;&gt;
9.2.1 Setting Custom Headers&lt;/h5&gt;
&lt;p&gt;If you want to set custom headers for a response then &lt;tt&gt;response.headers&lt;/tt&gt;
is the place to do it. The headers attribute is a hash which maps
header names to their values, and Rails will set some of them
automatically. If you want to add or change a header, just assign it to
&lt;tt&gt;response.headers&lt;/tt&gt; this way:&lt;/p&gt;
&lt;div class=&quot;code_container&quot;&gt;&lt;code class=&quot;ruby&quot;&gt;
response.headers[&lt;span class=&quot;string&quot;&gt;&amp;quot;Content-Type&amp;quot;&lt;/span&gt;] = &lt;span class=&quot;string&quot;&gt;&amp;quot;application/pdf&amp;quot;&lt;/span&gt;
&lt;/code&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;2009/12/7 CoolAJ86 &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26673014&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;coolaj86@...&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;
As far as I know, this should append these headers to the response&lt;br&gt;
from Rails no matter what, right?&lt;br&gt;
&lt;br&gt;
I&amp;#39;ve checked in Fierbug in Fierfox 3.5.5 and I only see my usual&lt;br&gt;
headers. What might be getting in the way?&lt;br&gt;
&lt;br&gt;
#app/controllers/application_controller.rb&lt;br&gt;
class ApplicationController &amp;lt; ActionController::Base&lt;br&gt;
    after_filter :cors&lt;br&gt;
&lt;br&gt;
    def cors&lt;br&gt;
      response.headers[&amp;#39;Access-Control-Allow-Origin&amp;#39;] == &amp;#39;*&amp;#39;&lt;br&gt;
      response.headers[&amp;#39;Access-Control-Allow-Methods&amp;#39;] == &amp;#39;POST, GET,&lt;br&gt;
PUT, DELETE, OPTIONS, HEAD&amp;#39;&lt;br&gt;
      response.headers[&amp;#39;Access-Control-Allow-Credentials&amp;#39;] == &amp;#39;true&amp;#39;&lt;br&gt;
      response.headers[&amp;#39;Access-Control-Allow-Headers&amp;#39;] == &amp;#39;X-&lt;br&gt;
PINGOTHER&amp;#39;&lt;br&gt;
      response.headers[&amp;#39;Access-Control-Max-Age&amp;#39;] == &amp;#39;86400&amp;#39; # 24 hours&lt;br&gt;
    end&lt;br&gt;
end&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=26673014&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=26673014&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;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;tommy xiao&lt;br&gt;E-mail: xiaods(AT)&lt;a href=&quot;http://gmail.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gmail.com&lt;/a&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=26673014&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=26673014&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;

</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/setting-response.headers-is-non-effective--tp26672759p26673014.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26672912</id>
	<title>Re: how do I manually create POST parameters that are nested?  (e.g. I'm creating the request in .Net to contact a Rails backend)</title>
	<published>2009-12-06T21:54:58Z</published>
	<updated>2009-12-06T21:54:58Z</updated>
	<author>
		<name>Greg Hauptmann-3</name>
	</author>
	<content type="html">got it - it was actually as simple as creating the name for the key/value pairs in .net client to look like:  &amp;quot;webfile[path]&amp;quot;    :)  &lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;2009/12/7 Greg Hauptmann &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26672912&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;greg.hauptmann.ruby@...&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;span style=&quot;font-family: courier new,monospace;&quot;&gt;Hi,&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;
&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;How do I manually create nested POST parameters for a http web request?  I have a .NET C# client for which I&amp;#39;m creating a HTTP request to a Rails page.  Everything is fine so far, however I&amp;#39;ve noted that the parameters I&amp;#39;m creating for the request (key/value pairs) are expected to be nested.  I&amp;#39;m actually also having a hard time trying to work out in a controller before_filter how to do a &amp;quot;puts&amp;quot; on the raw request content to see how a successful request formats it.&lt;br&gt;

&lt;br&gt;&lt;u&gt;&lt;br&gt;RAILS BACKEND EXPECTATION&lt;/u&gt; (a successful login file, when I called from browser (not .net))&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;  action_controller.request.request_parameters: !map:HashWithIndifferentAccess&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;

&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;    commit: Save&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;    &lt;b&gt;webfile&lt;/b&gt;: !map:HashWithIndifferentAccess&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;

&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;      &lt;b&gt;path&lt;/b&gt;: winter&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;      &lt;b&gt;file&lt;/b&gt;: &amp;amp;id005 !ruby/object:File&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;

&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;        content_type: image/jpeg&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt;        original_path: Winter.jpg&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;

&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;&lt;u&gt;C# Parameter Creation&lt;/u&gt;:&lt;br&gt;            var form = new NameValueCollection();&lt;br&gt;            form[&amp;quot;path&amp;quot;] = &amp;quot;winter&amp;quot;;  ==&amp;gt; THIS DOESN&amp;#39;T WORK BECAUSE I THINK IT MAY HAVE TO BE NESTED WITHIN THE &amp;quot;webfile&amp;quot; HASH&lt;br&gt;

&lt;br&gt;&lt;u&gt;C# Routine&lt;/u&gt;:&lt;br&gt;&lt;br&gt;        public static HttpWebResponse Upload(HttpWebRequest req, UploadFile[] files, NameValueCollection form)&lt;br&gt;        {&lt;br&gt;            List&amp;lt;MimePart&amp;gt; mimeParts = new List&amp;lt;MimePart&amp;gt;();&lt;br&gt;

&lt;br&gt;            try&lt;br&gt;            {&lt;br&gt;                foreach (string key in form.AllKeys)&lt;br&gt;                {&lt;br&gt;                    StringMimePart part = new StringMimePart();&lt;br&gt;&lt;br&gt;                    part.Headers[&amp;quot;Content-Disposition&amp;quot;] = &amp;quot;form-data; name=\&amp;quot;&amp;quot; + key + &amp;quot;\&amp;quot;&amp;quot;;&lt;br&gt;

                    part.StringData = form[key];&lt;br&gt;&lt;br&gt;                    mimeParts.Add(part);&lt;br&gt;                }&lt;br&gt;&lt;br&gt;                int nameIndex = 0;&lt;br&gt;&lt;br&gt;                foreach (UploadFile file in files)&lt;br&gt;

                {&lt;br&gt;                    StreamMimePart part = new StreamMimePart();&lt;br&gt;&lt;br&gt;                    if (string.IsNullOrEmpty(file.FieldName))&lt;br&gt;                        file.FieldName = &amp;quot;file&amp;quot; + nameIndex++;&lt;br&gt;

&lt;br&gt;                    part.Headers[&amp;quot;Content-Disposition&amp;quot;] = &amp;quot;form-data; name=\&amp;quot;&amp;quot; + file.FieldName + &amp;quot;\&amp;quot;; filename=\&amp;quot;&amp;quot; + file.FileName + &amp;quot;\&amp;quot;&amp;quot;;&lt;br&gt;                    part.Headers[&amp;quot;Content-Type&amp;quot;] = file.ContentType;&lt;br&gt;

&lt;br&gt;                    part.SetStream(file.Data);&lt;br&gt;&lt;br&gt;                    mimeParts.Add(part);&lt;br&gt;                }&lt;br&gt;&lt;br&gt;                string boundary = &amp;quot;----------&amp;quot; + DateTime.Now.Ticks.ToString(&amp;quot;x&amp;quot;);&lt;br&gt;

&lt;br&gt;                req.ContentType = &amp;quot;multipart/form-data; boundary=&amp;quot; + boundary;&lt;br&gt;                req.Method = &amp;quot;POST&amp;quot;;&lt;br&gt;&lt;br&gt;                long contentLength = 0;&lt;br&gt;&lt;br&gt;                byte[] _footer = Encoding.UTF8.GetBytes(&amp;quot;--&amp;quot; + boundary + &amp;quot;--\r\n&amp;quot;);&lt;br&gt;

&lt;br&gt;                foreach (MimePart part in mimeParts)&lt;br&gt;                {&lt;br&gt;                    contentLength += part.GenerateHeaderFooterData(boundary);&lt;br&gt;                }&lt;br&gt;&lt;br&gt;                req.ContentLength = contentLength + _footer.Length;&lt;br&gt;

&lt;br&gt;                byte[] buffer = new byte[8192];&lt;br&gt;                byte[] afterFile = Encoding.UTF8.GetBytes(&amp;quot;\r\n&amp;quot;);&lt;br&gt;                int read;&lt;br&gt;&lt;br&gt;                using (Stream s = req.GetRequestStream())&lt;br&gt;

                {&lt;br&gt;                    foreach (MimePart part in mimeParts)&lt;br&gt;                    {&lt;br&gt;                        s.Write(part.Header, 0, part.Header.Length);&lt;br&gt;&lt;br&gt;                        while ((read = part.Data.Read(buffer, 0, buffer.Length)) &amp;gt; 0)&lt;br&gt;

                            s.Write(buffer, 0, read);&lt;br&gt;&lt;br&gt;                        part.Data.Dispose();&lt;br&gt;&lt;br&gt;                        s.Write(afterFile, 0, afterFile.Length);&lt;br&gt;                    }&lt;br&gt;&lt;br&gt;                    s.Write(_footer, 0, _footer.Length);&lt;br&gt;

                }&lt;br&gt;&lt;br&gt;                return (HttpWebResponse)req.GetResponse();&lt;br&gt;            }&lt;br&gt;            catch&lt;br&gt;            {&lt;br&gt;                foreach (MimePart part in mimeParts)&lt;br&gt;                    if (part.Data != null)&lt;br&gt;

                        part.Data.Dispose();&lt;br&gt;&lt;br&gt;                throw;&lt;br&gt;            }&lt;br&gt;        }&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;Thanks&lt;br&gt;&lt;br&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;

&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Greg &lt;br&gt;&lt;a href=&quot;http://blog.gregnet.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://blog.gregnet.org/&lt;/a&gt;&lt;br&gt;&lt;br&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=26672912&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=26672912&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 http://groups.google.com/group/rubyonrails-talk?hl=en.&lt;br /&gt;

</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/how-do-I-manually-create-POST-parameters-that-are-nested---%28e.g.-I%27m-creating-the-request-in-.Net-to-contact-a-Rails-backend%29-tp26671216p26672912.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26672759</id>
	<title>setting response.headers is non-effective?</title>
	<published>2009-12-06T21:25:09Z</published>
	<updated>2009-12-06T21:25:09Z</updated>
	<author>
		<name>AJ ONeal</name>
	</author>
	<content type="html">As far as I know, this should append these headers to the response
&lt;br&gt;from Rails no matter what, right?
&lt;br&gt;&lt;br&gt;I've checked in Fierbug in Fierfox 3.5.5 and I only see my usual
&lt;br&gt;headers. What might be getting in the way?
&lt;br&gt;&lt;br&gt;#app/controllers/application_controller.rb
&lt;br&gt;class ApplicationController &amp;lt; ActionController::Base
&lt;br&gt;&amp;nbsp; &amp;nbsp; after_filter :cors
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; def cors
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; response.headers['Access-Control-Allow-Origin'] == '*'
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; response.headers['Access-Control-Allow-Methods'] == 'POST, GET,
&lt;br&gt;PUT, DELETE, OPTIONS, HEAD'
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; response.headers['Access-Control-Allow-Credentials'] == 'true'
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; response.headers['Access-Control-Allow-Headers'] == 'X-
&lt;br&gt;PINGOTHER'
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; response.headers['Access-Control-Max-Age'] == '86400' # 24 hours
&lt;br&gt;&amp;nbsp; &amp;nbsp; end
&lt;br&gt;end
&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=26672759&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=26672759&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/setting-response.headers-is-non-effective--tp26672759p26672759.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26672430</id>
	<title>Re: How to run multiple app on JRUBY</title>
	<published>2009-12-06T20:42:48Z</published>
	<updated>2009-12-06T20:42:48Z</updated>
	<author>
		<name>Paulo Coutinho</name>
	</author>
	<content type="html">Hahaha...nice joke...favorited...&lt;br&gt;&lt;br&gt;But i find some articles about it...not so hard to do it.&lt;br&gt;&lt;br&gt;But if anyone have some tips and otimizations that already use or some best solutions that tomcat with jruby..please post here...&lt;br&gt;
&lt;br&gt;&lt;br&gt;for now i will test with tomcat.... thx everyone for help me...&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;2009/12/7 Rick DeNatale &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26672430&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rick.denatale@...&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;On Sun, Dec 6, 2009 at 9:36 PM, Paulo Coutinho &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26672430&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;paulo@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;

&amp;gt; OK.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; If anyone has a &amp;quot;how to&amp;quot; explaining how to deploy using tomcat or something&lt;br&gt;
&amp;gt; like this to use jruby, please post here :)&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Or links to tutorial&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;&lt;a href=&quot;http://lmgtfy.com/?q=jruby+tomcat&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://lmgtfy.com/?q=jruby+tomcat&lt;/a&gt;&lt;br&gt;
&lt;font color=&quot;#888888&quot;&gt;&lt;br&gt;
&lt;br&gt;
--&lt;br&gt;
Rick DeNatale&lt;br&gt;
&lt;br&gt;
Blog: &lt;a href=&quot;http://talklikeaduck.denhaven2.com/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://talklikeaduck.denhaven2.com/&lt;/a&gt;&lt;br&gt;
Twitter: &lt;a href=&quot;http://twitter.com/RickDeNatale&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://twitter.com/RickDeNatale&lt;/a&gt;&lt;br&gt;
WWR: &lt;a href=&quot;http://www.workingwithrails.com/person/9021-rick-denatale&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.workingwithrails.com/person/9021-rick-denatale&lt;/a&gt;&lt;br&gt;
LinkedIn: &lt;a href=&quot;http://www.linkedin.com/in/rickdenatale&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.linkedin.com/in/rickdenatale&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;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=26672430&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=26672430&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;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Atenciosamente,&lt;br&gt;Paulo Coutinho.&lt;br&gt;Blog: &lt;a href=&quot;http://www.prsolucoes.com/blog&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;www.prsolucoes.com/blog&lt;/a&gt;&lt;br&gt;Site: &lt;a href=&quot;http://www.prsolucoes.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;www.prsolucoes.com&lt;/a&gt;&lt;br&gt;
Msn:  &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26672430&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;paulo@...&lt;/a&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=26672430&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=26672430&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 http://groups.google.com/group/rubyonrails-talk?hl=en.&lt;br /&gt;

</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-run-multiple-app-on-JRUBY-tp26668417p26672430.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26672023</id>
	<title>Re: Invalid gem format, for every gem in rails</title>
	<published>2009-12-06T19:27:12Z</published>
	<updated>2009-12-06T19:27:12Z</updated>
	<author>
		<name>linojon</name>
	</author>
	<content type="html">more info:
&lt;br&gt;&lt;br&gt;$ sudo rm /opt/local/lib/ruby/gems/1.8/cache/activerecord-2.3.5.gem
&lt;br&gt;$ sudo gem update rails --debug -V
&lt;br&gt;Exception `NameError' at /opt/local/lib/ruby/site_ruby/1.8/rubygems/
&lt;br&gt;command_manager.rb:161 - uninitialized constant
&lt;br&gt;Gem::Commands::UpdateCommand
&lt;br&gt;Exception `Gem::LoadError' at /opt/local/lib/ruby/site_ruby/1.8/
&lt;br&gt;rubygems.rb:827 - Could not find RubyGem test-unit (&amp;gt;= 0)
&lt;br&gt;&lt;br&gt;Updating installed gems
&lt;br&gt;GET 200 OK: &lt;a href=&quot;http://gems.rubyforge.org/latest_specs.4.8.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gems.rubyforge.org/latest_specs.4.8.gz&lt;/a&gt;&lt;br&gt;GET 200 OK: &lt;a href=&quot;http://gems.github.com/latest_specs.4.8.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gems.github.com/latest_specs.4.8.gz&lt;/a&gt;&lt;br&gt;Updating rails
&lt;br&gt;GET 200 OK: &lt;a href=&quot;http://gems.rubyforge.org/quick/Marshal.4.8/rails-2.3.5.gemspec.rz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gems.rubyforge.org/quick/Marshal.4.8/rails-2.3.5.gemspec.rz&lt;/a&gt;&lt;br&gt;GET 200 OK: &lt;a href=&quot;http://gems.rubyforge.org/quick/Marshal.4.8/rake-0.8.7.gemspec.rz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gems.rubyforge.org/quick/Marshal.4.8/rake-0.8.7.gemspec.rz&lt;/a&gt;&lt;br&gt;GET 200 OK: &lt;a href=&quot;http://gems.rubyforge.org/specs.4.8.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gems.rubyforge.org/specs.4.8.gz&lt;/a&gt;&lt;br&gt;Exception `EOFError' at /opt/local/lib/ruby/1.8/net/protocol.rb:135 -
&lt;br&gt;end of file reached
&lt;br&gt;Exception `EOFError' at /opt/local/lib/ruby/1.8/net/protocol.rb:120 -
&lt;br&gt;end of file reached
&lt;br&gt;connection reset after 2 requests, retrying
&lt;br&gt;GET 200 OK: &lt;a href=&quot;http://gems.github.com/specs.4.8.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gems.github.com/specs.4.8.gz&lt;/a&gt;&lt;br&gt;Exception `EOFError' at /opt/local/lib/ruby/1.8/net/protocol.rb:135 -
&lt;br&gt;end of file reached
&lt;br&gt;Exception `EOFError' at /opt/local/lib/ruby/1.8/net/protocol.rb:120 -
&lt;br&gt;end of file reached
&lt;br&gt;connection reset after 5 requests, retrying
&lt;br&gt;GET 200 OK: &lt;a href=&quot;http://gems.rubyforge.org/quick/Marshal.4.8/activesupport-2.3.5.gemspec.rz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gems.rubyforge.org/quick/Marshal.4.8/activesupport-2.3.5.gemspec.rz&lt;/a&gt;&lt;br&gt;GET 200 OK: &lt;a href=&quot;http://gems.rubyforge.org/quick/Marshal.4.8/activerecord-2.3.5.gemspec.rz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gems.rubyforge.org/quick/Marshal.4.8/activerecord-2.3.5.gemspec.rz&lt;/a&gt;&lt;br&gt;GET 200 OK: &lt;a href=&quot;http://gems.rubyforge.org/quick/Marshal.4.8/actionpack-2.3.5.gemspec.rz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gems.rubyforge.org/quick/Marshal.4.8/actionpack-2.3.5.gemspec.rz&lt;/a&gt;&lt;br&gt;GET 200 OK: &lt;a href=&quot;http://gems.rubyforge.org/quick/Marshal.4.8/actionmailer-2.3.5.gemspec.rz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gems.rubyforge.org/quick/Marshal.4.8/actionmailer-2.3.5.gemspec.rz&lt;/a&gt;&lt;br&gt;GET 200 OK: &lt;a href=&quot;http://gems.rubyforge.org/quick/Marshal.4.8/activeresource-2.3.5.gemspec.rz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gems.rubyforge.org/quick/Marshal.4.8/activeresource-2.3.5.gemspec.rz&lt;/a&gt;&lt;br&gt;GET 200 OK: &lt;a href=&quot;http://gems.rubyforge.org/quick/Marshal.4.8/activesupport-2.3.5.gemspec.rz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gems.rubyforge.org/quick/Marshal.4.8/activesupport-2.3.5.gemspec.rz&lt;/a&gt;&lt;br&gt;GET 200 OK: &lt;a href=&quot;http://gems.rubyforge.org/quick/Marshal.4.8/activesupport-2.3.5.gemspec.rz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gems.rubyforge.org/quick/Marshal.4.8/activesupport-2.3.5.gemspec.rz&lt;/a&gt;&lt;br&gt;GET 200 OK: &lt;a href=&quot;http://gems.rubyforge.org/quick/Marshal.4.8/rack-1.0.0.gemspec.rz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gems.rubyforge.org/quick/Marshal.4.8/rack-1.0.0.gemspec.rz&lt;/a&gt;&lt;br&gt;GET 200 OK: &lt;a href=&quot;http://gems.rubyforge.org/quick/Marshal.4.8/rack-1.0.1.gemspec.rz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gems.rubyforge.org/quick/Marshal.4.8/rack-1.0.1.gemspec.rz&lt;/a&gt;&lt;br&gt;GET 200 OK: &lt;a href=&quot;http://gems.rubyforge.org/quick/Marshal.4.8/actionpack-2.3.5.gemspec.rz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gems.rubyforge.org/quick/Marshal.4.8/actionpack-2.3.5.gemspec.rz&lt;/a&gt;&lt;br&gt;GET 200 OK: &lt;a href=&quot;http://gems.rubyforge.org/quick/Marshal.4.8/activesupport-2.3.5.gemspec.rz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gems.rubyforge.org/quick/Marshal.4.8/activesupport-2.3.5.gemspec.rz&lt;/a&gt;&lt;br&gt;Installing gem activerecord-2.3.5
&lt;br&gt;Exception `Gem::Package::FormatError' at /opt/local/lib/ruby/site_ruby/
&lt;br&gt;1.8/rubygems/package/tar_input.rb:110 - No metadata found!
&lt;br&gt;Exception `Gem::InstallError' at /opt/local/lib/ruby/site_ruby/1.8/
&lt;br&gt;rubygems/installer.rb:121 - invalid gem format for /opt/local/lib/ruby/
&lt;br&gt;gems/1.8/cache/activerecord-2.3.5.gem
&lt;br&gt;ERROR: &amp;nbsp;Error installing rails:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; invalid gem format for /opt/local/lib/ruby/gems/1.8/cache/
&lt;br&gt;activerecord-2.3.5.gem
&lt;br&gt;Nothing to update
&lt;br&gt;&lt;br&gt;&lt;br&gt;$ sudo rm /opt/local/lib/ruby/gems/1.8/cache/activerecord-2.3.5.gem
&lt;br&gt;$ sudo gem install activerecord
&lt;br&gt;ERROR: &amp;nbsp;Error installing activerecord:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; invalid gem format for /opt/local/lib/ruby/gems/1.8/cache/
&lt;br&gt;activerecord-2.3.5.gem
&lt;br&gt;[22:09][jonathan@jsl:~/rails/jqui]$ sudo rm /opt/local/lib/ruby/gems/
&lt;br&gt;1.8/cache/activerecord-2.3.5.gem
&lt;br&gt;[22:09][jonathan@jsl:~/rails/jqui]$ sudo gem install activerecord
&lt;br&gt;ERROR: &amp;nbsp;Error installing activerecord:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; invalid gem format for /opt/local/lib/ruby/gems/1.8/cache/
&lt;br&gt;activerecord-2.3.5.gem
&lt;br&gt;[22:11][jonathan@jsl:~/rails/jqui]$ sudo rm /opt/local/lib/ruby/gems/
&lt;br&gt;1.8/cache/activerecord-2.3.5.gem
&lt;br&gt;Password:
&lt;br&gt;[22:21][jonathan@jsl:~/rails/jqui]$ sudo gem install activerecord --
&lt;br&gt;debug -V
&lt;br&gt;Exception `NameError' at /opt/local/lib/ruby/site_ruby/1.8/rubygems/
&lt;br&gt;command_manager.rb:161 - uninitialized constant
&lt;br&gt;Gem::Commands::InstallCommand
&lt;br&gt;Exception `Gem::LoadError' at /opt/local/lib/ruby/site_ruby/1.8/
&lt;br&gt;rubygems.rb:827 - Could not find RubyGem test-unit (&amp;gt;= 0)
&lt;br&gt;&lt;br&gt;GET 200 OK: &lt;a href=&quot;http://gems.rubyforge.org/latest_specs.4.8.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gems.rubyforge.org/latest_specs.4.8.gz&lt;/a&gt;&lt;br&gt;GET 200 OK: &lt;a href=&quot;http://gems.github.com/latest_specs.4.8.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gems.github.com/latest_specs.4.8.gz&lt;/a&gt;&lt;br&gt;GET 200 OK: &lt;a href=&quot;http://gems.rubyforge.org/quick/Marshal.4.8/activerecord-2.3.5.gemspec.rz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gems.rubyforge.org/quick/Marshal.4.8/activerecord-2.3.5.gemspec.rz&lt;/a&gt;&lt;br&gt;GET 200 OK: &lt;a href=&quot;http://gems.rubyforge.org/specs.4.8.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gems.rubyforge.org/specs.4.8.gz&lt;/a&gt;&lt;br&gt;Exception `EOFError' at /opt/local/lib/ruby/1.8/net/protocol.rb:135 -
&lt;br&gt;end of file reached
&lt;br&gt;Exception `EOFError' at /opt/local/lib/ruby/1.8/net/protocol.rb:120 -
&lt;br&gt;end of file reached
&lt;br&gt;connection reset after 2 requests, retrying
&lt;br&gt;GET 200 OK: &lt;a href=&quot;http://gems.github.com/specs.4.8.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gems.github.com/specs.4.8.gz&lt;/a&gt;&lt;br&gt;Exception `EOFError' at /opt/local/lib/ruby/1.8/net/protocol.rb:135 -
&lt;br&gt;end of file reached
&lt;br&gt;Exception `EOFError' at /opt/local/lib/ruby/1.8/net/protocol.rb:120 -
&lt;br&gt;end of file reached
&lt;br&gt;connection reset after 4 requests, retrying
&lt;br&gt;GET 200 OK: &lt;a href=&quot;http://gems.rubyforge.org/quick/Marshal.4.8/activesupport-2.3.5.gemspec.rz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gems.rubyforge.org/quick/Marshal.4.8/activesupport-2.3.5.gemspec.rz&lt;/a&gt;&lt;br&gt;Installing gem activerecord-2.3.5
&lt;br&gt;Downloading gem activerecord-2.3.5.gem
&lt;br&gt;GET 302 Found: &lt;a href=&quot;http://gems.rubyforge.org/gems/activerecord-2.3.5.gem&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gems.rubyforge.org/gems/activerecord-2.3.5.gem&lt;/a&gt;&lt;br&gt;Exception `EOFError' at /opt/local/lib/ruby/1.8/net/protocol.rb:135 -
&lt;br&gt;end of file reached
&lt;br&gt;GET 200 OK: &lt;a href=&quot;http://s3.amazonaws.com/gemcutter_production/gems/activerecord-2.3.5.gem&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://s3.amazonaws.com/gemcutter_production/gems/activerecord-2.3.5.gem&lt;/a&gt;&lt;br&gt;Exception `Gem::Package::FormatError' at /opt/local/lib/ruby/site_ruby/
&lt;br&gt;1.8/rubygems/package/tar_input.rb:110 - No metadata found!
&lt;br&gt;Exception `Gem::InstallError' at /opt/local/lib/ruby/site_ruby/1.8/
&lt;br&gt;rubygems/installer.rb:121 - invalid gem format for /opt/local/lib/ruby/
&lt;br&gt;gems/1.8/cache/activerecord-2.3.5.gem
&lt;br&gt;ERROR: &amp;nbsp;Error installing activerecord:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; invalid gem format for /opt/local/lib/ruby/gems/1.8/cache/
&lt;br&gt;activerecord-2.3.5.gem
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Dec 6, 10:15 pm, linoj &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26672023&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lino...@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I'm having a similar problem, on osx updating rails
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; $ sudo gem update --system
&lt;br&gt;&amp;gt; $ sudo gem update rails
&lt;br&gt;&amp;gt; ERROR:  Error installing rails:
&lt;br&gt;&amp;gt;         invalid gem format for /opt/local/lib/ruby/gems/1.8/cache/
&lt;br&gt;&amp;gt; activerecord-2.3.5.gem
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I've tried deleting the file, doing gem install vs update, etc and
&lt;br&gt;&amp;gt; still get this error.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Dec 1, 2:14 pm, Brian &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26672023&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;brifo...@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I've been trying to upgrade InstantRails2.0 to a more recent version
&lt;br&gt;&amp;gt; &amp;gt; of rails.  I've updated gem to version 1.3.5. When I do a simple 'gem
&lt;br&gt;&amp;gt; &amp;gt; update rails', I got the 'Invalid gem format' error for
&lt;br&gt;&amp;gt; &amp;gt; activesupport-2.3.5.gem.  After researching it and finding a couple
&lt;br&gt;&amp;gt; &amp;gt; threads here, I tried to delete this gem from the cache.  Still didn't
&lt;br&gt;&amp;gt; &amp;gt; work, it just got re-loaded when installing rails.  I tried going to
&lt;br&gt;&amp;gt; &amp;gt; version 2.3.3 of rails, since I don't need the latest and greatest,
&lt;br&gt;&amp;gt; &amp;gt; and a thread here suggested a problem in the latest repository.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I tried manually downloading the activesupport-2.3.3.gem and
&lt;br&gt;&amp;gt; &amp;gt; installing from that local downloaded gem.  This appeared to work, so
&lt;br&gt;&amp;gt; &amp;gt; I downloaded rails-2.3.3.gem and tried to install this local copy.  I
&lt;br&gt;&amp;gt; &amp;gt; continue to get the 'invalid gem format' for a different gem each
&lt;br&gt;&amp;gt; &amp;gt; time.  Each time I manually download and 'gem install local' the
&lt;br&gt;&amp;gt; &amp;gt; version that last reported the error, and each time I get the 'invalid
&lt;br&gt;&amp;gt; &amp;gt; gem format' for another gem.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; What's the root problem? I've just finally got rails 2.3.3 to install,
&lt;br&gt;&amp;gt; &amp;gt; but I need to do this on another machine as well, and am really not
&lt;br&gt;&amp;gt; &amp;gt; looking forward to doing this process again.
&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=26672023&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=26672023&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;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Invalid-gem-format%2C-for-every-gem-in-rails-tp26597416p26672023.html" />
</entry>

</feed>
