# Rails

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

[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:** 1430

---

## [Local Machine vs Server](https://www.ruby-forum.com/t/local-machine-vs-server/132838)

<div class="topic-metadata">

**Author:** [@leirasacil](https://www.ruby-forum.com/u/leirasacil)\
**Replies:** 2\
**Last updated:** [March 25, 2008, 8:40am UTC](https://www.ruby-forum.com/t/local-machine-vs-server/132838 "2008-03-25T08:40:50Z")

</div>

Hi all, Just new here. Just got problem with rails, The application runs smoothly in the local machine but when I try to upload all the necessary files,gems in the server. I try to run it by adding records but it doe…

---

## [Difference between %{} and #{}](https://www.ruby-forum.com/t/difference-between-and/132123)

<div class="topic-metadata">

**Author:** [@Bala](https://www.ruby-forum.com/u/Bala)\
**Replies:** 3\
**Last updated:** [March 25, 2008, 8:02am UTC](https://www.ruby-forum.com/t/difference-between-and/132123 "2008-03-25T08:02:41Z")

</div>

HI Experts, i need to know the difference between %{} and #{} waiting for the response regards, Bala

---

## [How to encode spaces in get params](https://www.ruby-forum.com/t/how-to-encode-spaces-in-get-params/132792)

<div class="topic-metadata">

**Author:** [@dino\_d](https://www.ruby-forum.com/u/dino_d)\
**Replies:** 1\
**Last updated:** [March 25, 2008, 7:45am UTC](https://www.ruby-forum.com/t/how-to-encode-spaces-in-get-params/132792 "2008-03-25T07:45:23Z")

</div>

Hi- Easy question, just don’t know where to look- How do I encode an :id that has a space in it: #tag.tag = “Joe B.” \<% = link\_to tag.tag, {:action =\> stories\_by\_tag, :id =\> tag.tag} %\> this throws an error b/c ther…

---

## [Mongrel cluster ? what about it\>](https://www.ruby-forum.com/t/mongrel-cluster-what-about-it/132831)

<div class="topic-metadata">

**Author:** [@manuele](https://www.ruby-forum.com/u/manuele)\
**Replies:** 1\
**Last updated:** [March 25, 2008, 7:41am UTC](https://www.ruby-forum.com/t/mongrel-cluster-what-about-it/132831 "2008-03-25T07:41:53Z")

</div>

Im taking a class ‘Structure of Data’ but the teacher is teaching ruby… yes, we’re using ROR too. in the lab there are 50 computers for the students and the teachers computer which is the server and he’s the root… we…

---

## [Template sites](https://www.ruby-forum.com/t/template-sites/132804)

<div class="topic-metadata">

**Author:** [@Anthrorithm](https://www.ruby-forum.com/u/Anthrorithm)\
**Replies:** 1\
**Last updated:** [March 25, 2008, 7:40am UTC](https://www.ruby-forum.com/t/template-sites/132804 "2008-03-25T07:40:00Z")

</div>

I am new to the group, but work with a lot of people in Ajax development and have seen RoR on many resumes. I recently had an experience with someone using template sites for code and it created a very bad impression …

---

## [Dissecting params to read data](https://www.ruby-forum.com/t/dissecting-params-to-read-data/132826)

<div class="topic-metadata">

**Author:** [@rashantha](https://www.ruby-forum.com/u/rashantha)\
**Replies:** 9\
**Last updated:** [March 25, 2008, 7:00am UTC](https://www.ruby-forum.com/t/dissecting-params-to-read-data/132826 "2008-03-25T07:00:32Z")

</div>

i have a simple form with a drop down menu that is created via another model. when the user hits submit i have all the data passed thru but can not extract it properly form\_for :user do |form| form fields here… find…

---

## [To avoid repeated pagination code](https://www.ruby-forum.com/t/to-avoid-repeated-pagination-code/132834)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 0\
**Last updated:** [March 25, 2008, 5:43am UTC](https://www.ruby-forum.com/t/to-avoid-repeated-pagination-code/132834 "2008-03-25T05:43:30Z")

</div>

Hi Below is the code for controller service\_desk show action(some portion only) def show @sd\_attachments=service\_desk\_ticket.service\_desk\_attachments.paginate :page =\> params\[:page\], :per\_page =\> 15 @sd\_activities=…

---

## [Carrying sessions between apps?](https://www.ruby-forum.com/t/carrying-sessions-between-apps/132827)

<div class="topic-metadata">

**Author:** [@pete](https://www.ruby-forum.com/u/pete)\
**Replies:** 0\
**Last updated:** [March 25, 2008, 3:49am UTC](https://www.ruby-forum.com/t/carrying-sessions-between-apps/132827 "2008-03-25T03:49:53Z")

</div>

Hi- Is it possible to carry sessions between 2 different applications? For example, I have 2 apps with a “user” model and I would like for you to be able to login on one and if you browse to the other, it will not as…

---

## [Filemaker 9](https://www.ruby-forum.com/t/filemaker-9/132823)

<div class="topic-metadata">

**Author:** [@heldopslippers](https://www.ruby-forum.com/u/heldopslippers)\
**Replies:** 0\
**Last updated:** [March 25, 2008, 3:12am UTC](https://www.ruby-forum.com/t/filemaker-9/132823 "2008-03-25T03:12:27Z")

</div>

hi all… does anyone use filemaker pro 9 as database with ruby and Rfm?.. There are not much forums and info. etc. about this. Only from people how use filemaker 7 or something (and that sucks). But I am going to use …

---

## [Eclipse issues with Ruby](https://www.ruby-forum.com/t/eclipse-issues-with-ruby/132614)

<div class="topic-metadata">

**Author:** [@Backov](https://www.ruby-forum.com/u/Backov)\
**Replies:** 6\
**Last updated:** [March 25, 2008, 2:25am UTC](https://www.ruby-forum.com/t/eclipse-issues-with-ruby/132614 "2008-03-25T02:25:51Z")

</div>

Not directly related I know, but maybe some of you have had this same issue. I’m working on a controller that’s getting a little big. Not huge, but somewhat. Now, for no apparent reason Eclipse is pausing when I’m in…

---

## [Setting different min value for sequence to start with?](https://www.ruby-forum.com/t/setting-different-min-value-for-sequence-to-start-with/132820)

<div class="topic-metadata">

**Author:** [@nwiger](https://www.ruby-forum.com/u/nwiger)\
**Replies:** 0\
**Last updated:** [March 25, 2008, 1:36am UTC](https://www.ruby-forum.com/t/setting-different-min-value-for-sequence-to-start-with/132820 "2008-03-25T01:36:03Z")

</div>

Hi all, so is there a way to change the minimum value for an AR- created sequence? They start with 10000 by default, but for some tables (ones that hold static definitions in our app), we’d like them to start at 1 or …

---

## [Rendering directly from the controller into a named section of my layout](https://www.ruby-forum.com/t/rendering-directly-from-the-controller-into-a-named-section-of-my-layout/132819)

<div class="topic-metadata">

**Author:** [@Pito](https://www.ruby-forum.com/u/Pito)\
**Replies:** 0\
**Last updated:** [March 25, 2008, 1:31am UTC](https://www.ruby-forum.com/t/rendering-directly-from-the-controller-into-a-named-section-of-my-layout/132819 "2008-03-25T01:31:22Z")

</div>

My layouts/application.rhtml contains: \<%= yield :main %\> I would like to render directly from my controller into the :main section - that is, without using the usual view incantation: % content\_for (:main) do %\> i …

---

## [Two separate (but related websites) one codebase](https://www.ruby-forum.com/t/two-separate-but-related-websites-one-codebase/132764)

<div class="topic-metadata">

**Author:** [@ressister](https://www.ruby-forum.com/u/ressister)\
**Replies:** 3\
**Last updated:** [March 25, 2008, 1:06am UTC](https://www.ruby-forum.com/t/two-separate-but-related-websites-one-codebase/132764 "2008-03-25T01:06:21Z")

</div>

Is it possible two run two separate websites in Rails on the same codebase? Does it make sense to do so? I currently have a website that I want to branch into another market. The underlying structure of the two sit…

---

## [Seeking RoR / LAMP developer(s) / manager in Berkeley, CA](https://www.ruby-forum.com/t/seeking-ror-lamp-developer-s-manager-in-berkeley-ca/132815)

<div class="topic-metadata">

**Author:** [@Vic](https://www.ruby-forum.com/u/Vic)\
**Replies:** 0\
**Last updated:** [March 25, 2008, 12:30am UTC](https://www.ruby-forum.com/t/seeking-ror-lamp-developer-s-manager-in-berkeley-ca/132815 "2008-03-25T00:30:51Z")

</div>

Seeking masters of web 2.0 who also love sports. Submit your resumes to jobs (at) rorpower (dot) com. RoR Power (http://www.rorpower.com) is a boutique recruiting firm specializing in Ruby on Rails opportunities. We …

---

## [Struggling with collect](https://www.ruby-forum.com/t/struggling-with-collect/132813)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 0\
**Last updated:** [March 24, 2008, 11:20pm UTC](https://www.ruby-forum.com/t/struggling-with-collect/132813 "2008-03-24T23:20:41Z")

</div>

I use a lot of this but I am struggling to get it to show the 'selected value…I think the issue is that I have an a hash… \<%= options = \[\[‘Select Facility’, “” \] \] + @facilities.sort { |a,b| a.name \<=\> b.name }.colle…

---

## [Error in new project boot.rb](https://www.ruby-forum.com/t/error-in-new-project-boot-rb/132535)

<div class="topic-metadata">

**Author:** [@rubyfreak](https://www.ruby-forum.com/u/rubyfreak)\
**Replies:** 3\
**Last updated:** [March 24, 2008, 10:57pm UTC](https://www.ruby-forum.com/t/error-in-new-project-boot-rb/132535 "2008-03-24T22:57:43Z")

</div>

When I create a new 2.0 project (rails project\_name) Aptana shows what appears to me to be a valid error in boot.rb The line: if version = self.class.gem\_version is an assignment Should this not read: if version ==…

---

## [Only 3 days left for PostgreSQL Conference](https://www.ruby-forum.com/t/only-3-days-left-for-postgresql-conference/132810)

<div class="topic-metadata">

**Author:** [@Joshua\_DSDrake](https://www.ruby-forum.com/u/Joshua_DSDrake)\
**Replies:** 0\
**Last updated:** [March 24, 2008, 10:35pm UTC](https://www.ruby-forum.com/t/only-3-days-left-for-postgresql-conference/132810 "2008-03-24T22:35:59Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Online registration ends for PostgreSQL Conference East on March 26th at 5:00pm PST. PostgreSQL Conference: East is being held at the Univerisity of Maryland, College Par…

---

## [Scaffold: What's the advantage of actions create/update?](https://www.ruby-forum.com/t/scaffold-whats-the-advantage-of-actions-create-update/120885)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 4\
**Last updated:** [March 24, 2008, 9:54pm UTC](https://www.ruby-forum.com/t/scaffold-whats-the-advantage-of-actions-create-update/120885 "2008-03-24T21:54:09Z")

</div>

Hi all I’m quite unsure what’s the point to have a create and update action in the Rails scaffolds… I guess the developers had good reason to implement them, but I don’t really see the reason for them… Why no just ch…

---

## [Proper idom for link\_to\_if](https://www.ruby-forum.com/t/proper-idom-for-link-to-if/132779)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 8\
**Last updated:** [March 24, 2008, 9:39pm UTC](https://www.ruby-forum.com/t/proper-idom-for-link-to-if/132779 "2008-03-24T21:39:07Z")

</div>

What I wish to do is to have a construct like this in a view: \<%= link\_to\_if , “New Model View”, new\_model\_path -%\> has to return true if new\_model\_path is defined and false otherwise. What is the proper idiom to do…

---

## [With JS inserted input-tags are not passes as parameters to](https://www.ruby-forum.com/t/with-js-inserted-input-tags-are-not-passes-as-parameters-to/132800)

<div class="topic-metadata">

**Author:** [@adrie](https://www.ruby-forum.com/u/adrie)\
**Replies:** 2\
**Last updated:** [March 24, 2008, 9:34pm UTC](https://www.ruby-forum.com/t/with-js-inserted-input-tags-are-not-passes-as-parameters-to/132800 "2008-03-24T21:34:19Z")

</div>

I use this: function addBmw(){ tel = $(‘bmws’).select(‘div\[id^=bmw\]’).size(); // for a unique id bmw = $F(‘sel\_bmw’).split(’|’); // selected bmw =\> 54|Valery bmw\_line = ‘ ’; bmw\_line += ’ '; bmw\_line += …

---

## [Documentation for recorded\_session](https://www.ruby-forum.com/t/documentation-for-recorded-session/132802)

<div class="topic-metadata">

**Author:** [@milic](https://www.ruby-forum.com/u/milic)\
**Replies:** 0\
**Last updated:** [March 24, 2008, 9:13pm UTC](https://www.ruby-forum.com/t/documentation-for-recorded-session/132802 "2008-03-24T21:13:10Z")

</div>

Hi I’m trying to get behind how to write my own generators. For this I started to analyze the code of some generators, e.g. restful\_authentication and there’s one functon I haven’t found a documentation for: recorde…

---

## [Odd text formatting on edit](https://www.ruby-forum.com/t/odd-text-formatting-on-edit/132718)

<div class="topic-metadata">

**Author:** [@sumwutdum](https://www.ruby-forum.com/u/sumwutdum)\
**Replies:** 3\
**Last updated:** [March 24, 2008, 9:07pm UTC](https://www.ruby-forum.com/t/odd-text-formatting-on-edit/132718 "2008-03-24T21:07:04Z")

</div>

I have never had this problem in any previous projects, but for some reason all text\_area inputs that contain a new line result in a huge indent ex |Hello |World | | results in when editting |Hello | …

---

## [Tutorial Needed - has\_many through](https://www.ruby-forum.com/t/tutorial-needed-has-many-through/132785)

<div class="topic-metadata">

**Author:** [@sunfish](https://www.ruby-forum.com/u/sunfish)\
**Replies:** 3\
**Last updated:** [March 24, 2008, 9:00pm UTC](https://www.ruby-forum.com/t/tutorial-needed-has-many-through/132785 "2008-03-24T21:00:45Z")

</div>

I have searched high and low without finding a “good” resource (sample code) for has\_many through relationships. Do you have any recommendations? Thanks, Sunny

---

## [Associating a resource with multiple resources?](https://www.ruby-forum.com/t/associating-a-resource-with-multiple-resources/132688)

<div class="topic-metadata">

**Author:** [@Houman\_D](https://www.ruby-forum.com/u/Houman_D)\
**Replies:** 2\
**Last updated:** [March 24, 2008, 8:33pm UTC](https://www.ruby-forum.com/t/associating-a-resource-with-multiple-resources/132688 "2008-03-24T20:33:58Z")

</div>

Hi, I have these models in my ror application: author, article and book. I want to associate author to article and book so: book has many authors article has many authors author belongs to both of them What’s the b…

---

## [HALP! connect() failed (111: Connection refused)?!](https://www.ruby-forum.com/t/halp-connect-failed-111-connection-refused/131998)

<div class="topic-metadata">

**Author:** [@bbqplate](https://www.ruby-forum.com/u/bbqplate)\
**Replies:** 2\
**Last updated:** [March 24, 2008, 7:35pm UTC](https://www.ruby-forum.com/t/halp-connect-failed-111-connection-refused/131998 "2008-03-24T19:35:11Z")

</div>

ive been trying to dig through this problem for awhile now but cant seem to view my rails app from outside the LAN. my nginx file prints this… 2008/03/14 17:33:01 \[error\] 12090#0: \*254 connect() failed (111: Connectio…

---

## [Using Different ActiveMailer Templates in v2.02](https://www.ruby-forum.com/t/using-different-activemailer-templates-in-v2-02/132662)

<div class="topic-metadata">

**Author:** [@mfeadler](https://www.ruby-forum.com/u/mfeadler)\
**Replies:** 1\
**Last updated:** [March 24, 2008, 7:29pm UTC](https://www.ruby-forum.com/t/using-different-activemailer-templates-in-v2-02/132662 "2008-03-24T19:29:50Z")

</div>

I’m making a CRM-like system, and I would like to enable users the ability to define and send out custom emails based on a template. I used the method outlined here: class Postoffice \< ActionMailer::Base def welcome…

---

## [BDB support within Rails](https://www.ruby-forum.com/t/bdb-support-within-rails/132787)

<div class="topic-metadata">

**Author:** [@steve](https://www.ruby-forum.com/u/steve)\
**Replies:** 0\
**Last updated:** [March 24, 2008, 6:55pm UTC](https://www.ruby-forum.com/t/bdb-support-within-rails/132787 "2008-03-24T18:55:25Z")

</div>

I’m considering a project which will require me to provide a user interface to maintain data stored using BDB… I would like to know if any work has been done to support BDB as a back-end to persist Rails data.

---

## [JRuby vs Grails](https://www.ruby-forum.com/t/jruby-vs-grails/132761)

<div class="topic-metadata">

**Author:** [@damaris](https://www.ruby-forum.com/u/damaris)\
**Replies:** 1\
**Last updated:** [March 24, 2008, 6:16pm UTC](https://www.ruby-forum.com/t/jruby-vs-grails/132761 "2008-03-24T18:16:18Z")

</div>

Hi you all, (this thread is not important, it’s just I would appreciate your opinion if you can throw it out :D) I’m involved in a P2P Java desktop app that have to be transformed in a Web app. I am not willing to re…

---

## [RJS not executed](https://www.ruby-forum.com/t/rjs-not-executed/132783)

<div class="topic-metadata">

**Author:** [@greenski](https://www.ruby-forum.com/u/greenski)\
**Replies:** 0\
**Last updated:** [March 24, 2008, 6:05pm UTC](https://www.ruby-forum.com/t/rjs-not-executed/132783 "2008-03-24T18:05:29Z")

</div>

Hello, I began a ruby application recently and I try to integrate Ajax touchs but I got a strange problem here. In my view app/views/messages/index.rthml, I’ve got a simple link to a remote function and a container \[…

---

## [Help choose my project for Ruby Mendicant](https://www.ruby-forum.com/t/help-choose-my-project-for-ruby-mendicant/132781)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 0\
**Last updated:** [March 24, 2008, 5:53pm UTC](https://www.ruby-forum.com/t/help-choose-my-project-for-ruby-mendicant/132781 "2008-03-24T17:53:54Z")

</div>

Hi folks, So far, the Ruby Mendicant (rubymendicant.wikidot.com) fundraising campaign has been going great. == News About Donations == Over the last couple weeks, I’ve received contributions from 53 people, running …

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

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