# Rails

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

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

---

## [How to save an image from URL](https://www.ruby-forum.com/t/how-to-save-an-image-from-url/122139)

<div class="topic-metadata">

**Author:** [@dorelal](https://www.ruby-forum.com/u/dorelal)\
**Replies:** 2\
**Last updated:** [April 20, 2009, 11:40am UTC](https://www.ruby-forum.com/t/how-to-save-an-image-from-url/122139 "2009-04-20T11:40:38Z")

</div>

In my application users can upload images from the local machine. But I also want to provide them to upload their images by telling the app the full url to the an image on the web. How do I save the image on the local…

---

## [OT : SQLite or another database engine with a small application?](https://www.ruby-forum.com/t/ot-sqlite-or-another-database-engine-with-a-small-application/165833)

<div class="topic-metadata">

**Author:** [@cesarstafe](https://www.ruby-forum.com/u/cesarstafe)\
**Replies:** 3\
**Last updated:** [April 20, 2009, 11:01am UTC](https://www.ruby-forum.com/t/ot-sqlite-or-another-database-engine-with-a-small-application/165833 "2009-04-20T11:01:58Z")

</div>

People, I have been thinking at this for long time and I do not know if SQLite is sufficient for my application. I developed an inventory system in Rails -v 2.2.2 and I do not know if SQLite is the best choice or if …

---

## [Help with a regular expressions and gsub](https://www.ruby-forum.com/t/help-with-a-regular-expressions-and-gsub/196943)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 7\
**Last updated:** [April 20, 2009, 10:38am UTC](https://www.ruby-forum.com/t/help-with-a-regular-expressions-and-gsub/196943 "2009-04-20T10:38:11Z")

</div>

I need to use gsub in a large text. For example, I will like to search for ‘car’ in this text. “Lorem ipum car. Locar ipsum, car lorem ipusum .Lorem car ipsum” I will like to put ‘bike’ instead of ‘car’. Exactly I need…

---

## [Add partial view to Spree](https://www.ruby-forum.com/t/add-partial-view-to-spree/165946)

<div class="topic-metadata">

**Author:** [@Jaro](https://www.ruby-forum.com/u/Jaro)\
**Replies:** 0\
**Last updated:** [April 20, 2009, 9:29am UTC](https://www.ruby-forum.com/t/add-partial-view-to-spree/165946 "2009-04-20T09:29:21Z")

</div>

Hello, I am new to Spree, so my question might look dump. How can I use extension to add partial view to any existing view in Spree? How can I determine exactly where my view will go? For my app I just want to add a …

---

## [Affiliate plugin](https://www.ruby-forum.com/t/affiliate-plugin/165949)

<div class="topic-metadata">

**Author:** [@Joshua\_Needham](https://www.ruby-forum.com/u/Joshua_Needham)\
**Replies:** 0\
**Last updated:** [April 20, 2009, 9:29am UTC](https://www.ruby-forum.com/t/affiliate-plugin/165949 "2009-04-20T09:29:21Z")

</div>

Hello all, I’ve been looking around everywhere for a valid plugin that will allow for creation of an affiliate account along with a specific link for the signup. Additionally it would need the ability to track sales …

---

## [Web based GUI components in Rail Project](https://www.ruby-forum.com/t/web-based-gui-components-in-rail-project/165948)

<div class="topic-metadata">

**Author:** [@gunvant](https://www.ruby-forum.com/u/gunvant)\
**Replies:** 0\
**Last updated:** [April 20, 2009, 9:29am UTC](https://www.ruby-forum.com/t/web-based-gui-components-in-rail-project/165948 "2009-04-20T09:29:21Z")

</div>

Hi Friends, I want to use extra ordinary web based GUI component in rail project. could you please tell me from where i can get such kind of web based component like (table, datetime picker, msg box, input fields, etc…

---

## [Is unit testing really that necessary?](https://www.ruby-forum.com/t/is-unit-testing-really-that-necessary/165868)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 6\
**Last updated:** [April 20, 2009, 7:05am UTC](https://www.ruby-forum.com/t/is-unit-testing-really-that-necessary/165868 "2009-04-20T07:05:25Z")

</div>

I watched the Railscasts video about Cucumber and BDD testing and he mentions to also do unit testing. I figure if the application functions how I want it by passing the functional tests through Cucumber’s BDD testing…

---

## [Show and hide from list with toggle](https://www.ruby-forum.com/t/show-and-hide-from-list-with-toggle/165865)

<div class="topic-metadata">

**Author:** [@marika](https://www.ruby-forum.com/u/marika)\
**Replies:** 9\
**Last updated:** [April 20, 2009, 6:54am UTC](https://www.ruby-forum.com/t/show-and-hide-from-list-with-toggle/165865 "2009-04-20T06:54:18Z")

</div>

I have a list in my page and I want to show there additional information like: my link show me more my 2 link show me more etc… I have a element for hidden info: \<%= link.long %\> How can I pass a link id with s…

---

## [Problem embedding SWF file in page](https://www.ruby-forum.com/t/problem-embedding-swf-file-in-page/165937)

<div class="topic-metadata">

**Author:** [@rubio](https://www.ruby-forum.com/u/rubio)\
**Replies:** 0\
**Last updated:** [April 20, 2009, 6:42am UTC](https://www.ruby-forum.com/t/problem-embedding-swf-file-in-page/165937 "2009-04-20T06:42:53Z")

</div>

Found a great link (Eleventyten.com is for sale | HugeDomains) describing adding Flash content (in my case playerMultipleList.swf) in a “rails” webpage. I’ve followed the instructions to a “T”, however the player doe…

---

## [Create CheckBox](https://www.ruby-forum.com/t/create-checkbox/165851)

<div class="topic-metadata">

**Author:** [@devirv](https://www.ruby-forum.com/u/devirv)\
**Replies:** 3\
**Last updated:** [April 20, 2009, 6:32am UTC](https://www.ruby-forum.com/t/create-checkbox/165851 "2009-04-20T06:32:26Z")

</div>

Hai, I want to create a checkbox the values are table field values. In my controller @emptypes = Emptypes.find(:all) In View \<% @emptypes.each do |c| %\> #Write checkbox generating code here \<%= check\_box(“contacts…

---

## [Filtering product data in sidebar](https://www.ruby-forum.com/t/filtering-product-data-in-sidebar/165929)

<div class="topic-metadata">

**Author:** [@rzolkos](https://www.ruby-forum.com/u/rzolkos)\
**Replies:** 0\
**Last updated:** [April 20, 2009, 2:52am UTC](https://www.ruby-forum.com/t/filtering-product-data-in-sidebar/165929 "2009-04-20T02:52:46Z")

</div>

Hi, I’m developing a clothing store and want to be able to filter the data (in a sidebar) by category, brand, styles etc. I see other (mainly php) sites doing this by appending to the url eg &brand=adidas&category=…

---

## [Stack trace with test](https://www.ruby-forum.com/t/stack-trace-with-test/165927)

<div class="topic-metadata">

**Author:** [@pedz](https://www.ruby-forum.com/u/pedz)\
**Replies:** 0\
**Last updated:** [April 20, 2009, 2:31am UTC](https://www.ruby-forum.com/t/stack-trace-with-test/165927 "2009-04-20T02:31:17Z")

</div>

I’m working on tests for a plugin using Rails 2.3.2 and Ruby 1.8.6. Often when my code is broken, the test simply says the error but I can’t get the stack trace back. Is there some way I can do that?

---

## [Cycle(...) - is there some sort of only\_first\_time(...)?](https://www.ruby-forum.com/t/cycle-is-there-some-sort-of-only-first-time/165926)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 4\
**Last updated:** [April 20, 2009, 2:28am UTC](https://www.ruby-forum.com/t/cycle-is-there-some-sort-of-only-first-time/165926 "2009-04-20T02:28:48Z")

</div>

Hi all The cycle() method is very handy in views. But is there some sort of only\_first\_time() that returns the passed value only the first time it is invoked within a view? Thanks for help :slight\_smile: Josh

---

## [Rails for Multi-User Applications (complete newbie)](https://www.ruby-forum.com/t/rails-for-multi-user-applications-complete-newbie/165915)

<div class="topic-metadata">

**Author:** [@anthony](https://www.ruby-forum.com/u/anthony)\
**Replies:** 2\
**Last updated:** [April 20, 2009, 12:22am UTC](https://www.ruby-forum.com/t/rails-for-multi-user-applications-complete-newbie/165915 "2009-04-20T00:22:30Z")

</div>

Hello, I’m trying to decide between Rails and Django for a multi-user application I’m developing. I had already started on Django, when I read this article: http://blog.jeffhui.net/2009/03/rails-and-django/ Can anyo…

---

## [High school online newspaper](https://www.ruby-forum.com/t/high-school-online-newspaper/165921)

<div class="topic-metadata">

**Author:** [@jeff](https://www.ruby-forum.com/u/jeff)\
**Replies:** 1\
**Last updated:** [April 19, 2009, 11:54pm UTC](https://www.ruby-forum.com/t/high-school-online-newspaper/165921 "2009-04-19T23:54:27Z")

</div>

Hi, I’m a high school student developing a rails site for my school’s newspaper. I have little experience in rails, but even less in deployment. What would be the easiest and cheapest way to deploy a small app? I rea…

---

## [HowTo install plugins from github?](https://www.ruby-forum.com/t/howto-install-plugins-from-github/158304)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 21\
**Last updated:** [April 19, 2009, 11:52pm UTC](https://www.ruby-forum.com/t/howto-install-plugins-from-github/158304 "2009-04-19T23:52:30Z")

</div>

I am trying to install the in\_place\_editing plugin from github. I have looked at http://railswheels.com/in-place-editing and it suggests the following command: ./script/plugin install git://github.com/rails/in\_place\_e…

---

## [Upgrading from Rails 1.3.x to 2.3.2 - text\_field\_with\_auto\_complete not working](https://www.ruby-forum.com/t/upgrading-from-rails-1-3-x-to-2-3-2-text-field-with-auto-complete-not-working/165892)

<div class="topic-metadata">

**Author:** [@rajatgarg](https://www.ruby-forum.com/u/rajatgarg)\
**Replies:** 2\
**Last updated:** [April 19, 2009, 7:30pm UTC](https://www.ruby-forum.com/t/upgrading-from-rails-1-3-x-to-2-3-2-text-field-with-auto-complete-not-working/165892 "2009-04-19T19:30:09Z")

</div>

Folks, I am trying to upgrade code base from 1.3.x to 2.3.2 and not surprisingly, lot of things are broken. ‘text\_field\_with\_auto\_complete’ is not working for me - it gives the following error: ActionView::TemplateE…

---

## [Link\_to\_remote clicking a link should replace that link](https://www.ruby-forum.com/t/link-to-remote-clicking-a-link-should-replace-that-link/165909)

<div class="topic-metadata">

**Author:** [@dezrtdude](https://www.ruby-forum.com/u/dezrtdude)\
**Replies:** 1\
**Last updated:** [April 19, 2009, 5:54pm UTC](https://www.ruby-forum.com/t/link-to-remote-clicking-a-link-should-replace-that-link/165909 "2009-04-19T17:54:43Z")

</div>

Hi, I haven’t touched Ruby for a while. How do you replace link\_to\_remote text after user clicks on them? Once a user clicks ‘Delete this post,’ I want the text gets replaced to ‘pending request’ – is there any easy …

---

## [Cannot install the current Rails on 3 machines](https://www.ruby-forum.com/t/cannot-install-the-current-rails-on-3-machines/165866)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 3\
**Last updated:** [April 19, 2009, 4:56pm UTC](https://www.ruby-forum.com/t/cannot-install-the-current-rails-on-3-machines/165866 "2009-04-19T16:56:38Z")

</div>

i follow the instructions on http://rubyonrails.org/download to install RoR, and on all 3 machines, they all cannot go past the front page: for example, when i click on About your applicationâ€™s environment i get:…

---

## [RESTful posting](https://www.ruby-forum.com/t/restful-posting/165878)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 1\
**Last updated:** [April 19, 2009, 4:45pm UTC](https://www.ruby-forum.com/t/restful-posting/165878 "2009-04-19T16:45:01Z")

</div>

I’m implementing a Rails front end to a Windows system by using RESTful web services to send data back and forth. Luckyly all the business objects in the Windows system know how to serialize themselves into XML so it’…

---

## [Background tasks + multi processing](https://www.ruby-forum.com/t/background-tasks-multi-processing/165904)

<div class="topic-metadata">

**Author:** [@petrjanda](https://www.ruby-forum.com/u/petrjanda)\
**Replies:** 3\
**Last updated:** [April 19, 2009, 3:56pm UTC](https://www.ruby-forum.com/t/background-tasks-multi-processing/165904 "2009-04-19T15:56:10Z")

</div>

Hi all, Ive recently been trying to figure out a way to make a long running background task scale accross all CPUs in Ruby on Rails, since multi-processing (not multi-threading) seems like the way to go. A theoretica…

---

## [JOBS : Ruby on Rails engineers/ Java engineers (Architects level position available)](https://www.ruby-forum.com/t/jobs-ruby-on-rails-engineers-java-engineers-architects-level-position-available/165900)

<div class="topic-metadata">

**Author:** [@chris](https://www.ruby-forum.com/u/chris)\
**Replies:** 0\
**Last updated:** [April 19, 2009, 11:52am UTC](https://www.ruby-forum.com/t/jobs-ruby-on-rails-engineers-java-engineers-architects-level-position-available/165900 "2009-04-19T11:52:41Z")

</div>

Forwarding… JOB : Software Engineers and Software Architects (hiring now) Company : CA (formerly known as Computer Associates) Location: Redwood City, California (30 minutes south of San Francisco) Apply :…

---

## [\[ANN\] rubytest.vim 0.9.0](https://www.ruby-forum.com/t/ann-rubytest-vim-0-9-0/196944)

<div class="topic-metadata">

**Author:** [@flowerborn](https://www.ruby-forum.com/u/flowerborn)\
**Replies:** 0\
**Last updated:** [April 19, 2009, 11:49am UTC](https://www.ruby-forum.com/t/ann-rubytest-vim-0-9-0/196944 "2009-04-19T11:49:10Z")

</div>

Hi list, I’m pleased to announce the first release of rubytest, which is a vim plugin aims to help you run ruby test (including vanilla test, rspec, shoulda etc.) conveniently. http://www.vim.org/scripts/script.php?s…

---

## [Large Mysql Database (Multiple Databases?)](https://www.ruby-forum.com/t/large-mysql-database-multiple-databases/165861)

<div class="topic-metadata">

**Author:** [@internetchris](https://www.ruby-forum.com/u/internetchris)\
**Replies:** 3\
**Last updated:** [April 19, 2009, 5:57am UTC](https://www.ruby-forum.com/t/large-mysql-database-multiple-databases/165861 "2009-04-19T05:57:05Z")

</div>

Hey Everyone, I’m looking for some advice. I am developing an application that will have several million transaction records. I’ve heard of people scaling Rails to connect to multiple databases. I have never done this…

---

## [Exclude Files from Capistrano / Source Control](https://www.ruby-forum.com/t/exclude-files-from-capistrano-source-control/165887)

<div class="topic-metadata">

**Author:** [@jh100000](https://www.ruby-forum.com/u/jh100000)\
**Replies:** 3\
**Last updated:** [April 19, 2009, 3:09am UTC](https://www.ruby-forum.com/t/exclude-files-from-capistrano-source-control/165887 "2009-04-19T03:09:39Z")

</div>

Hello, I have some video clips I want to make accessible through my web server (through the public folder). However, they are large and I do not want to commit them to Git so that capistrano can automatically upload t…

---

## [Sending email](https://www.ruby-forum.com/t/sending-email/164778)

<div class="topic-metadata">

**Author:** [@tashfeen.ekram](https://www.ruby-forum.com/u/tashfeen.ekram)\
**Replies:** 11\
**Last updated:** [April 19, 2009, 2:23am UTC](https://www.ruby-forum.com/t/sending-email/164778 "2009-04-19T02:23:27Z")

</div>

I am on ubuntu machine. i want to just do simple testing of sending emails. i first tried postfix, then mailtrap (http://rubypond.com/articles/ 2007/11/16/trap-rails-from-sending-mail-via-smtp/) to no avail. i keep g…

---

## [Does rake db:migrate protect against concurrent use?](https://www.ruby-forum.com/t/does-rake-db-migrate-protect-against-concurrent-use/165745)

<div class="topic-metadata">

**Author:** [@plambert](https://www.ruby-forum.com/u/plambert)\
**Replies:** 2\
**Last updated:** [April 18, 2009, 11:52pm UTC](https://www.ruby-forum.com/t/does-rake-db-migrate-protect-against-concurrent-use/165745 "2009-04-18T23:52:39Z")

</div>

If two people go to the same rails application (same directory) and both run “rake db:migrate” to update the database with a set of migrations (the same ones) at the same time, is it likely that bad things will happen…

---

## [Associations, named\_scope, and "active" records](https://www.ruby-forum.com/t/associations-named-scope-and-active-records/165634)

<div class="topic-metadata">

**Author:** [@mrpunkin](https://www.ruby-forum.com/u/mrpunkin)\
**Replies:** 2\
**Last updated:** [April 18, 2009, 11:39pm UTC](https://www.ruby-forum.com/t/associations-named-scope-and-active-records/165634 "2009-04-18T23:39:45Z")

</div>

Hello all, We are converting our application so that user-generated content such as votes, photos, users, comments, etc are all disabled instead of deleted. This serves us better as administrators of the site as well …

---

## [Query pulling too many fields](https://www.ruby-forum.com/t/query-pulling-too-many-fields/165757)

<div class="topic-metadata">

**Author:** [@skirkpatrick](https://www.ruby-forum.com/u/skirkpatrick)\
**Replies:** 3\
**Last updated:** [April 18, 2009, 11:36pm UTC](https://www.ruby-forum.com/t/query-pulling-too-many-fields/165757 "2009-04-18T23:36:13Z")

</div>

i’m a little confused here on what’s happening. i have two tables ITEMS and ITEM\_TYPES ITEMS (belongs\_to :item\_type) id name item\_type\_id ITEM\_TYPES id name here is my Item.rb model code for my query: find(:all…

---

## [ROR performance for milions pageviews/month](https://www.ruby-forum.com/t/ror-performance-for-milions-pageviews-month/165520)

<div class="topic-metadata">

**Author:** [@tlianza](https://www.ruby-forum.com/u/tlianza)\
**Replies:** 9\
**Last updated:** [April 18, 2009, 9:11pm UTC](https://www.ruby-forum.com/t/ror-performance-for-milions-pageviews-month/165520 "2009-04-18T21:11:08Z")

</div>

Hi all! I\`ll rewrite a 10 years old site, written in asp/mysql (www.motonline.com.br). Now it has one milion page views a month, and we can hope it grows after rewrite. Well, I know several ror sites, but have no ide…

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

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