# Rails

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

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

---

## [Opening for Senior Web Developer (Ruby on Rails)](https://www.ruby-forum.com/t/opening-for-senior-web-developer-ruby-on-rails/174805)

<div class="topic-metadata">

**Author:** [@Amit\_Raya](https://www.ruby-forum.com/u/Amit_Raya)\
**Replies:** 0\
**Last updated:** [September 2, 2009, 1:39pm UTC](https://www.ruby-forum.com/t/opening-for-senior-web-developer-ruby-on-rails/174805 "2009-09-02T13:39:29Z")

</div>

CastleRock Research Information Pvt. Ltd. is looking for talented Senior Web D. with a history of commercial product & consumer- oriented web application design and high-end development and exposure to the full projec…

---

## [How to upload a file and to download it](https://www.ruby-forum.com/t/how-to-upload-a-file-and-to-download-it/174793)

<div class="topic-metadata">

**Author:** [@akramwasim1234](https://www.ruby-forum.com/u/akramwasim1234)\
**Replies:** 3\
**Last updated:** [September 2, 2009, 1:22pm UTC](https://www.ruby-forum.com/t/how-to-upload-a-file-and-to-download-it/174793 "2009-09-02T13:22:30Z")

</div>

hi all , Plz give me some links on how to upload and download files in RoR. I want to upload a pdf file in one login and i want to download the same in other login

---

## [Simple picture form element](https://www.ruby-forum.com/t/simple-picture-form-element/174765)

<div class="topic-metadata">

**Author:** [@indigoi](https://www.ruby-forum.com/u/indigoi)\
**Replies:** 3\
**Last updated:** [September 2, 2009, 12:04pm UTC](https://www.ruby-forum.com/t/simple-picture-form-element/174765 "2009-09-02T12:04:11Z")

</div>

I need to make a form where a user clicks on one of two pictures to select which option they want. After they click the picture, the background or possibly border of the image should change depending on the picture cl…

---

## [Installing a plugin with different name](https://www.ruby-forum.com/t/installing-a-plugin-with-different-name/174791)

<div class="topic-metadata">

**Author:** [@Vikrant\_C](https://www.ruby-forum.com/u/Vikrant_C)\
**Replies:** 0\
**Last updated:** [September 2, 2009, 9:41am UTC](https://www.ruby-forum.com/t/installing-a-plugin-with-different-name/174791 "2009-09-02T09:41:49Z")

</div>

Hi, I’m a plugin developer, and I want users to let install the plugin using the following syntax. script/plugin install http://kopal.googlecode.com/hg/ However it installs it in “vendor/plugins/hg/” directory while …

---

## [Redirect Issues](https://www.ruby-forum.com/t/redirect-issues/174738)

<div class="topic-metadata">

**Author:** [@ksvijaynkl](https://www.ruby-forum.com/u/ksvijaynkl)\
**Replies:** 4\
**Last updated:** [September 2, 2009, 7:33am UTC](https://www.ruby-forum.com/t/redirect-issues/174738 "2009-09-02T07:33:02Z")

</div>

I have a controller file “maybies\_controller.rb” class MaybiesController \< ApplicationController def login redirect\_to “/maybies/categories” end def categories @category = Category.find(:all) end end routes.rb…

---

## [Export to CSV,](https://www.ruby-forum.com/t/export-to-csv/174784)

<div class="topic-metadata">

**Author:** [@lamrin](https://www.ruby-forum.com/u/lamrin)\
**Replies:** 2\
**Last updated:** [September 2, 2009, 7:18am UTC](https://www.ruby-forum.com/t/export-to-csv/174784 "2009-09-02T07:18:23Z")

</div>

in Export to CSV, i have overall 2500 records, and while exporting it takes long time to export all records, so, i have decided to export in the form of 1st 50 students,and, 2nd 50 students,so on. I have tried the b…

---

## [Slideshow of uploaded images](https://www.ruby-forum.com/t/slideshow-of-uploaded-images/174783)

<div class="topic-metadata">

**Author:** [@tdellaringa](https://www.ruby-forum.com/u/tdellaringa)\
**Replies:** 1\
**Last updated:** [September 2, 2009, 7:05am UTC](https://www.ruby-forum.com/t/slideshow-of-uploaded-images/174783 "2009-09-02T07:05:31Z")

</div>

I want to create a sort of slideshow thing in my application in which users can upload pictures to a filesystem or database (I don’t know which is better for this). Then the slideshow will show the pictures for a min…

---

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

<div class="topic-metadata">

**Author:** [@fireflyman](https://www.ruby-forum.com/u/fireflyman)\
**Replies:** 15\
**Last updated:** [September 2, 2009, 6:21am UTC](https://www.ruby-forum.com/t/will-paginate-problem/197097 "2009-09-02T06:21:01Z")

</div>

Hi,everybody I write a code like follow,the question was “paginate” has been drop until the rails 2.0,now we use “will\_paginate” to replace it.But I don’t know how to change my code to let it suitable. def index @pa…

---

## [RSA and PHP](https://www.ruby-forum.com/t/rsa-and-php/174749)

<div class="topic-metadata">

**Author:** [@joana](https://www.ruby-forum.com/u/joana)\
**Replies:** 1\
**Last updated:** [September 2, 2009, 3:29am UTC](https://www.ruby-forum.com/t/rsa-and-php/174749 "2009-09-02T03:29:59Z")

</div>

Hi, I am trying to encrypt a string on PHP using RSA which should then be decrypted by Ruby on Rails. In PHP, I am using the following commands: $fp = fopen(…); $pKey = fread($fp, filesize(…)); openssl\_public\_encryp…

---

## [View layer state and session variables - ajax necessary?](https://www.ruby-forum.com/t/view-layer-state-and-session-variables-ajax-necessary/174778)

<div class="topic-metadata">

**Author:** [@lunaclaire](https://www.ruby-forum.com/u/lunaclaire)\
**Replies:** 0\
**Last updated:** [September 2, 2009, 2:52am UTC](https://www.ruby-forum.com/t/view-layer-state-and-session-variables-ajax-necessary/174778 "2009-09-02T02:52:01Z")

</div>

I have a new interaction on a couple pages where I let the user collapse/expand a side panel. I’d like to save state, so that when the page is loaded subsequently, I can show each panel in its previous state.\\ After…

---

## [Rake migration issue](https://www.ruby-forum.com/t/rake-migration-issue/174705)

<div class="topic-metadata">

**Author:** [@zambezi](https://www.ruby-forum.com/u/zambezi)\
**Replies:** 9\
**Last updated:** [September 2, 2009, 2:01am UTC](https://www.ruby-forum.com/t/rake-migration-issue/174705 "2009-09-02T02:01:40Z")

</div>

I’ve encountered a problem running Rake migrations. This is in a fresh database (no prior migrations run). 001\_create\_incident\_users 002\_create\_incidents Running db:migration resulted in table incident\_users being …

---

## [Lots of InvalidAuthenticityToken errors - what's causing it?](https://www.ruby-forum.com/t/lots-of-invalidauthenticitytoken-errors-whats-causing-it/174775)

<div class="topic-metadata">

**Author:** [@Phoenix\_R](https://www.ruby-forum.com/u/Phoenix_R)\
**Replies:** 0\
**Last updated:** [September 2, 2009, 1:23am UTC](https://www.ruby-forum.com/t/lots-of-invalidauthenticitytoken-errors-whats-causing-it/174775 "2009-09-02T01:23:36Z")

</div>

So I’ve had this application online for about 4 months now, and ever since launch, I get random e-mails from ExceptionNotification about authenticity token errors. In and of itself, that’s cool, but I’m disturbed by …

---

## [Canadian Centre for Architecture uses Rails!](https://www.ruby-forum.com/t/canadian-centre-for-architecture-uses-rails/174770)

<div class="topic-metadata">

**Author:** [@Jesse\_Sutherland](https://www.ruby-forum.com/u/Jesse_Sutherland)\
**Replies:** 0\
**Last updated:** [September 2, 2009, 12:38am UTC](https://www.ruby-forum.com/t/canadian-centre-for-architecture-uses-rails/174770 "2009-09-02T00:38:29Z")

</div>

Heyo folks, the new site for the CCA has been up for the past month or so and we (Bluesponge) are pretty proud of it: http://cca.qc.ca We spent a lot of time on this site and used a lot of different technologies to …

---

## [Image Rendering Problem](https://www.ruby-forum.com/t/image-rendering-problem/174769)

<div class="topic-metadata">

**Author:** [@Dewyn](https://www.ruby-forum.com/u/Dewyn)\
**Replies:** 0\
**Last updated:** [September 2, 2009, 12:38am UTC](https://www.ruby-forum.com/t/image-rendering-problem/174769 "2009-09-02T00:38:28Z")

</div>

Here’s the rundown of the problem that I’m having: I have a page that I am rendering that has multiple icons being displayed. The icons are being stored as binary files in the database. When I load the page with a col…

---

## [\[JOBS\] Permanent Ruby on Rails Developer- Vancouver, BC](https://www.ruby-forum.com/t/jobs-permanent-ruby-on-rails-developer-vancouver-bc/174771)

<div class="topic-metadata">

**Author:** [@SarahSVancouverS\_B](https://www.ruby-forum.com/u/SarahSVancouverS_B)\
**Replies:** 0\
**Last updated:** [September 2, 2009, 12:38am UTC](https://www.ruby-forum.com/t/jobs-permanent-ruby-on-rails-developer-vancouver-bc/174771 "2009-09-02T00:38:28Z")

</div>

If you meet the required criteria and are interested in the above position please forward a Word version of your resume to Sarah Nguyen, Technical Recruiter at removed\_email\_address@domain.invalid. Due to the volume of …

---

## [Sinatra: jquery displays ruby code when calling for an update. a little help please](https://www.ruby-forum.com/t/sinatra-jquery-displays-ruby-code-when-calling-for-an-update-a-little-help-please/174713)

<div class="topic-metadata">

**Author:** [@Kreas](https://www.ruby-forum.com/u/Kreas)\
**Replies:** 2\
**Last updated:** [September 1, 2009, 11:22pm UTC](https://www.ruby-forum.com/t/sinatra-jquery-displays-ruby-code-when-calling-for-an-update-a-little-help-please/174713 "2009-09-01T23:22:58Z")

</div>

Hey all, So I’m running into an issue with jquery when making an ajax call to retrieve a string. It comes back displaying the entire chunk of code rather than rendering it in my erb file… I’m confused. Here’s the act…

---

## [\[newb\] Controller Help](https://www.ruby-forum.com/t/newb-controller-help/174758)

<div class="topic-metadata">

**Author:** [@KRKRKR](https://www.ruby-forum.com/u/KRKRKR)\
**Replies:** 1\
**Last updated:** [September 1, 2009, 8:39pm UTC](https://www.ruby-forum.com/t/newb-controller-help/174758 "2009-09-01T20:39:41Z")

</div>

Hey all been working on my first app that is to help track projects and who’s working on them. I want to be able in the project controller find employees in the employee controller by project\_id, and then list them o…

---

## [Embed flash application](https://www.ruby-forum.com/t/embed-flash-application/174747)

<div class="topic-metadata">

**Author:** [@Robin\_F](https://www.ruby-forum.com/u/Robin_F)\
**Replies:** 2\
**Last updated:** [September 1, 2009, 8:29pm UTC](https://www.ruby-forum.com/t/embed-flash-application/174747 "2009-09-01T20:29:44Z")

</div>

Hi, I have a third-party flash application that needs to be incorporated into a site I look after. The application consists of an swf in a standard html file and then a load of supporting files organised in directori…

---

## ["Missing these required gems: rspec-rails" in ruby 1.9](https://www.ruby-forum.com/t/missing-these-required-gems-rspec-rails-in-ruby-1-9/174712)

<div class="topic-metadata">

**Author:** [@oreng](https://www.ruby-forum.com/u/oreng)\
**Replies:** 7\
**Last updated:** [September 1, 2009, 7:47pm UTC](https://www.ruby-forum.com/t/missing-these-required-gems-rspec-rails-in-ruby-1-9/174712 "2009-09-01T19:47:00Z")

</div>

i get the above error when running rake. I tried switching rails 2.3.3 with 2.3.2 but it didn’t help. here are my gems: actionmailer (2.3.2) actionpack (2.3.2) activerecord (2.3.2) activeresource (2.3.2) activesup…

---

## [How to use a long/bigint id in Rails applications?](https://www.ruby-forum.com/t/how-to-use-a-long-bigint-id-in-rails-applications/174752)

<div class="topic-metadata">

**Author:** [@jah4711](https://www.ruby-forum.com/u/jah4711)\
**Replies:** 0\
**Last updated:** [September 1, 2009, 5:54pm UTC](https://www.ruby-forum.com/t/how-to-use-a-long-bigint-id-in-rails-applications/174752 "2009-09-01T17:54:01Z")

</div>

I am looking for a way to use a long/bigint primary key instead of the default integer id. I did some googling and there are some results (e.g. activerecord - How to use long id in Rails applications? - Stack Overflow)…

---

## [Is there a way to override SQL generated during rake:test:clone\_structure?](https://www.ruby-forum.com/t/is-there-a-way-to-override-sql-generated-during-rakeclone-structure/174751)

<div class="topic-metadata">

**Author:** [@tomuhs](https://www.ruby-forum.com/u/tomuhs)\
**Replies:** 0\
**Last updated:** [September 1, 2009, 5:25pm UTC](https://www.ruby-forum.com/t/is-there-a-way-to-override-sql-generated-during-rakeclone-structure/174751 "2009-09-01T17:25:54Z")

</div>

I have two tables with ID columns that must be unsigned integers. When I try to clone the database for testing, Rails misjudges these columns as signed integers, and the test cannot proceed because this table type doe…

---

## [Rake db:migrate fails](https://www.ruby-forum.com/t/rake-db-migrate-fails/174744)

<div class="topic-metadata">

**Author:** [@jasonallen](https://www.ruby-forum.com/u/jasonallen)\
**Replies:** 2\
**Last updated:** [September 1, 2009, 4:32pm UTC](https://www.ruby-forum.com/t/rake-db-migrate-fails/174744 "2009-09-01T16:32:57Z")

</div>

i run the command: rake db:migrate but i get the error of: Mysql::Error: query: not connected: SELECT version FROM schema\_migrations i already checked my database.yml: development: adapter: mysql database: my\_dat…

---

## [Script/plugin install vs git submodule add](https://www.ruby-forum.com/t/script-plugin-install-vs-git-submodule-add/174746)

<div class="topic-metadata">

**Author:** [@oldbug](https://www.ruby-forum.com/u/oldbug)\
**Replies:** 0\
**Last updated:** [September 1, 2009, 4:02pm UTC](https://www.ruby-forum.com/t/script-plugin-install-vs-git-submodule-add/174746 "2009-09-01T16:02:10Z")

</div>

I’ve found several web pages that describe how to use git submodules to install plugins, but it seems that those pages are missing something (or more likely, I am) . In a nutshell, they advise replacing $ script/plug…

---

## [Plasma Edge Rails Documentation](https://www.ruby-forum.com/t/plasma-edge-rails-documentation/174742)

<div class="topic-metadata">

**Author:** [@rbjl](https://www.ruby-forum.com/u/rbjl)\
**Replies:** 0\
**Last updated:** [September 1, 2009, 3:29pm UTC](https://www.ruby-forum.com/t/plasma-edge-rails-documentation/174742 "2009-09-01T15:29:22Z")

</div>

Hello, Today I have launched http://plasmarails.org. It hosts the RDoc for Edge Rails and is regenerated every day. It is based on the great sdoc gem by voloko. Hope, someone likes it :slight\_smile: J\*\_\*L

---

## [Has One and Computer Columns](https://www.ruby-forum.com/t/has-one-and-computer-columns/174594)

<div class="topic-metadata">

**Author:** [@tony](https://www.ruby-forum.com/u/tony)\
**Replies:** 13\
**Last updated:** [September 1, 2009, 2:45pm UTC](https://www.ruby-forum.com/t/has-one-and-computer-columns/174594 "2009-09-01T14:45:46Z")

</div>

Hey all, I’ve been playing around with special relationships (specifying the select, etc) on my models and trying to get Rails to return the results of database computations as part of an association. I’ve got one m…

---

## [Ruby 1.8 & 1.9 problem](https://www.ruby-forum.com/t/ruby-1-8-1-9-problem/174657)

<div class="topic-metadata">

**Author:** [@abhishek](https://www.ruby-forum.com/u/abhishek)\
**Replies:** 5\
**Last updated:** [September 1, 2009, 2:32pm UTC](https://www.ruby-forum.com/t/ruby-1-8-1-9-problem/174657 "2009-09-01T14:32:00Z")

</div>

hi i had ruby 1.8.7 in my system. (Ubuntu 9.04) so in console when i type: which ruby =\> /usr/bin/ruby ruby -v =\>ruby 1.8.7 (2008-08-11 patchlevel 72) \[i486-linux\] now i have installed ruby 1.9 side by side to the…

---

## [Problem with "javascript\_include\_tag :all" tag](https://www.ruby-forum.com/t/problem-with-javascript-include-tag-all-tag/174733)

<div class="topic-metadata">

**Author:** [@ghanshyam\_6786](https://www.ruby-forum.com/u/ghanshyam_6786)\
**Replies:** 0\
**Last updated:** [September 1, 2009, 12:30pm UTC](https://www.ruby-forum.com/t/problem-with-javascript-include-tag-all-tag/174733 "2009-09-01T12:30:44Z")

</div>

Hello Friends, I m using auto\_complete pluging for text\_field. When using “javascript\_include\_tag :all” tag pagination is not working … Anybody tell me what’s happen here ??? Thanx.

---

## [Storing images and stylesheet in directory other than public](https://www.ruby-forum.com/t/storing-images-and-stylesheet-in-directory-other-than-public/174729)

<div class="topic-metadata">

**Author:** [@kingston](https://www.ruby-forum.com/u/kingston)\
**Replies:** 0\
**Last updated:** [September 1, 2009, 12:14pm UTC](https://www.ruby-forum.com/t/storing-images-and-stylesheet-in-directory-other-than-public/174729 "2009-09-01T12:14:19Z")

</div>

hello to can rails look for images and stylesheets in directory other than public like vendor directory of rails does rails has permission to fetched images stored in vendor directory. thanks anyway

---

## [Removing &nbsp;](https://www.ruby-forum.com/t/removing-nbsp/174727)

<div class="topic-metadata">

**Author:** [@prashanth\_hiremath](https://www.ruby-forum.com/u/prashanth_hiremath)\
**Replies:** 0\
**Last updated:** [September 1, 2009, 11:50am UTC](https://www.ruby-forum.com/t/removing-nbsp/174727 "2009-09-01T11:50:59Z")

</div>

undefined method \`replace’ for #Hpricot::Doc:0xb7a5627c I am doing scraping data so that able to bring in html form if i wanna convert into xml form it having so that it giving error if i delete manually it works b…

---

## [Route map with custom url](https://www.ruby-forum.com/t/route-map-with-custom-url/174726)

<div class="topic-metadata">

**Author:** [@aldoitalo](https://www.ruby-forum.com/u/aldoitalo)\
**Replies:** 1\
**Last updated:** [September 1, 2009, 11:33am UTC](https://www.ruby-forum.com/t/route-map-with-custom-url/174726 "2009-09-01T11:33:37Z")

</div>

hi, i have setting this rule on my route.rb: map.typo ‘/my\_custom\_name1/:id/my\_custom\_name2/:alpha’, :namespace =\> ‘front’, :controller =\> ‘locations’, :action =\> ‘typo\_locations’, :alpha =\> { :alpha =\> :get } in the…

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

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