# Rails

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

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

---

## [About upload](https://www.ruby-forum.com/t/about-upload/130108)

<div class="topic-metadata">

**Author:** [@daociyiyou](https://www.ruby-forum.com/u/daociyiyou)\
**Replies:** 0\
**Last updated:** [February 25, 2008, 2:00pm UTC](https://www.ruby-forum.com/t/about-upload/130108 "2008-02-25T14:00:47Z")

</div>

Hello: How do i select a photo from computer hardware to upload the photo’s full address to the database?I don’t want to upload the photo itself and save it in the database ,only want to upload and save the photo’s fu…

---

## [Undefined method 'find'](https://www.ruby-forum.com/t/undefined-method-find/130061)

<div class="topic-metadata">

**Author:** [@djknorr75](https://www.ruby-forum.com/u/djknorr75)\
**Replies:** 2\
**Last updated:** [February 25, 2008, 1:52pm UTC](https://www.ruby-forum.com/t/undefined-method-find/130061 "2008-02-25T13:52:14Z")

</div>

Hello, I am following the guide in AWDWR for the shopping cart in Chapter 8 Iteration C2. I have the the cart and cart\_item models set up as shown below, but am receiving the error ‘undefined method \`find’ for #CartI…

---

## [Incremental counter in DB](https://www.ruby-forum.com/t/incremental-counter-in-db/130102)

<div class="topic-metadata">

**Author:** [@ratcheer](https://www.ruby-forum.com/u/ratcheer)\
**Replies:** 4\
**Last updated:** [February 25, 2008, 1:15pm UTC](https://www.ruby-forum.com/t/incremental-counter-in-db/130102 "2008-02-25T13:15:05Z")

</div>

I have an application that sends messages and each message that gets sent needs to have a unique sequence number, this sequence number is incremented with each message. As I understand it, I should be storing this se…

---

## [Serving files from public](https://www.ruby-forum.com/t/serving-files-from-public/130089)

<div class="topic-metadata">

**Author:** [@addywaddy](https://www.ruby-forum.com/u/addywaddy)\
**Replies:** 4\
**Last updated:** [February 25, 2008, 12:40pm UTC](https://www.ruby-forum.com/t/serving-files-from-public/130089 "2008-02-25T12:40:07Z")

</div>

Hi, I am building a rails app which supports accounts based on subdomain names. I want to serve files in public with respect to the subdomain name. For example: url: foo.myapp.com should deliver public/foo/images/…

---

## [Sphinx search without searchd](https://www.ruby-forum.com/t/sphinx-search-without-searchd/130008)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 1\
**Last updated:** [February 25, 2008, 11:59am UTC](https://www.ruby-forum.com/t/sphinx-search-without-searchd/130008 "2008-02-25T11:59:47Z")

</div>

Rubies: We now use Sphinx to search our Rails project, with generally good results. Architecturally, we have one issue. All Ruby Sphinx projects (we use acts\_as\_sphinx) seem to call the sphinx.rb. This calls searchd,…

---

## [Help with routing - prefix added automatically? - lookup action wanted](https://www.ruby-forum.com/t/help-with-routing-prefix-added-automatically-lookup-action-wanted/129655)

<div class="topic-metadata">

**Author:** [@tonypm](https://www.ruby-forum.com/u/tonypm)\
**Replies:** 3\
**Last updated:** [February 25, 2008, 11:13am UTC](https://www.ruby-forum.com/t/help-with-routing-prefix-added-automatically-lookup-action-wanted/129655 "2008-02-25T11:13:49Z")

</div>

I want to add a lookup action to my controller. I am trying to stay in the REST framework, so I have used map.resources :products I tried adding :member=\>{:lookup=\>:get} but this created a route that expected an id. …

---

## [Ajax pagination with will\_paginate and jQuery](https://www.ruby-forum.com/t/ajax-pagination-with-will-paginate-and-jquery/130090)

<div class="topic-metadata">

**Author:** [@jmcervera](https://www.ruby-forum.com/u/jmcervera)\
**Replies:** 0\
**Last updated:** [February 25, 2008, 10:54am UTC](https://www.ruby-forum.com/t/ajax-pagination-with-will-paginate-and-jquery/130090 "2008-02-25T10:54:17Z")

</div>

Hello, I am trying to use the plugin will\_paginate with jQuery, as it is explained in http://ozmm.org/posts/ajax\_will\_paginate\_jq\_style.html. ItÂ´s very easy. It works well on firefox, but has an interesting problem…

---

## [Creating variable.....?](https://www.ruby-forum.com/t/creating-variable/130085)

<div class="topic-metadata">

**Author:** [@casid](https://www.ruby-forum.com/u/casid)\
**Replies:** 0\
**Last updated:** [February 25, 2008, 10:10am UTC](https://www.ruby-forum.com/t/creating-variable/130085 "2008-02-25T10:10:16Z")

</div>

Hi RoR developers, I have selection which is not in form object. do you have any idea how to assign the value of selection to variable. I want to write something var select= document.selectionid.value; is it possibl…

---

## [Rails/Java Integration and Hosting](https://www.ruby-forum.com/t/rails-java-integration-and-hosting/130071)

<div class="topic-metadata">

**Author:** [@Myron\_M](https://www.ruby-forum.com/u/Myron_M)\
**Replies:** 1\
**Last updated:** [February 25, 2008, 10:00am UTC](https://www.ruby-forum.com/t/rails-java-integration-and-hosting/130071 "2008-02-25T10:00:57Z")

</div>

At the moment I’m a sub-contractor, doing mostly .NET work, with some Rails websites on the side just for fun. I’m considering applying for a position at a software company that will be pretty Java intensive, and I d…

---

## [RoR with flash + XML](https://www.ruby-forum.com/t/ror-with-flash-xml/130086)

<div class="topic-metadata">

**Author:** [@junsha](https://www.ruby-forum.com/u/junsha)\
**Replies:** 0\
**Last updated:** [February 25, 2008, 9:52am UTC](https://www.ruby-forum.com/t/ror-with-flash-xml/130086 "2008-02-25T09:52:04Z")

</div>

Hi all, I have a question about RoR with flash + XML. I am trying to develop an application with flash + XML. Basicly, the program uses flash to display the information from XML file. When I embed the flash player i…

---

## [Form options selections demystified](https://www.ruby-forum.com/t/form-options-selections-demystified/130072)

<div class="topic-metadata">

**Author:** [@ressister](https://www.ruby-forum.com/u/ressister)\
**Replies:** 1\
**Last updated:** [February 25, 2008, 8:44am UTC](https://www.ruby-forum.com/t/form-options-selections-demystified/130072 "2008-02-25T08:44:29Z")

</div>

Hi there, I have a form which has a variety of fields and field types. Each field is presenting a unique challenge in understanding how the active option is selected by default from data in the corresponding model. I…

---

## [Reusing the code](https://www.ruby-forum.com/t/reusing-the-code/129771)

<div class="topic-metadata">

**Author:** [@MohsinHijazee](https://www.ruby-forum.com/u/MohsinHijazee)\
**Replies:** 10\
**Last updated:** [February 25, 2008, 8:03am UTC](https://www.ruby-forum.com/t/reusing-the-code/129771 "2008-02-25T08:03:57Z")

</div>

Hi! I have a controller and I want to use the functionality of another controller ignoring its rendered response. Is that possible? What the render\_component is for? Regards, Mohsin

---

## [How to submit two form with one submit tag](https://www.ruby-forum.com/t/how-to-submit-two-form-with-one-submit-tag/130070)

<div class="topic-metadata">

**Author:** [@joe](https://www.ruby-forum.com/u/joe)\
**Replies:** 3\
**Last updated:** [February 25, 2008, 7:16am UTC](https://www.ruby-forum.com/t/how-to-submit-two-form-with-one-submit-tag/130070 "2008-02-25T07:16:59Z")

</div>

how to submit two form with one submit tag

---

## [Confusion in RAILS\_GEM\_VERSION](https://www.ruby-forum.com/t/confusion-in-rails-gem-version/130075)

<div class="topic-metadata">

**Author:** [@sukeerthiadiga](https://www.ruby-forum.com/u/sukeerthiadiga)\
**Replies:** 0\
**Last updated:** [February 25, 2008, 7:12am UTC](https://www.ruby-forum.com/t/confusion-in-rails-gem-version/130075 "2008-02-25T07:12:21Z")

</div>

i have installed gems 2.0.2, 1.2.3, 1.1.6 i need to use version 1.1.6. but it seems like its not taking version 1.1.6 will it take the latest one which which we have installed? in terminal it shows like this sukeert…

---

## [Validtion for non active record classes](https://www.ruby-forum.com/t/validtion-for-non-active-record-classes/130067)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 2\
**Last updated:** [February 25, 2008, 6:30am UTC](https://www.ruby-forum.com/t/validtion-for-non-active-record-classes/130067 "2008-02-25T06:30:06Z")

</div>

Hi Can I use the active record validation for non active record classes. I have a class class ServiceDeskResolutionEffort attr\_reader :days attr\_reader :hours attr\_reader :minutes def initialize(data) @passed\_…

---

## [Activeresource problems](https://www.ruby-forum.com/t/activeresource-problems/130069)

<div class="topic-metadata">

**Author:** [@adamwest](https://www.ruby-forum.com/u/adamwest)\
**Replies:** 1\
**Last updated:** [February 25, 2008, 6:06am UTC](https://www.ruby-forum.com/t/activeresource-problems/130069 "2008-02-25T06:06:02Z")

</div>

I have been experimenting with active resource recently but came across a problem. I receive a 404 error when trying to create a new object. The prescription object belongs to a device object. Processing Prescriptions…

---

## [So, how to learn 2.0](https://www.ruby-forum.com/t/so-how-to-learn-2-0/130064)

<div class="topic-metadata">

**Author:** [@jim\_starboard](https://www.ruby-forum.com/u/jim_starboard)\
**Replies:** 1\
**Last updated:** [February 25, 2008, 5:02am UTC](https://www.ruby-forum.com/t/so-how-to-learn-2-0/130064 "2008-02-25T05:02:44Z")

</div>

Web developer for many years, but haven’t given rails a spin yet. Can someone point me towards the best tutorial to get up and running in 2.0?

---

## [Connecting to Oracle from Rails 2.0.2](https://www.ruby-forum.com/t/connecting-to-oracle-from-rails-2-0-2/129954)

<div class="topic-metadata">

**Author:** [@silviogalea](https://www.ruby-forum.com/u/silviogalea)\
**Replies:** 2\
**Last updated:** [February 25, 2008, 3:38am UTC](https://www.ruby-forum.com/t/connecting-to-oracle-from-rails-2-0-2/129954 "2008-02-25T03:38:54Z")

</div>

Long afternoon, but finally got it. Hope this spares you some pain: Installation instructions mainly based on: http://ruby.about.com/od/enterprise/ss/ruby\_oracle.htm Install Oracle Instant Client: mkdir C:\\oracle c…

---

## [FXColorWell example wanted](https://www.ruby-forum.com/t/fxcolorwell-example-wanted/130055)

<div class="topic-metadata">

**Author:** [@richard](https://www.ruby-forum.com/u/richard)\
**Replies:** 1\
**Last updated:** [February 25, 2008, 3:24am UTC](https://www.ruby-forum.com/t/fxcolorwell-example-wanted/130055 "2008-02-25T03:24:49Z")

</div>

Hi All, I’ve got two questions: Where can I find an FXRuby example that employs FXColorWell? Do my Ruby installation have FXColorWell installed properly? I’m working through Lyle J.'s excellent (so far) tutorial on …

---

## [Will Paginate problem](https://www.ruby-forum.com/t/will-paginate-problem/129969)

<div class="topic-metadata">

**Author:** [@rustam](https://www.ruby-forum.com/u/rustam)\
**Replies:** 2\
**Last updated:** [February 25, 2008, 3:17am UTC](https://www.ruby-forum.com/t/will-paginate-problem/129969 "2008-02-25T03:17:39Z")

</div>

in order to use will paginate i have update my rails app from 1.2.3 to 1.2.6 but i have the same pagination problem when i was use rails 1.2.3 that page counted normaly ,but it showes all records on the same page th…

---

## [Hash code](https://www.ruby-forum.com/t/hash-code/130060)

<div class="topic-metadata">

**Author:** [@masch](https://www.ruby-forum.com/u/masch)\
**Replies:** 0\
**Last updated:** [February 25, 2008, 2:49am UTC](https://www.ruby-forum.com/t/hash-code/130060 "2008-02-25T02:49:40Z")

</div>

Hi! All!.. I’ve got a question: I want to build a front-end for http://www.opensubtitles.com/ in rails and one of the first problem is to build hash code. The examples of the page are in other language but not in r…

---

## [Mongrel logs DB load times](https://www.ruby-forum.com/t/mongrel-logs-db-load-times/130059)

<div class="topic-metadata">

**Author:** [@t\_chheng](https://www.ruby-forum.com/u/t_chheng)\
**Replies:** 0\
**Last updated:** [February 25, 2008, 2:31am UTC](https://www.ruby-forum.com/t/mongrel-logs-db-load-times/130059 "2008-02-25T02:31:27Z")

</div>

My mongrel logs show an incorrect DB load times, DB: 0.00000 (0%) for every access. I know it is hitting the database. Any ideas how to trace why the DB load time reporting is incorrect? It only happens in productio…

---

## [1 error(s) on assignment of multiparameter attributes](https://www.ruby-forum.com/t/1-error-s-on-assignment-of-multiparameter-attributes/130048)

<div class="topic-metadata">

**Author:** [@keaja](https://www.ruby-forum.com/u/keaja)\
**Replies:** 3\
**Last updated:** [February 25, 2008, 1:17am UTC](https://www.ruby-forum.com/t/1-error-s-on-assignment-of-multiparameter-attributes/130048 "2008-02-25T01:17:04Z")

</div>

I am trying to create a form for processing credit cards. For the credit card expiration date, I would like to leave the day field out of the form for obvious reasons. However, the following code is producing an error…

---

## [Cache Control Headers](https://www.ruby-forum.com/t/cache-control-headers/126980)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [February 25, 2008, 12:52am UTC](https://www.ruby-forum.com/t/cache-control-headers/126980 "2008-02-25T00:52:04Z")

</div>

I am using a controller to serve up CSS. I am having a problem with browsers not caching the CSS and think it is related to the Cache- Control header. I tried the following, but the browsers still will not cache: h…

---

## [Rails 2.0/Autotest "Color is not a class"](https://www.ruby-forum.com/t/rails-2-0-autotest-color-is-not-a-class/130043)

<div class="topic-metadata">

**Author:** [@jeff](https://www.ruby-forum.com/u/jeff)\
**Replies:** 6\
**Last updated:** [February 25, 2008, 12:01am UTC](https://www.ruby-forum.com/t/rails-2-0-autotest-color-is-not-a-class/130043 "2008-02-25T00:01:25Z")

</div>

I’ve made a model called Color to manage custom styles for my application. It works find when I’m running it locally in Mongrel, and I haven’t tried to deploy it yet. I use ZenTest and Autotest, and when I run autote…

---

## [Executing \`deploy:update\_code' hangs](https://www.ruby-forum.com/t/executing-deploy-update-code-hangs/130049)

<div class="topic-metadata">

**Author:** [@rain\_tmc](https://www.ruby-forum.com/u/rain_tmc)\
**Replies:** 0\
**Last updated:** [February 24, 2008, 11:39pm UTC](https://www.ruby-forum.com/t/executing-deploy-update-code-hangs/130049 "2008-02-24T23:39:13Z")

</div>

When running either cap deploy or cap deploy:cold cap basically freezes at the this step: executing \`deploy:update\_code’ I have svn installed on windows workstation along with linux on sharehost(bluehost). I am able…

---

## [Stateful Ruby on Rails?](https://www.ruby-forum.com/t/stateful-ruby-on-rails/130046)

<div class="topic-metadata">

**Author:** [@lgbr](https://www.ruby-forum.com/u/lgbr)\
**Replies:** 1\
**Last updated:** [February 24, 2008, 10:15pm UTC](https://www.ruby-forum.com/t/stateful-ruby-on-rails/130046 "2008-02-24T22:15:54Z")

</div>

I’ve done developing in several different web languages now. I’ve come across a problem which might entail some background processing. One of the things that really excited me about Java was the ability to create serv…

---

## [Rake db:bootstrap not appearing under rake -T](https://www.ruby-forum.com/t/rake-db-bootstrap-not-appearing-under-rake-t/128796)

<div class="topic-metadata">

**Author:** [@mindtonic](https://www.ruby-forum.com/u/mindtonic)\
**Replies:** 4\
**Last updated:** [February 24, 2008, 9:41pm UTC](https://www.ruby-forum.com/t/rake-db-bootstrap-not-appearing-under-rake-t/128796 "2008-02-24T21:41:33Z")

</div>

Hello, I have filled db/fixtures with the static data for my site in hopes of using db:bootstrap as described on many sites. But db:bootstrap is not available under my rake command. Any suggestions? Thanks!

---

## [Session Problem plz help me](https://www.ruby-forum.com/t/session-problem-plz-help-me/130034)

<div class="topic-metadata">

**Author:** [@suhaib](https://www.ruby-forum.com/u/suhaib)\
**Replies:** 1\
**Last updated:** [February 24, 2008, 7:15pm UTC](https://www.ruby-forum.com/t/session-problem-plz-help-me/130034 "2008-02-24T19:15:38Z")

</div>

first i create the model on the pre-build table product ( i do not migrate product table it is already in the database) , after that i create the session migrate file , class Sessions \< ActiveRecord::Migration def se…

---

## [Graphic validation tutorial](https://www.ruby-forum.com/t/graphic-validation-tutorial/130031)

<div class="topic-metadata">

**Author:** [@burninglegion](https://www.ruby-forum.com/u/burninglegion)\
**Replies:** 0\
**Last updated:** [February 24, 2008, 5:17pm UTC](https://www.ruby-forum.com/t/graphic-validation-tutorial/130031 "2008-02-24T17:17:11Z")

</div>

Hi everyone, i am kinda new to this web development so i would like to ask is there any pros out there that can teach me a thing or 2 about graphic validation in ruby on rails. The furtherest i go is down rmagick whi…

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

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