# Rails

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

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

---

## [Ajax in RoR](https://www.ruby-forum.com/t/ajax-in-ror/126201)

<div class="topic-metadata">

**Author:** [@fries88](https://www.ruby-forum.com/u/fries88)\
**Replies:** 4\
**Last updated:** [January 17, 2008, 12:16pm UTC](https://www.ruby-forum.com/t/ajax-in-ror/126201 "2008-01-17T12:16:59Z")

</div>

Hi, Does anyone know where can I get Ajax in RoR tutorials? Thamks

---

## [Restful Authentication Test Problem](https://www.ruby-forum.com/t/restful-authentication-test-problem/126317)

<div class="topic-metadata">

**Author:** [@Nuwan\_Chaturanga](https://www.ruby-forum.com/u/Nuwan_Chaturanga)\
**Replies:** 0\
**Last updated:** [January 17, 2008, 12:15pm UTC](https://www.ruby-forum.com/t/restful-authentication-test-problem/126317 "2008-01-17T12:15:49Z")

</div>

I am reletively a newbie to Rails. I utilized Restful Authentication plugin from techno-weenie for a new application I am developing. (http://svn.techno-weenie.net/projects/plugins/ restful\_authentication/) I wanted…

---

## [Numerical Action Names](https://www.ruby-forum.com/t/numerical-action-names/126292)

<div class="topic-metadata">

**Author:** [@partydrone](https://www.ruby-forum.com/u/partydrone)\
**Replies:** 4\
**Last updated:** [January 17, 2008, 11:31am UTC](https://www.ruby-forum.com/t/numerical-action-names/126292 "2008-01-17T11:31:01Z")

</div>

I have a controller for a product, and I want the actions to reflect the different models which are numbers. Simply using a number for the action name doesn’t seem to work: class ClickController \< ApplicationControlle…

---

## [Link question](https://www.ruby-forum.com/t/link-question/126312)

<div class="topic-metadata">

**Author:** [@extempore](https://www.ruby-forum.com/u/extempore)\
**Replies:** 1\
**Last updated:** [January 17, 2008, 11:18am UTC](https://www.ruby-forum.com/t/link-question/126312 "2008-01-17T11:18:37Z")

</div>

Dears I have this link which is working correctly but would like to know if it’s possible to create a second link within the same request. this is the original link \<%= link\_to s.achternaam, {:action =\> ‘show’, :id =\>…

---

## [Entire Rails App Loaded Into Memory?](https://www.ruby-forum.com/t/entire-rails-app-loaded-into-memory/126310)

<div class="topic-metadata">

**Author:** [@melvinram](https://www.ruby-forum.com/u/melvinram)\
**Replies:** 1\
**Last updated:** [January 17, 2008, 10:29am UTC](https://www.ruby-forum.com/t/entire-rails-app-loaded-into-memory/126310 "2008-01-17T10:29:21Z")

</div>

Hey everyone, I recently launched a product catalog website built on Rails and today I made a change to the app, uploaded the changes and nothing happened. I made sure that my files on the server were the lastest by o…

---

## [Submit link](https://www.ruby-forum.com/t/submit-link/126311)

<div class="topic-metadata">

**Author:** [@fries88](https://www.ruby-forum.com/u/fries88)\
**Replies:** 0\
**Last updated:** [January 17, 2008, 10:25am UTC](https://www.ruby-forum.com/t/submit-link/126311 "2008-01-17T10:25:12Z")

</div>

Hi, Is this the right way to submit form using link ? \<%= link\_to\_remote ‘Previous’, :name =\> “commit”, :url =\> {:action =\> ‘save\_users’}, :submit =\> “bin\_assignments”, :update =\> ‘123’ %\>

---

## [Erreur accÃ¨s WebService REST](https://www.ruby-forum.com/t/erreur-acca-s-webservice-rest/196576)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 2\
**Last updated:** [January 17, 2008, 10:19am UTC](https://www.ruby-forum.com/t/erreur-acca-s-webservice-rest/196576 "2008-01-17T10:19:54Z")

</div>

I am trying to write a REST web service testing locally is fine but whane I deploy the server and try test it via curl curl -i -X POST -H ‘Content-Type:application/xml’ -d ‘’ http://mytesteddomain.tld/user/posts/crea…

---

## [Mongrel in development env photo upload problem](https://www.ruby-forum.com/t/mongrel-in-development-env-photo-upload-problem/125840)

<div class="topic-metadata">

**Author:** [@pathfinder](https://www.ruby-forum.com/u/pathfinder)\
**Replies:** 4\
**Last updated:** [January 17, 2008, 10:13am UTC](https://www.ruby-forum.com/t/mongrel-in-development-env-photo-upload-problem/125840 "2008-01-17T10:13:22Z")

</div>

I have tried multiple apps that upload photos to run in my development environment and had no success until I forced the webrick server instead of mongrel. Now, no problems. I am developing on a windows machine with a…

---

## [Alternatives to RJS](https://www.ruby-forum.com/t/alternatives-to-rjs/126300)

<div class="topic-metadata">

**Author:** [@Jables](https://www.ruby-forum.com/u/Jables)\
**Replies:** 2\
**Last updated:** [January 17, 2008, 7:50am UTC](https://www.ruby-forum.com/t/alternatives-to-rjs/126300 "2008-01-17T07:50:55Z")

</div>

So, I have a vote button that when clicked uses link\_to\_remote to call a controller method vote, which logs the vote, then calls vote.rjs to do a replace\_html on the div that holds the vote button, which in turn chang…

---

## [ROR 2.0 & undefined method \`table\_name'](https://www.ruby-forum.com/t/ror-2-0-undefined-method-table-name/122515)

<div class="topic-metadata">

**Author:** [@razy](https://www.ruby-forum.com/u/razy)\
**Replies:** 3\
**Last updated:** [January 17, 2008, 7:38am UTC](https://www.ruby-forum.com/t/ror-2-0-undefined-method-table-name/122515 "2008-01-17T07:38:28Z")

</div>

Hi all, I’ve got stuck with this. Here’s the error message: NoMethodError in Account#index Showing account/index.rhtml where line #4 raised: undefined method \`table\_name’ for Upload:Class Extracted source (around li…

---

## [Use Symbols from yaml file](https://www.ruby-forum.com/t/use-symbols-from-yaml-file/126303)

<div class="topic-metadata">

**Author:** [@George\_Bray](https://www.ruby-forum.com/u/George_Bray)\
**Replies:** 1\
**Last updated:** [January 17, 2008, 7:37am UTC](https://www.ruby-forum.com/t/use-symbols-from-yaml-file/126303 "2008-01-17T07:37:18Z")

</div>

I’m loading application-wide variables from a yaml file, and one of them is a symbol development: LDAP\_HOST: ‘ldap.x.edu.au’ LDAP\_PORT: ‘636’ LDAP\_ENC: ‘:simple\_tls’ … That works fine, and I use the vars …

---

## [Strange behavior of show in applic](https://www.ruby-forum.com/t/strange-behavior-of-show-in-applic/126267)

<div class="topic-metadata">

**Author:** [@extempore](https://www.ruby-forum.com/u/extempore)\
**Replies:** 2\
**Last updated:** [January 17, 2008, 6:36am UTC](https://www.ruby-forum.com/t/strange-behavior-of-show-in-applic/126267 "2008-01-17T06:36:47Z")

</div>

I have a form in wich I can succesfully add someone to my db. When I come to my list page I kan see everyone in that list so far so good. when I click on a member I can see the member in detail but the “ploeg” part i…

---

## [Table associations and models best practice](https://www.ruby-forum.com/t/table-associations-and-models-best-practice/126139)

<div class="topic-metadata">

**Author:** [@ray](https://www.ruby-forum.com/u/ray)\
**Replies:** 1\
**Last updated:** [January 17, 2008, 5:32am UTC](https://www.ruby-forum.com/t/table-associations-and-models-best-practice/126139 "2008-01-17T05:32:57Z")

</div>

I need some help understanding the proper way to save (if possible) using the new(). create() method. I need an example to try to explain. Say, I have a table called projects with id, name, and status\_id as attribut…

---

## [Ldap](https://www.ruby-forum.com/t/ldap/118181)

<div class="topic-metadata">

**Author:** [@crazybass](https://www.ruby-forum.com/u/crazybass)\
**Replies:** 10\
**Last updated:** [January 17, 2008, 4:43am UTC](https://www.ruby-forum.com/t/ldap/118181 "2008-01-17T04:43:09Z")

</div>

Hello I have an application that is working. Now i want to have a login page to make the authentication using ldap. How can i do that with rails? What is the best library/extension to do that? Thanks regards

---

## [\[ADV\] The Ruport Book : Your guide to mastering Ruby Reports](https://www.ruby-forum.com/t/adv-the-ruport-book-your-guide-to-mastering-ruby-reports/197267)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 0\
**Last updated:** [January 17, 2008, 4:41am UTC](https://www.ruby-forum.com/t/adv-the-ruport-book-your-guide-to-mastering-ruby-reports/197267 "2008-01-17T04:41:59Z")

</div>

Hi folks, I am pleased to announce that Mike Milner and I have finished the Ruport Book. We have published it under our own company (Rinara Press LLC) through Lulu. With the help of the Ruport community, we’ve refin…

---

## [Getting specific values from params](https://www.ruby-forum.com/t/getting-specific-values-from-params/126293)

<div class="topic-metadata">

**Author:** [@DVG](https://www.ruby-forum.com/u/DVG)\
**Replies:** 2\
**Last updated:** [January 17, 2008, 4:27am UTC](https://www.ruby-forum.com/t/getting-specific-values-from-params/126293 "2008-01-17T04:27:45Z")

</div>

Sorry to post two newbie questions in one day :slight\_smile: I’m trying to make a new Character row in my database. It has several values in the row, but I only need 2 or so from the user and the rest can be figured o…

---

## [What is so hard about Rails deployment?](https://www.ruby-forum.com/t/what-is-so-hard-about-rails-deployment/125968)

<div class="topic-metadata">

**Author:** [@foobarwidget](https://www.ruby-forum.com/u/foobarwidget)\
**Replies:** 8\
**Last updated:** [January 17, 2008, 4:08am UTC](https://www.ruby-forum.com/t/what-is-so-hard-about-rails-deployment/125968 "2008-01-17T04:08:41Z")

</div>

Recently there has been a lot of fuss about the ease of Rails deployment. People made various claims, such as “I’ve deployed PHP, Java, (insert something else here) and Rails. Rails is by far the most painful.” and “J…

---

## [Ye Olde Form, Sessions and Params hash type questions](https://www.ruby-forum.com/t/ye-olde-form-sessions-and-params-hash-type-questions/125943)

<div class="topic-metadata">

**Author:** [@combas](https://www.ruby-forum.com/u/combas)\
**Replies:** 24\
**Last updated:** [January 17, 2008, 3:08am UTC](https://www.ruby-forum.com/t/ye-olde-form-sessions-and-params-hash-type-questions/125943 "2008-01-17T03:08:59Z")

</div>

Hi, Forgive me if this sounds like a commonly asked question, but I’ve searched high and low and read all the books and I’m still struggling. I’m trying to park the Data from an HTML form into a session and then retr…

---

## [Undefined method \`last' for {}:Hash rake db:migrate](https://www.ruby-forum.com/t/undefined-method-last-for-hash-rake-db-migrate/125565)

<div class="topic-metadata">

**Author:** [@rubyfreak](https://www.ruby-forum.com/u/rubyfreak)\
**Replies:** 5\
**Last updated:** [January 17, 2008, 2:43am UTC](https://www.ruby-forum.com/t/undefined-method-last-for-hash-rake-db-migrate/125565 "2008-01-17T02:43:52Z")

</div>

I have tried everything I can think of to make this work for 3 days. Thanks in advance. Here is what I did: rails 1.2.5 little\_ones\_bend svn export http://svn.subimage.com/source/substruct/site/trunk/vendor/plugins …

---

## [Trouble building mod\_ruby](https://www.ruby-forum.com/t/trouble-building-mod-ruby/246516)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [January 17, 2008, 2:06am UTC](https://www.ruby-forum.com/t/trouble-building-mod-ruby/246516 "2008-01-17T02:06:18Z")

</div>

Hi, I just downloaded mod\_ruby-1.2.6 for my Apache 2.2 server running on Fedora Core 6 Linux. I ran ./configure.rb without problems, but when I run make, I get the below errors. It seems to be complaining about fil…

---

## [Where did my uploaded file go?](https://www.ruby-forum.com/t/where-did-my-uploaded-file-go/126179)

<div class="topic-metadata">

**Author:** [@jojobert](https://www.ruby-forum.com/u/jojobert)\
**Replies:** 4\
**Last updated:** [January 17, 2008, 1:54am UTC](https://www.ruby-forum.com/t/where-did-my-uploaded-file-go/126179 "2008-01-17T01:54:04Z")

</div>

Hi, i have made a file uploading function on my application, the thing is i want to allow my users to download the file (can be pdf, doc, img, etc) so in my file upload controller: def download @photo = Photo.find(…

---

## [It seems to be a restful\_authentication bug (was Re: \[Rails\] Re: named route new\_session not working](https://www.ruby-forum.com/t/it-seems-to-be-a-restful-authentication-bug-was-re-rails-re-named-route-new-session-not-working/126290)

<div class="topic-metadata">

**Author:** [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Replies:** 0\
**Last updated:** [January 17, 2008, 1:25am UTC](https://www.ruby-forum.com/t/it-seems-to-be-a-restful-authentication-bug-was-re-rails-re-named-route-new-session-not-working/126290 "2008-01-17T01:25:30Z")

</div>

On 1/16/08, Jimmy P. removed\_email\_address@domain.invalid wrote: redirect\_to new\_session # \<---- NOTICE #Admin::CategoriesController:0x18e93dc end rake routes: new\_session GET /session/new …

---

## [Options for a continuous integration environment with RoR?](https://www.ruby-forum.com/t/options-for-a-continuous-integration-environment-with-ror/125935)

<div class="topic-metadata">

**Author:** [@combray](https://www.ruby-forum.com/u/combray)\
**Replies:** 15\
**Last updated:** [January 17, 2008, 1:17am UTC](https://www.ruby-forum.com/t/options-for-a-continuous-integration-environment-with-ror/125935 "2008-01-17T01:17:14Z")

</div>

Hi all, I’m in the process of setting up cruisecontrolrb with RCov as our continuous integration server. We use rSpec for our unit tests, and AFAIK all the integration tests and system tests are done offline (i.e. s…

---

## [Rails 1.2.6 mongrel script\\server error](https://www.ruby-forum.com/t/rails-1-2-6-mongrel-script-server-error/121638)

<div class="topic-metadata">

**Author:** [@Dejan\_D](https://www.ruby-forum.com/u/Dejan_D)\
**Replies:** 5\
**Last updated:** [January 17, 2008, 12:44am UTC](https://www.ruby-forum.com/t/rails-1-2-6-mongrel-script-server-error/121638 "2008-01-17T00:44:40Z")

</div>

When I try a newly created rails 1.2.6 application to mine surprise I got the following error: c:\\Temp\\Demo\>ruby script\\server =\> Booting Mongrel (use ‘script/server webrick’ to force WEBrick) =\> Rails application st…

---

## [Named route new\_session not working](https://www.ruby-forum.com/t/named-route-new-session-not-working/126288)

<div class="topic-metadata">

**Author:** [@jimmypalmer](https://www.ruby-forum.com/u/jimmypalmer)\
**Replies:** 5\
**Last updated:** [January 17, 2008, 12:36am UTC](https://www.ruby-forum.com/t/named-route-new-session-not-working/126288 "2008-01-17T00:36:17Z")

</div>

Anyone have any idea why a named route would NOT work? I did rake routes to make sure it was there and it was but for some reason new\_session doesn’t work.

---

## [How to create feed and write that feed to a file](https://www.ruby-forum.com/t/how-to-create-feed-and-write-that-feed-to-a-file/126195)

<div class="topic-metadata">

**Author:** [@dorelal](https://www.ruby-forum.com/u/dorelal)\
**Replies:** 3\
**Last updated:** [January 17, 2008, 12:05am UTC](https://www.ruby-forum.com/t/how-to-create-feed-and-write-that-feed-to-a-file/126195 "2008-01-17T00:05:53Z")

</div>

Creating RSS feed is easy and there are many articles on that. However my requirement is to generate and write that feed as a file (88.feed 89.feed etc). These feeds would be generated through cron every night. Any id…

---

## [REST web service POST 401 Unauthorized error](https://www.ruby-forum.com/t/rest-web-service-post-401-unauthorized-error/126286)

<div class="topic-metadata">

**Author:** [@Erwin](https://www.ruby-forum.com/u/Erwin)\
**Replies:** 0\
**Last updated:** [January 16, 2008, 11:56pm UTC](https://www.ruby-forum.com/t/rest-web-service-post-401-unauthorized-error/126286 "2008-01-16T23:56:06Z")

</div>

I am trying to set up REST web service w Rails 2.0.2, I don’t have any problem with the GET url = “http://#{WWW\_HOST}/posts/online.xml” result = Net::HTTP.get(URI(url)) I get the expected result but when I try to us…

---

## [Acquiring data from non-pair POST params](https://www.ruby-forum.com/t/acquiring-data-from-non-pair-post-params/126277)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 3\
**Last updated:** [January 16, 2008, 11:54pm UTC](https://www.ruby-forum.com/t/acquiring-data-from-non-pair-post-params/126277 "2008-01-16T23:54:30Z")

</div>

Screwy title, but what I am trying to do is… I have an incoming POST to a typical Rails /:controller/:action url. That post has one value, not a name-value pair. So, Rail’s params has that data as a key (along with th…

---

## [Respond\_to, mime types and excel](https://www.ruby-forum.com/t/respond-to-mime-types-and-excel/126285)

<div class="topic-metadata">

**Author:** [@binkly](https://www.ruby-forum.com/u/binkly)\
**Replies:** 0\
**Last updated:** [January 16, 2008, 11:43pm UTC](https://www.ruby-forum.com/t/respond-to-mime-types-and-excel/126285 "2008-01-16T23:43:14Z")

</div>

Hello All, I’m trying to figure out how respond\_to actually works, especially with the increased focus on REST. After I set a MIME type for Excel Mime::Type.register “application/vnd.ms-excel”, :xls In my index acti…

---

## [How to test if one range of dates overlaps another?](https://www.ruby-forum.com/t/how-to-test-if-one-range-of-dates-overlaps-another/126274)

<div class="topic-metadata">

**Author:** [@Neal\_L](https://www.ruby-forum.com/u/Neal_L)\
**Replies:** 4\
**Last updated:** [January 16, 2008, 11:27pm UTC](https://www.ruby-forum.com/t/how-to-test-if-one-range-of-dates-overlaps-another/126274 "2008-01-16T23:27:58Z")

</div>

Hi all, I have a situation with a recurring billing application where I need to test if one range of dates “overlaps” another range of dates. Does anyone know a rails find or mysql select statement that will test for …

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

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