# Rails

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

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

---

## [Nas-yahoo\_stock gem for stock/finance data](https://www.ruby-forum.com/t/nas-yahoo-stock-gem-for-stock-finance-data/178410)

<div class="topic-metadata">

**Author:** [@nasir](https://www.ruby-forum.com/u/nasir)\
**Replies:** 0\
**Last updated:** [November 4, 2009, 6:48am UTC](https://www.ruby-forum.com/t/nas-yahoo-stock-gem-for-stock-finance-data/178410 "2009-11-04T06:48:31Z")

</div>

I have published a yahoo stock gem. The gem provides an interface to yahoo finance to get stock related data. For instance, latest trade related data, volume, 50 day moving average, market cap, stock history, etc. Th…

---

## [Mapping a resource to a subdirectory controller](https://www.ruby-forum.com/t/mapping-a-resource-to-a-subdirectory-controller/178377)

<div class="topic-metadata">

**Author:** [@mark42](https://www.ruby-forum.com/u/mark42)\
**Replies:** 2\
**Last updated:** [November 4, 2009, 6:26am UTC](https://www.ruby-forum.com/t/mapping-a-resource-to-a-subdirectory-controller/178377 "2009-11-04T06:26:16Z")

</div>

My app (like so many others) has an admin section, which uses controllers inside an admin directory. To keep it simple, I’m only administering the User resource for now. I have a controller that looks like this: cla…

---

## [How to remove a gem](https://www.ruby-forum.com/t/how-to-remove-a-gem/178407)

<div class="topic-metadata">

**Author:** [@RVince](https://www.ruby-forum.com/u/RVince)\
**Replies:** 3\
**Last updated:** [November 4, 2009, 5:09am UTC](https://www.ruby-forum.com/t/how-to-remove-a-gem/178407 "2009-11-04T05:09:00Z")

</div>

I would like to remove (uninstall) a particular gem. I installed the gem creator’s beta copy of their next release, but it’s problematic, and I neet to revert to the most recent stable version. How might i uninstall a…

---

## [Working round 'invalid byte sequence'](https://www.ruby-forum.com/t/working-round-invalid-byte-sequence/178329)

<div class="topic-metadata">

**Author:** [@tobyr](https://www.ruby-forum.com/u/tobyr)\
**Replies:** 5\
**Last updated:** [November 4, 2009, 1:55am UTC](https://www.ruby-forum.com/t/working-round-invalid-byte-sequence/178329 "2009-11-04T01:55:28Z")

</div>

I am a very amateur Rubyist who, amongst other things, likes to use a simple Rails app to query my company’s MySQL config database. The server I now use to do this has got 1.9.1 and Rails 2.3.3. I’ve now hit the ‘pr…

---

## [File upload failed. Try a different image?](https://www.ruby-forum.com/t/file-upload-failed-try-a-different-image/178394)

<div class="topic-metadata">

**Author:** [@RubyonRails\_newbie](https://www.ruby-forum.com/u/RubyonRails_newbie)\
**Replies:** 3\
**Last updated:** [November 3, 2009, 10:51pm UTC](https://www.ruby-forum.com/t/file-upload-failed-try-a-different-image/178394 "2009-11-03T22:51:28Z")

</div>

Evening all! I’ve decided to give it another shot with the image upload functionality provided with the tutorial ‘RailsSpace’… I’ve got further, in the fact that it recognizes an upload attempt, but fails with the me…

---

## [Best way to organize the DB for my app](https://www.ruby-forum.com/t/best-way-to-organize-the-db-for-my-app/178382)

<div class="topic-metadata">

**Author:** [@erik](https://www.ruby-forum.com/u/erik)\
**Replies:** 1\
**Last updated:** [November 3, 2009, 10:19pm UTC](https://www.ruby-forum.com/t/best-way-to-organize-the-db-for-my-app/178382 "2009-11-03T22:19:50Z")

</div>

I’m working on an app that allows users to customize an HTML design template to suit their needs. The user will be able to customize css through a graphical interface and then output an HTML for their usage. The basic…

---

## [\[JOBS\] : Management consulting firm seeking Social Software expert](https://www.ruby-forum.com/t/jobs-management-consulting-firm-seeking-social-software-expert/178384)

<div class="topic-metadata">

**Author:** [@Port\_Lib\_Soccer](https://www.ruby-forum.com/u/Port_Lib_Soccer)\
**Replies:** 0\
**Last updated:** [November 3, 2009, 8:32pm UTC](https://www.ruby-forum.com/t/jobs-management-consulting-firm-seeking-social-software-expert/178384 "2009-11-03T20:32:03Z")

</div>

what : Long Term contract Opportunity with Top Tier Management Consulting firm Where: NYC Compensation :120-150K salary Client is looking for high end technologist with heavy Social Networking and Web 2.0 expeirence…

---

## [Call for speakers - ConFoo MontrÃ©al Ruby Tra ck](https://www.ruby-forum.com/t/call-for-speakers-confoo-montra-al-ruby-tra-ck/178375)

<div class="topic-metadata">

**Author:** [@Sylvain\_Carle](https://www.ruby-forum.com/u/Sylvain_Carle)\
**Replies:** 0\
**Last updated:** [November 3, 2009, 6:58pm UTC](https://www.ruby-forum.com/t/call-for-speakers-confoo-montra-al-ruby-tra-ck/178375 "2009-11-03T18:58:19Z")

</div>

Hi folks, I’m coordinator for the Ruby track at ConFoo.ca, a major Web development conference featuring a very large array of Web related subjects including PHP, Python, Ruby, standards, security, scaling, and system …

---

## [Gem::RemoteFetcher::FetchErro when installing rails](https://www.ruby-forum.com/t/gem-fetcherro-when-installing-rails/178338)

<div class="topic-metadata">

**Author:** [@pierr](https://www.ruby-forum.com/u/pierr)\
**Replies:** 1\
**Last updated:** [November 3, 2009, 6:02pm UTC](https://www.ruby-forum.com/t/gem-fetcherro-when-installing-rails/178338 "2009-11-03T18:02:42Z")

</div>

I am trying to install rails on Ubuntu 8.10, and met following errors. Please help me get through.Thanks. root@pierr-desktop:~# gem install rails ERROR: While executing gem … (Gem::RemoteFetcher::FetchError) bad re…

---

## [Will\_paginate pagination problem](https://www.ruby-forum.com/t/will-paginate-pagination-problem/178346)

<div class="topic-metadata">

**Author:** [@yazu](https://www.ruby-forum.com/u/yazu)\
**Replies:** 2\
**Last updated:** [November 3, 2009, 4:21pm UTC](https://www.ruby-forum.com/t/will-paginate-pagination-problem/178346 "2009-11-03T16:21:27Z")

</div>

hi; i use will\_paginate the first page come true but all other page get the same data of first page i checked in controller “page” parameter works true but paginate get only first page’s data and shows these data in a…

---

## [Can not put @ when debuging with Windows XP Home Edition](https://www.ruby-forum.com/t/can-not-put-when-debuging-with-windows-xp-home-edition/178363)

<div class="topic-metadata">

**Author:** [@xarc](https://www.ruby-forum.com/u/xarc)\
**Replies:** 0\
**Last updated:** [November 3, 2009, 3:26pm UTC](https://www.ruby-forum.com/t/can-not-put-when-debuging-with-windows-xp-home-edition/178363 "2009-11-03T15:26:57Z")

</div>

Hello, I have problems when I debug, buy only with a Laptop with XP Home Edition Here is my problem: when I debug I cann hot print @, \[ \] {… special characters. (see attached image) I have been looking for solutions…

---

## [Success in Observe field](https://www.ruby-forum.com/t/success-in-observe-field/178362)

<div class="topic-metadata">

**Author:** [@srinathbtech](https://www.ruby-forum.com/u/srinathbtech)\
**Replies:** 0\
**Last updated:** [November 3, 2009, 3:11pm UTC](https://www.ruby-forum.com/t/success-in-observe-field/178362 "2009-11-03T15:11:15Z")

</div>

Hi, How to call javascript function using success in observe field . \<%= observe\_field (ha.id, :frequency =\> 0.5, :update =\> "article\_list\_#{ha.id}", :url =\> {:action =\> :auto\_complete\_for\_article\_t…

---

## [How to print the data?](https://www.ruby-forum.com/t/how-to-print-the-data/178360)

<div class="topic-metadata">

**Author:** [@suji\_A](https://www.ruby-forum.com/u/suji_A)\
**Replies:** 1\
**Last updated:** [November 3, 2009, 3:06pm UTC](https://www.ruby-forum.com/t/how-to-print-the-data/178360 "2009-11-03T15:06:30Z")

</div>

Hi i was create a application for event management. The scaffold automatically create the show edit destroy links How to add the print link and print each event details. Thanks in advance. Regards, Suji A.

---

## [No way to read image data from database](https://www.ruby-forum.com/t/no-way-to-read-image-data-from-database/178265)

<div class="topic-metadata">

**Author:** [@daociyiyou](https://www.ruby-forum.com/u/daociyiyou)\
**Replies:** 11\
**Last updated:** [November 3, 2009, 3:03pm UTC](https://www.ruby-forum.com/t/no-way-to-read-image-data-from-database/178265 "2009-11-03T15:03:34Z")

</div>

db---- def self.up create\_table :db\_files,:force =\> true do |t| t.binary :data t.timestamps end end db---- controller---- def find\_db\_file project=Project.find\_by\_id(params\[:id\]) project\_snapshot=project.proje…

---

## [Awesome\_nested\_set help needed](https://www.ruby-forum.com/t/awesome-nested-set-help-needed/178359)

<div class="topic-metadata">

**Author:** [@idrysdale](https://www.ruby-forum.com/u/idrysdale)\
**Replies:** 0\
**Last updated:** [November 3, 2009, 2:12pm UTC](https://www.ruby-forum.com/t/awesome-nested-set-help-needed/178359 "2009-11-03T14:12:06Z")

</div>

Hello, I’ve been using the brilliant awesome\_nested\_set gem to manage pages and their parents on my app, however I’ve run into what appears to be a simple challenge… I use the helper nested\_set\_options to make life e…

---

## [Share controller method when rendering partial](https://www.ruby-forum.com/t/share-controller-method-when-rendering-partial/178303)

<div class="topic-metadata">

**Author:** [@andkjaer](https://www.ruby-forum.com/u/andkjaer)\
**Replies:** 5\
**Last updated:** [November 3, 2009, 12:17pm UTC](https://www.ruby-forum.com/t/share-controller-method-when-rendering-partial/178303 "2009-11-03T12:17:23Z")

</div>

Hi, I have a question regarding rendering partials: I have this controller called twitter class TwitterController \< ApplicationController def index @twitter\_search = Twitter::Search.new(’#rails’) end end In the t…

---

## [File not uploading properly](https://www.ruby-forum.com/t/file-not-uploading-properly/178292)

<div class="topic-metadata">

**Author:** [@raju\_k](https://www.ruby-forum.com/u/raju_k)\
**Replies:** 8\
**Last updated:** [November 3, 2009, 10:58am UTC](https://www.ruby-forum.com/t/file-not-uploading-properly/178292 "2009-11-03T10:58:23Z")

</div>

Hi all, I am using the following code to upload a file. views: \<%= file\_field “upload”, ‘file’ ,:size=\> ‘30’ %\> controller: file\_path= “#{RAILS\_ROOT}/public/email\_attachments/#{params\[:upload\]\[:file\].original\_filen…

---

## [Dynamic Database Connections](https://www.ruby-forum.com/t/dynamic-database-connections/178277)

<div class="topic-metadata">

**Author:** [@jmamma](https://www.ruby-forum.com/u/jmamma)\
**Replies:** 9\
**Last updated:** [November 3, 2009, 10:15am UTC](https://www.ruby-forum.com/t/dynamic-database-connections/178277 "2009-11-03T10:15:05Z")

</div>

Hey everyone! I have a problem that’s been making me a little nuts. I would like to use RoR for a upcoming project, but if I can’t get past this hiccup I’m afraid I’ll have to use PHP or Java. Ugh. The application …

---

## [Rails in css](https://www.ruby-forum.com/t/rails-in-css/178343)

<div class="topic-metadata">

**Author:** [@hemantborole](https://www.ruby-forum.com/u/hemantborole)\
**Replies:** 4\
**Last updated:** [November 3, 2009, 10:10am UTC](https://www.ruby-forum.com/t/rails-in-css/178343 "2009-11-03T10:10:05Z")

</div>

Hello all, Actually i am having a small problem… googled it but did’nt find any clue… So what i want to do is that i want to insert ruby variable in css style property… as like … But this is not working.. I am doin…

---

## [Help with auto\_complete css](https://www.ruby-forum.com/t/help-with-auto-complete-css/88614)

<div class="topic-metadata">

**Author:** [@sp00nyg](https://www.ruby-forum.com/u/sp00nyg)\
**Replies:** 7\
**Last updated:** [November 3, 2009, 9:22am UTC](https://www.ruby-forum.com/t/help-with-auto-complete-css/88614 "2009-11-03T09:22:05Z")

</div>

I have three fields in a row above a grid of data and I’d like to use autocomplete in these fields; however, the selection list appears behind my data grid, which hides the list. Any suggestions about how to override …

---

## [Ruby Gems version issue](https://www.ruby-forum.com/t/ruby-gems-version-issue/178333)

<div class="topic-metadata">

**Author:** [@connor](https://www.ruby-forum.com/u/connor)\
**Replies:** 4\
**Last updated:** [November 3, 2009, 9:18am UTC](https://www.ruby-forum.com/t/ruby-gems-version-issue/178333 "2009-11-03T09:18:54Z")

</div>

Hi, When I try to launch my ruby on rails server, it says my ruby gems version is not up to date. However it is. I’ve even tried reinstalling ruby gems to the latest version, but it still says I have an old version. …

---

## [Gem::RemoteFetcher::FetchError error when do gem install rails](https://www.ruby-forum.com/t/gem-fetcherror-error-when-do-gem-install-rails/178342)

<div class="topic-metadata">

**Author:** [@pierr](https://www.ruby-forum.com/u/pierr)\
**Replies:** 0\
**Last updated:** [November 3, 2009, 7:34am UTC](https://www.ruby-forum.com/t/gem-fetcherror-error-when-do-gem-install-rails/178342 "2009-11-03T07:34:44Z")

</div>

I am trying to install rails on Ubuntu 8.10, and met following errors. Please help me get through. The same error happens when do gem install heroku. Thanks for your help. root@pierr-desktop:~# gem install rails ERR…

---

## [Should cache-money work with rails unit tests?](https://www.ruby-forum.com/t/should-cache-money-work-with-rails-unit-tests/178282)

<div class="topic-metadata">

**Author:** [@tnyplz](https://www.ruby-forum.com/u/tnyplz)\
**Replies:** 6\
**Last updated:** [November 3, 2009, 5:54am UTC](https://www.ruby-forum.com/t/should-cache-money-work-with-rails-unit-tests/178282 "2009-11-03T05:54:05Z")

</div>

The Cache Money page (GitHub - nkallen/cache-money: A Write-Through Cacheing Library for ActiveRecord) mentions “For your unit tests, it is faster to use a Memcached mock than the real deal.” Faster is fine but will i…

---

## [Controller Action - Publish Automation](https://www.ruby-forum.com/t/controller-action-publish-automation/178318)

<div class="topic-metadata">

**Author:** [@leoncelot](https://www.ruby-forum.com/u/leoncelot)\
**Replies:** 1\
**Last updated:** [November 3, 2009, 5:17am UTC](https://www.ruby-forum.com/t/controller-action-publish-automation/178318 "2009-11-03T05:17:34Z")

</div>

I am storing the product, tip and post in Rails built in Cache at the site www.onebeautyproduct.com. Currently I have built a button in the administration that says “publish today’s events” which essentially deletes a…

---

## [Gem installation failed](https://www.ruby-forum.com/t/gem-installation-failed/177576)

<div class="topic-metadata">

**Author:** [@deva](https://www.ruby-forum.com/u/deva)\
**Replies:** 3\
**Last updated:** [November 3, 2009, 1:36am UTC](https://www.ruby-forum.com/t/gem-installation-failed/177576 "2009-11-03T01:36:32Z")

</div>

i got this error message while installing mysql gem… kindly help me to solve this issue… JRuby limited openssl loaded. gem install jruby-openssl for full support. http://wiki.jruby.org/wiki/JRuby\_Builtin\_OpenSSL Bui…

---

## [Plugin not instaling?](https://www.ruby-forum.com/t/plugin-not-instaling/178331)

<div class="topic-metadata">

**Author:** [@benol](https://www.ruby-forum.com/u/benol)\
**Replies:** 3\
**Last updated:** [November 3, 2009, 12:47am UTC](https://www.ruby-forum.com/t/plugin-not-instaling/178331 "2009-11-03T00:47:24Z")

</div>

Hi. I try to install a plugin, but with no success, nothing is printed, the plugin is not installed. Input and output on my console: wojtek@wojtek-laptop-hp:~/workspace\_galileo/miejscowki$ script/plugin install git:/…

---

## [\*\*\* Quick help with paperclip \*\*\*](https://www.ruby-forum.com/t/quick-help-with-paperclip/178316)

<div class="topic-metadata">

**Author:** [@RubyonRails\_newbie](https://www.ruby-forum.com/u/RubyonRails_newbie)\
**Replies:** 7\
**Last updated:** [November 2, 2009, 9:05pm UTC](https://www.ruby-forum.com/t/quick-help-with-paperclip/178316 "2009-11-02T21:05:38Z")

</div>

Hi All, Someone reccomended using paperclip as a way to easily upload photos. Basically I want a quick and easy solution to allow users to add a profile picture. Anyway - I have followed the tutorial on here: http:/…

---

## [How to obtain the context path in a Jruby app on Tomcat?](https://www.ruby-forum.com/t/how-to-obtain-the-context-path-in-a-jruby-app-on-tomcat/178144)

<div class="topic-metadata">

**Author:** [@rafaelrosafu](https://www.ruby-forum.com/u/rafaelrosafu)\
**Replies:** 3\
**Last updated:** [November 2, 2009, 8:54pm UTC](https://www.ruby-forum.com/t/how-to-obtain-the-context-path-in-a-jruby-app-on-tomcat/178144 "2009-11-02T20:54:31Z")

</div>

Hi all, I successfully deployed my JRuby on Rails app on Tomcat In a jsp page I’d use ${pageContext.request.contextPath} to obtain my context path.How could I do this in a Ruby controller? Thanks Rafael R.

---

## [Foreign key associations: best practices?](https://www.ruby-forum.com/t/foreign-key-associations-best-practices/178284)

<div class="topic-metadata">

**Author:** [@Aaron\_T](https://www.ruby-forum.com/u/Aaron_T)\
**Replies:** 3\
**Last updated:** [November 2, 2009, 8:17pm UTC](https://www.ruby-forum.com/t/foreign-key-associations-best-practices/178284 "2009-11-02T20:17:01Z")

</div>

Looks like http://www.redhillonrails.org has been taken over by ads and considering how old the RedHill plugins are getting I was wondering if people are still using the RedHill foreign\_key\_migrations plugin to setup…

---

## [CCAvenue Payment gateway in rails](https://www.ruby-forum.com/t/ccavenue-payment-gateway-in-rails/178296)

<div class="topic-metadata">

**Author:** [@mahesh\_s](https://www.ruby-forum.com/u/mahesh_s)\
**Replies:** 1\
**Last updated:** [November 2, 2009, 8:05pm UTC](https://www.ruby-forum.com/t/ccavenue-payment-gateway-in-rails/178296 "2009-11-02T20:05:56Z")

</div>

Hi Friends i would like to integrate the payment gateway ccavenue in to my railsapp give some guide line for how to implement the gateway Ur’s Mahesh

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

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