# Rails

**URL:** https://www.ruby-forum.com/c/ruby-on-rails/6.md?page=866

[Latest](https://www.ruby-forum.com/latest.md) · [Categories](https://www.ruby-forum.com/categories.md) · [Tags](https://www.ruby-forum.com/tags.md)

**Page:** 867

---

## [SSI on ruby on rails](https://www.ruby-forum.com/t/ssi-on-ruby-on-rails/172324)

<div class="topic-metadata">

**Author:** [@staypufd](https://www.ruby-forum.com/u/staypufd)\
**Replies:** 4\
**Last updated:** [July 19, 2009, 9:12pm UTC](https://www.ruby-forum.com/t/ssi-on-ruby-on-rails/172324 "2009-07-19T21:12:39Z")

</div>

does anyone know how to use SSI on ruby on rails? I could not find an example anywhere. I just want to include and external file in a rhtml document but can’t seem to be able to find an example anywhere.

---

## [Edit function now outputs HTML only](https://www.ruby-forum.com/t/edit-function-now-outputs-html-only/172312)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 3\
**Last updated:** [July 19, 2009, 5:48pm UTC](https://www.ruby-forum.com/t/edit-function-now-outputs-html-only/172312 "2009-07-19T17:48:18Z")

</div>

For some reason my new action works fine but my edit outputs nothing but raw HTML. Anyone have any ideas?

---

## [Seed fu and restful\_authentication](https://www.ruby-forum.com/t/seed-fu-and-restful-authentication/171896)

<div class="topic-metadata">

**Author:** [@rantamplan](https://www.ruby-forum.com/u/rantamplan)\
**Replies:** 6\
**Last updated:** [July 19, 2009, 5:31pm UTC](https://www.ruby-forum.com/t/seed-fu-and-restful-authentication/171896 "2009-07-19T17:31:46Z")

</div>

Hi, I am trying to use both plugins in my application but I couldn’t get it to work. I have included the following in my users.rb(fixtures directory): user = User.seed(:login) do |s| s.login = “admin” s.email = “re…

---

## [Using a different xml format for REST](https://www.ruby-forum.com/t/using-a-different-xml-format-for-rest/172300)

<div class="topic-metadata">

**Author:** [@alex](https://www.ruby-forum.com/u/alex)\
**Replies:** 2\
**Last updated:** [July 19, 2009, 12:26pm UTC](https://www.ruby-forum.com/t/using-a-different-xml-format-for-rest/172300 "2009-07-19T12:26:50Z")

</div>

I want to add a different xml format, plist in this case, to my controller for the create action. Using the default scaffold, I can handle the standard AR format. I’d like to be able to have a post to: POST foos/cre…

---

## [Issue rendering past a certain point with partials](https://www.ruby-forum.com/t/issue-rendering-past-a-certain-point-with-partials/226041)

<div class="topic-metadata">

**Author:** [@ahad](https://www.ruby-forum.com/u/ahad)\
**Replies:** 1\
**Last updated:** [July 19, 2009, 10:16am UTC](https://www.ruby-forum.com/t/issue-rendering-past-a-certain-point-with-partials/226041 "2009-07-19T10:16:16Z")

</div>

Hello all, I posted this on the railsforum website as well, and haven’t received any response, so I figured I’d try and get a bit more exposure by seeing if anyone here and on the mailing list would be able to assist:…

---

## [No line break between text and auto complete](https://www.ruby-forum.com/t/no-line-break-between-text-and-auto-complete/172292)

<div class="topic-metadata">

**Author:** [@Ruby\_on\_RailsS\_Talk](https://www.ruby-forum.com/u/Ruby_on_RailsS_Talk)\
**Replies:** 1\
**Last updated:** [July 19, 2009, 5:52am UTC](https://www.ruby-forum.com/t/no-line-break-between-text-and-auto-complete/172292 "2009-07-19T05:52:30Z")

</div>

Hey I’ve got the following code in my view for an application I’m writing: Type the surname of the customer you wish to see: \<% form\_remote\_tag(:url =\> {:action =\> "findcust"}) do %\> \<%= text\_field\_with\_a…

---

## [Help needed regarding Scaffolding](https://www.ruby-forum.com/t/help-needed-regarding-scaffolding/172298)

<div class="topic-metadata">

**Author:** [@harsh](https://www.ruby-forum.com/u/harsh)\
**Replies:** 1\
**Last updated:** [July 19, 2009, 4:42am UTC](https://www.ruby-forum.com/t/help-needed-regarding-scaffolding/172298 "2009-07-19T04:42:23Z")

</div>

Hi i m using rails2.0 and i want to add some columns after once i have created my table and database through scaffolding. so pls help me out how i can do this… Thanks in advance Regards Harsh

---

## [Create 1000 items in DB](https://www.ruby-forum.com/t/create-1000-items-in-db/172275)

<div class="topic-metadata">

**Author:** [@remco](https://www.ruby-forum.com/u/remco)\
**Replies:** 3\
**Last updated:** [July 19, 2009, 3:30am UTC](https://www.ruby-forum.com/t/create-1000-items-in-db/172275 "2009-07-19T03:30:31Z")

</div>

Hi, I want to create 1000 items at once(vouchers) in my db. My class name is Voucher. How can ik realize this…? remco

---

## [Kii, a Rails based wiki with a sensible code base](https://www.ruby-forum.com/t/kii-a-rails-based-wiki-with-a-sensible-code-base/172279)

<div class="topic-metadata">

**Author:** [@leethal](https://www.ruby-forum.com/u/leethal)\
**Replies:** 5\
**Last updated:** [July 19, 2009, 12:02am UTC](https://www.ruby-forum.com/t/kii-a-rails-based-wiki-with-a-sensible-code-base/172279 "2009-07-19T00:02:48Z")

</div>

http://kiiproject.org/ Kii is a young and open source Rails powered wiki. I started this project for two reasons. Whenever I need a wiki, I end up using something that isn’t Rails based. The existing Rails based wik…

---

## [Undefined method error from atom builder](https://www.ruby-forum.com/t/undefined-method-error-from-atom-builder/171987)

<div class="topic-metadata">

**Author:** [@ate50eggs](https://www.ruby-forum.com/u/ate50eggs)\
**Replies:** 3\
**Last updated:** [July 18, 2009, 10:21pm UTC](https://www.ruby-forum.com/t/undefined-method-error-from-atom-builder/171987 "2009-07-18T22:21:42Z")

</div>

I have a simple controller that takes a request, looks up some data and then returns the results as either HTML or Atom. The HTML response works fine, but the Atom Builder is blowing up with an undefined method error …

---

## [Sharing controllers/models within a view](https://www.ruby-forum.com/t/sharing-controllers-models-within-a-view/172296)

<div class="topic-metadata">

**Author:** [@dawson](https://www.ruby-forum.com/u/dawson)\
**Replies:** 2\
**Last updated:** [July 18, 2009, 9:26pm UTC](https://www.ruby-forum.com/t/sharing-controllers-models-within-a-view/172296 "2009-07-18T21:26:13Z")

</div>

Hello, please forgive me if this answer is obvious! I’m new to Rails this week. I have two database tables, and the associated scaffolding, controllers, models and views. The first is service\_provider, which holds a l…

---

## [Get 302 error while trying to deploy a ror site](https://www.ruby-forum.com/t/get-302-error-while-trying-to-deploy-a-ror-site/172295)

<div class="topic-metadata">

**Author:** [@sagarwal1981](https://www.ruby-forum.com/u/sagarwal1981)\
**Replies:** 0\
**Last updated:** [July 18, 2009, 8:22pm UTC](https://www.ruby-forum.com/t/get-302-error-while-trying-to-deploy-a-ror-site/172295 "2009-07-18T20:22:56Z")

</div>

Hi All, I am trying to install a rails app ( openmind ) and i am getting 500 internal server on the webpage : Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to h…

---

## [Rails 2.3.2.not working working with cgi - How to revert](https://www.ruby-forum.com/t/rails-2-3-2-not-working-working-with-cgi-how-to-revert/172290)

<div class="topic-metadata">

**Author:** [@sagarwal1981](https://www.ruby-forum.com/u/sagarwal1981)\
**Replies:** 4\
**Last updated:** [July 18, 2009, 7:47pm UTC](https://www.ruby-forum.com/t/rails-2-3-2-not-working-working-with-cgi-how-to-revert/172290 "2009-07-18T19:47:07Z")

</div>

Hi All, As the problem faced by many other folks that rails 2.3.2 is not working with cgi, Now I want to revert to rails 2.2.2 on my shared host (bluehost ) can anybody guide me how to revert to 2.2.2. I tried the fo…

---

## [Zlib-devel without root privilage](https://www.ruby-forum.com/t/zlib-devel-without-root-privilage/172259)

<div class="topic-metadata">

**Author:** [@bukala](https://www.ruby-forum.com/u/bukala)\
**Replies:** 1\
**Last updated:** [July 18, 2009, 5:48pm UTC](https://www.ruby-forum.com/t/zlib-devel-without-root-privilage/172259 "2009-07-18T17:48:32Z")

</div>

Hi i have problem with zlib-devel (problem with “gem install rails”), i compiled zlib, but i dont ktow how to provide ruby zlib-dev dependency. In subject i mention - i dont have root privilage :confused:

---

## [Long arsd problem](https://www.ruby-forum.com/t/long-arsd-problem/172266)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 2\
**Last updated:** [July 18, 2009, 4:16pm UTC](https://www.ruby-forum.com/t/long-arsd-problem/172266 "2009-07-18T16:16:55Z")

</div>

hi, This might be really obvious to someone, but this is doing my head in, however I am a noob so any help would be appreciated. this is my routes.rb file: map.resources :comments map.resources :posts map.connect :…

---

## [Engine classes don't auto load in production environment (Rails 2.3.2 + smerf plugin)](https://www.ruby-forum.com/t/engine-classes-dont-auto-load-in-production-environment-rails-2-3-2-smerf-plugin/172281)

<div class="topic-metadata">

**Author:** [@ari](https://www.ruby-forum.com/u/ari)\
**Replies:** 0\
**Last updated:** [July 18, 2009, 3:07pm UTC](https://www.ruby-forum.com/t/engine-classes-dont-auto-load-in-production-environment-rails-2-3-2-smerf-plugin/172281 "2009-07-18T15:07:53Z")

</div>

Hi all, I’m trying to use the smerf plugin in a rails app, and I’ve encountered something strange. The plugin uses the 2.3 engines ability to autoload classes under the app folder (e.g. /vendor/plugins/ smerf/app/\*)…

---

## [Session in the model](https://www.ruby-forum.com/t/session-in-the-model/172271)

<div class="topic-metadata">

**Author:** [@mekdigital](https://www.ruby-forum.com/u/mekdigital)\
**Replies:** 1\
**Last updated:** [July 18, 2009, 1:22pm UTC](https://www.ruby-forum.com/t/session-in-the-model/172271 "2009-07-18T13:22:08Z")

</div>

Hello, I needed a couple of session variables to allow a reader of a blog to be redirected to the correct URL if the blog name he’s visiting (app/:blogname) gets updated; Question: is it convenient to pass ‘base’ to …

---

## [HappyMapper](https://www.ruby-forum.com/t/happymapper/172272)

<div class="topic-metadata">

**Author:** [@Vikas\_Sarin](https://www.ruby-forum.com/u/Vikas_Sarin)\
**Replies:** 0\
**Last updated:** [July 18, 2009, 7:48am UTC](https://www.ruby-forum.com/t/happymapper/172272 "2009-07-18T07:48:37Z")

</div>

Hi, I have queries about HappyMapper: how to query for internal elements without creating a class for the root how to know the element value with its attribute values Thanks alot! regards, Vikas Sarin

---

## [I need help saving table data from a rake task](https://www.ruby-forum.com/t/i-need-help-saving-table-data-from-a-rake-task/172254)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 19\
**Last updated:** [July 18, 2009, 5:48am UTC](https://www.ruby-forum.com/t/i-need-help-saving-table-data-from-a-rake-task/172254 "2009-07-18T05:48:21Z")

</div>

I need to find out how I can create and save a large dataset to a table based on multiple returned arrays from a Rake task. Here is my example using just two arrays (there are 14 in this particular rake task): update…

---

## [Single Sign-on for two rails app](https://www.ruby-forum.com/t/single-sign-on-for-two-rails-app/172137)

<div class="topic-metadata">

**Author:** [@arunvoip](https://www.ruby-forum.com/u/arunvoip)\
**Replies:** 6\
**Last updated:** [July 18, 2009, 2:18am UTC](https://www.ruby-forum.com/t/single-sign-on-for-two-rails-app/172137 "2009-07-18T02:18:03Z")

</div>

Hello Everybody, I have two rails app. Both have login pages for user authentication. The two apps have links to one another. Now what i need is when a user logs in to one app, he should not be again asked for login w…

---

## [Scott Hughes is out of the office](https://www.ruby-forum.com/t/scott-hughes-is-out-of-the-office/172265)

<div class="topic-metadata">

**Author:** [@Scott\_Hughes](https://www.ruby-forum.com/u/Scott_Hughes)\
**Replies:** 0\
**Last updated:** [July 18, 2009, 12:53am UTC](https://www.ruby-forum.com/t/scott-hughes-is-out-of-the-office/172265 "2009-07-18T00:53:22Z")

</div>

I will be out of the office starting July 17, 2009 and will not return until July 27, 2009. Please direct any questions you have to Brian Esler or Andy Brymer in my absence. Thank You

---

## [Compare pinax and rails](https://www.ruby-forum.com/t/compare-pinax-and-rails/172260)

<div class="topic-metadata">

**Author:** [@Learn\_by\_D](https://www.ruby-forum.com/u/Learn_by_D)\
**Replies:** 2\
**Last updated:** [July 17, 2009, 10:22pm UTC](https://www.ruby-forum.com/t/compare-pinax-and-rails/172260 "2009-07-17T22:22:01Z")

</div>

Hi, Can you compare pinax and rails? I am a programming beginner. I wanted to build a social network site. I got a hold of the RailsSpace book a couple of months ago and got really excited about Ruby on Rails. N…

---

## [Transaction in controller](https://www.ruby-forum.com/t/transaction-in-controller/171661)

<div class="topic-metadata">

**Author:** [@Learn\_by\_D](https://www.ruby-forum.com/u/Learn_by_D)\
**Replies:** 6\
**Last updated:** [July 17, 2009, 8:59pm UTC](https://www.ruby-forum.com/t/transaction-in-controller/171661 "2009-07-17T20:59:05Z")

</div>

Is there a way to use the transaction method in a controller class? In a controller method, I would like to save the user model objects and several other model objects in the database in a transaction: either save all…

---

## [Controllers reuse or the way to reuse code along with views](https://www.ruby-forum.com/t/controllers-reuse-or-the-way-to-reuse-code-along-with-views/172196)

<div class="topic-metadata">

**Author:** [@rubyfox](https://www.ruby-forum.com/u/rubyfox)\
**Replies:** 1\
**Last updated:** [July 17, 2009, 8:25pm UTC](https://www.ruby-forum.com/t/controllers-reuse-or-the-way-to-reuse-code-along-with-views/172196 "2009-07-17T20:25:16Z")

</div>

Consider the following scenario: In a web application users are given an ability to customize what is displayed on their homepage. All options they get for customization are already implemented as separate pages …

---

## [Rails adds send! method to Object?](https://www.ruby-forum.com/t/rails-adds-send-method-to-object/172255)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 3\
**Last updated:** [July 17, 2009, 7:19pm UTC](https://www.ruby-forum.com/t/rails-adds-send-method-to-object/172255 "2009-07-17T19:19:46Z")

</div>

All, It appears that Rails adds the send! method to Object, via the output below. gandalf-2:royaltyzone weyus$ irb Object.methods.include?(“send!”) =\> false exit gandalf-2:royaltyzone weyus$ script/console Lo…

---

## [Button to trigger mailer?](https://www.ruby-forum.com/t/button-to-trigger-mailer/172228)

<div class="topic-metadata">

**Author:** [@dansinker](https://www.ruby-forum.com/u/dansinker)\
**Replies:** 6\
**Last updated:** [July 17, 2009, 7:08pm UTC](https://www.ruby-forum.com/t/button-to-trigger-mailer/172228 "2009-07-17T19:08:18Z")

</div>

Newbie ActionMailer question: I’ve created a mailer, and am pretty sure I’ve set its parameters correctly. I’ve created a view for that mailer, and am also pretty sure I’ve set it up correctly. I can call the mailer…

---

## [100% CPU usage with Mongrel dev server on Windows](https://www.ruby-forum.com/t/100-cpu-usage-with-mongrel-dev-server-on-windows/172245)

<div class="topic-metadata">

**Author:** [@rubyfox](https://www.ruby-forum.com/u/rubyfox)\
**Replies:** 1\
**Last updated:** [July 17, 2009, 6:28pm UTC](https://www.ruby-forum.com/t/100-cpu-usage-with-mongrel-dev-server-on-windows/172245 "2009-07-17T18:28:21Z")

</div>

I’m using Mongrel on my Windows XP box, and periodically CPU usage jumps to 100% and stays there. The gems versions are: mongrel (1.1.5) mysql (2.7.3) The Rails version is 2.3.2. This occurs pretty often, but since…

---

## [Why does this output to the console?](https://www.ruby-forum.com/t/why-does-this-output-to-the-console/172226)

<div class="topic-metadata">

**Author:** [@mistressjanna](https://www.ruby-forum.com/u/mistressjanna)\
**Replies:** 5\
**Last updated:** [July 17, 2009, 6:10pm UTC](https://www.ruby-forum.com/t/why-does-this-output-to-the-console/172226 "2009-07-17T18:10:14Z")

</div>

Why would a particular line: if @channel == nil && current\_associate.watching\_channel\_id != nil && current\_associate.watching\_channel\_id \> 0 alsways output the statement: false to the console??? I am using Rails 2.…

---

## [Same has\_many and has\_one?](https://www.ruby-forum.com/t/same-has-many-and-has-one/172202)

<div class="topic-metadata">

**Author:** [@thebarge](https://www.ruby-forum.com/u/thebarge)\
**Replies:** 8\
**Last updated:** [July 17, 2009, 4:41pm UTC](https://www.ruby-forum.com/t/same-has-many-and-has-one/172202 "2009-07-17T16:41:30Z")

</div>

I think I’ve just thoroughly confused myself at this point. I have a class that has a has\_many and has\_one relationship that use the same object. Here is an example: class Person \< ActiveRecord::Base has\_many :hobb…

---

## [Bizarre issue with form builders (merging options and \*args)](https://www.ruby-forum.com/t/bizarre-issue-with-form-builders-merging-options-and-args/172222)

<div class="topic-metadata">

**Author:** [@uberllama](https://www.ruby-forum.com/u/uberllama)\
**Replies:** 2\
**Last updated:** [July 17, 2009, 4:25pm UTC](https://www.ruby-forum.com/t/bizarre-issue-with-form-builders-merging-options-and-args/172222 "2009-07-17T16:25:32Z")

</div>

Okay guys, I’ve been beating my head against the wall with this one all day and was hoping I might garner some enlightenment from the gathered geniuses. I am including some pared down code to demonstrate my issue. Ba…

[Previous page](https://www.ruby-forum.com/c/ruby-on-rails/6.md?page=865)

[Next page](https://www.ruby-forum.com/c/ruby-on-rails/6.md?page=867)
