# Rails

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

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

---

## [Need to maintiain session with requests from Flash movie](https://www.ruby-forum.com/t/need-to-maintiain-session-with-requests-from-flash-movie/88537)

<div class="topic-metadata">

**Author:** [@vanight](https://www.ruby-forum.com/u/vanight)\
**Replies:** 2\
**Last updated:** [March 12, 2007, 3:00pm UTC](https://www.ruby-forum.com/t/need-to-maintiain-session-with-requests-from-flash-movie/88537 "2007-03-12T15:00:42Z")

</div>

My application has a flash element in it which makes a couple of different requests which need to maintain the session. Since flash movies don’t seem to send the session cookie, I’ve had to pass in Rails’ session\_id a…

---

## [SQL 2 table(or model) query](https://www.ruby-forum.com/t/sql-2-table-or-model-query/88485)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 8\
**Last updated:** [March 12, 2007, 2:38pm UTC](https://www.ruby-forum.com/t/sql-2-table-or-model-query/88485 "2007-03-12T14:38:23Z")

</div>

I have 3 tables, one called events, one called users, and one called created\_events which contains an event id and a user id (in order to link a user and an event together) - each one corresponds to its relevent model…

---

## [Sorting has\_many association](https://www.ruby-forum.com/t/sorting-has-many-association/88538)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 3\
**Last updated:** [March 12, 2007, 2:25pm UTC](https://www.ruby-forum.com/t/sorting-has-many-association/88538 "2007-03-12T14:25:35Z")

</div>

i’ve got a specific problem here and I’m not sure how to handle it. what i need to do is sort a has\_many association in a very specific way. class Foo \< AR::Base has\_many :things end class Thing \< AR::Base belongs\_…

---

## [Upload progress with Mongrel doesn't work in dev mode](https://www.ruby-forum.com/t/upload-progress-with-mongrel-doesnt-work-in-dev-mode/86865)

<div class="topic-metadata">

**Author:** [@vanight](https://www.ruby-forum.com/u/vanight)\
**Replies:** 3\
**Last updated:** [March 12, 2007, 1:03pm UTC](https://www.ruby-forum.com/t/upload-progress-with-mongrel-doesnt-work-in-dev-mode/86865 "2007-03-12T13:03:19Z")

</div>

I’ve not been able to get upload progress with Mongrel working after following the instructions here: http://mongrel.rubyforge.org/docs/upload\_progress.html "Mongrel::Uploads.check(params\[:upload\_id\]) " always returns…

---

## [Observe\_field sent bad data](https://www.ruby-forum.com/t/observe-field-sent-bad-data/88530)

<div class="topic-metadata">

**Author:** [@xain](https://www.ruby-forum.com/u/xain)\
**Replies:** 2\
**Last updated:** [March 12, 2007, 12:53pm UTC](https://www.ruby-forum.com/t/observe-field-sent-bad-data/88530 "2007-03-12T12:53:59Z")

</div>

I use an observe\_field to check Email Address format in realtime. I met a problem, when user type ‘removed\_email\_address@domain.invalid’ in email field, request.raw\_post sent back data like ‘123%40123.com=#’, not ‘rem…

---

## [Can I use rails without administrator rights on windows?](https://www.ruby-forum.com/t/can-i-use-rails-without-administrator-rights-on-windows/88535)

<div class="topic-metadata">

**Author:** [@johan\_on\_rails](https://www.ruby-forum.com/u/johan_on_rails)\
**Replies:** 0\
**Last updated:** [March 12, 2007, 12:41pm UTC](https://www.ruby-forum.com/t/can-i-use-rails-without-administrator-rights-on-windows/88535 "2007-03-12T12:41:18Z")

</div>

Hi all, Is it possible to install ruby on rails on a development box (W2K) WITHOUT administrator rights? does it run? Does someone have experience with this? thanks, johan

---

## [Best way to generate complex spreadsheets with rails](https://www.ruby-forum.com/t/best-way-to-generate-complex-spreadsheets-with-rails/86612)

<div class="topic-metadata">

**Author:** [@acras](https://www.ruby-forum.com/u/acras)\
**Replies:** 1\
**Last updated:** [March 12, 2007, 12:36pm UTC](https://www.ruby-forum.com/t/best-way-to-generate-complex-spreadsheets-with-rails/86612 "2007-03-12T12:36:17Z")

</div>

Hi, We are developing a rails app where the generation of complex excel documents is necessary. By complex I mean a spreadsheet with formulas, including cross-file and cross-tab references. The only ruby component we…

---

## [Can't follow redirects outside current controller - but it's](https://www.ruby-forum.com/t/cant-follow-redirects-outside-current-controller-but-its/88527)

<div class="topic-metadata">

**Author:** [@Gwyn\_Morfey](https://www.ruby-forum.com/u/Gwyn_Morfey)\
**Replies:** 1\
**Last updated:** [March 12, 2007, 12:03pm UTC](https://www.ruby-forum.com/t/cant-follow-redirects-outside-current-controller-but-its/88527 "2007-03-12T12:03:12Z")

</div>

Running a functional test on FooController that does ‘follow\_redirect’, I get 'Can’t follow redirects outside current controller (from “foo” to “foo”). On further investigation, it turns out that :foo != ‘foo’ around …

---

## [Problem in backgroundrb](https://www.ruby-forum.com/t/problem-in-backgroundrb/88524)

<div class="topic-metadata">

**Author:** [@selvaraj](https://www.ruby-forum.com/u/selvaraj)\
**Replies:** 2\
**Last updated:** [March 12, 2007, 11:55am UTC](https://www.ruby-forum.com/t/problem-in-backgroundrb/88524 "2007-03-12T11:55:52Z")

</div>

Here my code class SendMessageWorker \< BackgrounDRb::Worker::RailsBase def do\_work(args) # This method is called in it’s own new thread when you # call new worker. args is set to :args @sms2=SendMessageDetail.find\_b…

---

## [Exclude a property on a model from save operations?](https://www.ruby-forum.com/t/exclude-a-property-on-a-model-from-save-operations/88304)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 4\
**Last updated:** [March 12, 2007, 11:47am UTC](https://www.ruby-forum.com/t/exclude-a-property-on-a-model-from-save-operations/88304 "2007-03-12T11:47:11Z")

</div>

Hey guys :slight\_smile: I have some models that include computed fields, i.e. fields that aren’t data as such on a table, but are computed using other fields in the table, like author.printed\_name which is computed (o…

---

## [Ruby on Rails performance / Why is Mongrel popular?](https://www.ruby-forum.com/t/ruby-on-rails-performance-why-is-mongrel-popular/88521)

<div class="topic-metadata">

**Author:** [@Shaoxia](https://www.ruby-forum.com/u/Shaoxia)\
**Replies:** 2\
**Last updated:** [March 12, 2007, 11:37am UTC](https://www.ruby-forum.com/t/ruby-on-rails-performance-why-is-mongrel-popular/88521 "2007-03-12T11:37:10Z")

</div>

I’ve been a satisfied Ruby on Rails developer for quite some time now. Recently I’m considering using Rails again for a new website. But this website has many visitors - 40k unique visitors per day (and about 200k pag…

---

## [REST - Implementing HABTM in the real world](https://www.ruby-forum.com/t/rest-implementing-habtm-in-the-real-world/88526)

<div class="topic-metadata">

**Author:** [@tomtt](https://www.ruby-forum.com/u/tomtt)\
**Replies:** 0\
**Last updated:** [March 12, 2007, 11:28am UTC](https://www.ruby-forum.com/t/rest-implementing-habtm-in-the-real-world/88526 "2007-03-12T11:28:08Z")

</div>

Hi again - another REST question! I think I’ve got a good grasp on it all now, except for how to implement HABTM properly. I understand you need turn the join model into a controller, such as ‘memberships’ below, and …

---

## [Cannot compile emplate in eclipse](https://www.ruby-forum.com/t/cannot-compile-emplate-in-eclipse/88518)

<div class="topic-metadata">

**Author:** [@stemey](https://www.ruby-forum.com/u/stemey)\
**Replies:** 0\
**Last updated:** [March 12, 2007, 9:40am UTC](https://www.ruby-forum.com/t/cannot-compile-emplate-in-eclipse/88518 "2007-03-12T09:40:54Z")

</div>

Hi, some of our developer crew cannot view he application anymore because the templates have compile errors Initially we used UTF-8 as file encoding. We use eclips to checkout the code. Even freshly chechedout templa…

---

## [Selective caching?](https://www.ruby-forum.com/t/selective-caching/88517)

<div class="topic-metadata">

**Author:** [@David\_Johansson](https://www.ruby-forum.com/u/David_Johansson)\
**Replies:** 1\
**Last updated:** [March 12, 2007, 9:04am UTC](https://www.ruby-forum.com/t/selective-caching/88517 "2007-03-12T09:04:50Z")

</div>

I am thinking of not using a separate admin portal, but instead letting the admin of my application use the same interface as the end users see. The admin will then be able to see special “edit”, “delete” links next t…

---

## [Deployment of Ruby On Rails Application at Client side](https://www.ruby-forum.com/t/deployment-of-ruby-on-rails-application-at-client-side/88516)

<div class="topic-metadata">

**Author:** [@anand](https://www.ruby-forum.com/u/anand)\
**Replies:** 0\
**Last updated:** [March 12, 2007, 9:01am UTC](https://www.ruby-forum.com/t/deployment-of-ruby-on-rails-application-at-client-side/88516 "2007-03-12T09:01:50Z")

</div>

Hi, I am developing an application for which ROR is best suited. But when it comes to deployment, I am searching for an advice. My application is not the one which is hosted on internet and client make use of that. C…

---

## [Free tv over 2000 channels](https://www.ruby-forum.com/t/free-tv-over-2000-channels/88513)

<div class="topic-metadata">

**Author:** [@Vinster](https://www.ruby-forum.com/u/Vinster)\
**Replies:** 0\
**Last updated:** [March 12, 2007, 8:31am UTC](https://www.ruby-forum.com/t/free-tv-over-2000-channels/88513 "2007-03-12T08:31:48Z")

</div>

http://www.television.bg This is damn cool. At the bottom in the middle you’ll see a drop-down list saying Genre. Choose which genre you want like Sport, News, Music etc and once that’s loaded you’ll see a drop-down …

---

## [How to create an action with two params](https://www.ruby-forum.com/t/how-to-create-an-action-with-two-params/88506)

<div class="topic-metadata">

**Author:** [@abon](https://www.ruby-forum.com/u/abon)\
**Replies:** 3\
**Last updated:** [March 12, 2007, 7:54am UTC](https://www.ruby-forum.com/t/how-to-create-an-action-with-two-params/88506 "2007-03-12T07:54:45Z")

</div>

I’m implementing an action that needs two parameters in the url like do/a/b and in the controller I would like to access a and b like params\[:id\] Please let me know if there’s any solution. THanks Abon

---

## [How to run .swf(flash) in rails](https://www.ruby-forum.com/t/how-to-run-swf-flash-in-rails/88512)

<div class="topic-metadata">

**Author:** [@rupesh\_shelar](https://www.ruby-forum.com/u/rupesh_shelar)\
**Replies:** 0\
**Last updated:** [March 12, 2007, 7:37am UTC](https://www.ruby-forum.com/t/how-to-run-swf-flash-in-rails/88512 "2007-03-12T07:37:44Z")

</div>

Hi , I have created flash movie using flash 8 pro for GUI. Please help me to run this flash on rails platform. Thanks in advance.

---

## [Observe(ing)\_fild a collection\_select with 1 item](https://www.ruby-forum.com/t/observe-ing-fild-a-collection-select-with-1-item/88509)

<div class="topic-metadata">

**Author:** [@Jorge\_Mario\_GSMazo](https://www.ruby-forum.com/u/Jorge_Mario_GSMazo)\
**Replies:** 0\
**Last updated:** [March 12, 2007, 6:57am UTC](https://www.ruby-forum.com/t/observe-ing-fild-a-collection-select-with-1-item/88509 "2007-03-12T06:57:41Z")

</div>

Hi there I’m obseving a field (a collection select) and it work if the collection has more than one item, if it has only one it wont change anything here is my code \<%= collection\_select ‘address’, ‘address’, @addres…

---

## [How to use :with =\>"this.value" in a collection select?](https://www.ruby-forum.com/t/how-to-use-with-this-value-in-a-collection-select/88380)

<div class="topic-metadata">

**Author:** [@Jorge\_Mario\_GSMazo](https://www.ruby-forum.com/u/Jorge_Mario_GSMazo)\
**Replies:** 5\
**Last updated:** [March 12, 2007, 6:47am UTC](https://www.ruby-forum.com/t/how-to-use-with-this-value-in-a-collection-select/88380 "2007-03-12T06:47:41Z")

</div>

hi there I have this code \<%= collection\_select ‘address’, ‘address’, @addresses, :id, :address,{}, :onchange =\> remote\_function(:update =\> ‘shipping’, :url =\> { :action =\> :boota }, :with =\> “‘boo’=this.value”) %\>…

---

## [Actionmail Custom Header](https://www.ruby-forum.com/t/actionmail-custom-header/88507)

<div class="topic-metadata">

**Author:** [@The\_Outlander](https://www.ruby-forum.com/u/The_Outlander)\
**Replies:** 0\
**Last updated:** [March 12, 2007, 6:26am UTC](https://www.ruby-forum.com/t/actionmail-custom-header/88507 "2007-03-12T06:26:39Z")

</div>

How do I add a custom header message? I have added @header\[“X-Custom\_HEADER”\] = “TESTING” … this shows up when I print the tmail object … however, the receiver never gets it … almost like Actionmailer is stripping it …

---

## [Mysql::Error #28000Access denied](https://www.ruby-forum.com/t/mysql-error-28000access-denied/88488)

<div class="topic-metadata">

**Author:** [@Riot](https://www.ruby-forum.com/u/Riot)\
**Replies:** 5\
**Last updated:** [March 12, 2007, 4:38am UTC](https://www.ruby-forum.com/t/mysql-error-28000access-denied/88488 "2007-03-12T04:38:31Z")

</div>

I’m on MAC OSX and I set up my environment as described here: This may be too old and I just realized that, but before I attempt Building Ruby, Rails, Subversion, Mongrel, and MySQL on Mac OS X: Okay, I purchased a…

---

## [View link not working](https://www.ruby-forum.com/t/view-link-not-working/88440)

<div class="topic-metadata">

**Author:** [@yottameter](https://www.ruby-forum.com/u/yottameter)\
**Replies:** 7\
**Last updated:** [March 12, 2007, 4:05am UTC](https://www.ruby-forum.com/t/view-link-not-working/88440 "2007-03-12T04:05:29Z")

</div>

The problem variable here is @item\_class. It’s not passing as an extra parameter. I have in my partial \<%= @item\_class.name %\> #Just to make sure @item\_class is not null \<%= link\_to\_if someCondition, ‘myLink’, :actio…

---

## [No errors in auth](https://www.ruby-forum.com/t/no-errors-in-auth/88431)

<div class="topic-metadata">

**Author:** [@theremix](https://www.ruby-forum.com/u/theremix)\
**Replies:** 10\
**Last updated:** [March 12, 2007, 3:42am UTC](https://www.ruby-forum.com/t/no-errors-in-auth/88431 "2007-03-12T03:42:49Z")

</div>

've been working on this problem for a couple days now, and i haven’t found out why visitors can’t sign up, but no errors are shown (through error\_messages\_for). here is my model view and controller for sign up http:…

---

## [Problem manipulating params for login](https://www.ruby-forum.com/t/problem-manipulating-params-for-login/88493)

<div class="topic-metadata">

**Author:** [@taylorstrait](https://www.ruby-forum.com/u/taylorstrait)\
**Replies:** 2\
**Last updated:** [March 12, 2007, 2:50am UTC](https://www.ruby-forum.com/t/problem-manipulating-params-for-login/88493 "2007-03-12T02:50:52Z")

</div>

I can get this to work in the console by subbing a string for params\[:person\]\[:login\_name\] but my application won’t “catch” and convert the params in the development site. Here is the login function: #find user rec…

---

## [Authentication and authorization](https://www.ruby-forum.com/t/authentication-and-authorization/88494)

<div class="topic-metadata">

**Author:** [@jima](https://www.ruby-forum.com/u/jima)\
**Replies:** 0\
**Last updated:** [March 12, 2007, 2:30am UTC](https://www.ruby-forum.com/t/authentication-and-authorization/88494 "2007-03-12T02:30:23Z")

</div>

What are folks doing for their authorization control in their RoR applications. I am currently looking at the following resources http://www.billkatz.com/authorization (authorization plugin) http://perens.com/FreeSof…

---

## [How do I read an HTTP PUT from a controller?](https://www.ruby-forum.com/t/how-do-i-read-an-http-put-from-a-controller/88379)

<div class="topic-metadata">

**Author:** [@Tyler\_MacDonald](https://www.ruby-forum.com/u/Tyler_MacDonald)\
**Replies:** 4\
**Last updated:** [March 12, 2007, 2:16am UTC](https://www.ruby-forum.com/t/how-do-i-read-an-http-put-from-a-controller/88379 "2007-03-12T02:16:22Z")

</div>

I’ve googled around a little bit and havent found anything useful. :frowning: Has anybody written a rails controller that accepts HTTP PUT (DAV) requests? If so, do you have any pointers? Thanks, Tyler

---

## [My whole site disappeared!](https://www.ruby-forum.com/t/my-whole-site-disappeared/88489)

<div class="topic-metadata">

**Author:** [@taylorstrait](https://www.ruby-forum.com/u/taylorstrait)\
**Replies:** 1\
**Last updated:** [March 12, 2007, 2:06am UTC](https://www.ruby-forum.com/t/my-whole-site-disappeared/88489 "2007-03-12T02:06:15Z")

</div>

I was changing some model attribute names and forms and when I went to test it I got this error: Not Found \`/’ not found. WEBrick/1.3.1 (Ruby/1.8.5/2006-08-25) at 68.174.154.222:3002 I get the same error no matter w…

---

## [Good code?](https://www.ruby-forum.com/t/good-code/88487)

<div class="topic-metadata">

**Author:** [@leonb](https://www.ruby-forum.com/u/leonb)\
**Replies:** 0\
**Last updated:** [March 11, 2007, 11:51pm UTC](https://www.ruby-forum.com/t/good-code/88487 "2007-03-11T23:51:07Z")

</div>

Hi, Could you look at some code I created? I don’t know if it’s good… or if it could be better. Especially the controller. I couldn’t find a way to let the declaration\_payers be automatically saved. declarations\_con…

---

## [Public/index.html](https://www.ruby-forum.com/t/public-index-html/88413)

<div class="topic-metadata">

**Author:** [@doug](https://www.ruby-forum.com/u/doug)\
**Replies:** 4\
**Last updated:** [March 11, 2007, 11:21pm UTC](https://www.ruby-forum.com/t/public-index-html/88413 "2007-03-11T23:21:05Z")

</div>

Hi – I’m very new to rails. I have a couple of what have to be very naive questions. I don’t know what else to do but to ask them. I will use separate posts. The default page is public/index.html. Presumable this …

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

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