# Rails

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

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

---

## [Loading a Google map in a partial via Ajax](https://www.ruby-forum.com/t/loading-a-google-map-in-a-partial-via-ajax/136076)

<div class="topic-metadata">

**Author:** [@chunkyslink](https://www.ruby-forum.com/u/chunkyslink)\
**Replies:** 0\
**Last updated:** [April 28, 2008, 6:57pm UTC](https://www.ruby-forum.com/t/loading-a-google-map-in-a-partial-via-ajax/136076 "2008-04-28T18:57:37Z")

</div>

I’ve just started playing with Google Maps and ym4r\_gm. The map seems to work fine when it is called by the controller in a http request, but I was hoping I could load a map via a link\_to\_function only when it is call…

---

## [Is there any Tree Control for RoR?](https://www.ruby-forum.com/t/is-there-any-tree-control-for-ror/136037)

<div class="topic-metadata">

**Author:** [@nop](https://www.ruby-forum.com/u/nop)\
**Replies:** 3\
**Last updated:** [April 28, 2008, 6:43pm UTC](https://www.ruby-forum.com/t/is-there-any-tree-control-for-ror/136037 "2008-04-28T18:43:25Z")

</div>

Is there any Tree Control for RoR?

---

## [Find find company name and user name](https://www.ruby-forum.com/t/find-find-company-name-and-user-name/136066)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 2\
**Last updated:** [April 28, 2008, 6:02pm UTC](https://www.ruby-forum.com/t/find-find-company-name-and-user-name/136066 "2008-04-28T18:02:16Z")

</div>

I have this list of registered users which I find by a find statment in my controller: @users = User.find( :all, :conditions =\> \[‘approved = ?’, true\], :order =\> ‘company ASC’) Then in my view I run through this arra…

---

## [First time user- making forms that create pages?](https://www.ruby-forum.com/t/first-time-user-making-forms-that-create-pages/136028)

<div class="topic-metadata">

**Author:** [@Brendan\_M](https://www.ruby-forum.com/u/Brendan_M)\
**Replies:** 6\
**Last updated:** [April 28, 2008, 5:46pm UTC](https://www.ruby-forum.com/t/first-time-user-making-forms-that-create-pages/136028 "2008-04-28T17:46:57Z")

</div>

Hey, I remember my friend Bryan told me about this new language- Ruby on Rails. I had a meeting with a friend of mine who would like me to set up a database for them. Sort of like a form she can fill out- with a comp…

---

## [A noob with a HABTM doubt](https://www.ruby-forum.com/t/a-noob-with-a-habtm-doubt/135649)

<div class="topic-metadata">

**Author:** [@gattone](https://www.ruby-forum.com/u/gattone)\
**Replies:** 6\
**Last updated:** [April 28, 2008, 5:30pm UTC](https://www.ruby-forum.com/t/a-noob-with-a-habtm-doubt/135649 "2008-04-28T17:30:26Z")

</div>

If I have the following tables: newsletters - with id(int), title(string), content(string), created\_at(date) tags - id(int), name(string), kind(int) newsletters\_tags - newsletter\_id(ind), tag\_id(int) And also the mo…

---

## [Rails application failed to start properly](https://www.ruby-forum.com/t/rails-application-failed-to-start-properly/135349)

<div class="topic-metadata">

**Author:** [@aahz](https://www.ruby-forum.com/u/aahz)\
**Replies:** 1\
**Last updated:** [April 28, 2008, 4:35pm UTC](https://www.ruby-forum.com/t/rails-application-failed-to-start-properly/135349 "2008-04-28T16:35:50Z")

</div>

Hello, i’m a newbie on RoR. I generated a first little application and tested it under webrick - it worked. Now i uploaded it to the providers host (tibit) and configured everything on the server. But when i call m…

---

## [Feed an .csv file up to server for importing data, then throw away?](https://www.ruby-forum.com/t/feed-an-csv-file-up-to-server-for-importing-data-then-throw-away/136062)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [April 28, 2008, 4:10pm UTC](https://www.ruby-forum.com/t/feed-an-csv-file-up-to-server-for-importing-data-then-throw-away/136062 "2008-04-28T16:10:52Z")

</div>

I’ve written a routine allowing the client user to declare where their .csv import file resides and then send it to the server to import the many rows into an existing model table, and then throw it away. I’ve import…

---

## [Strip duplicates href tags](https://www.ruby-forum.com/t/strip-duplicates-href-tags/136054)

<div class="topic-metadata">

**Author:** [@rorchild](https://www.ruby-forum.com/u/rorchild)\
**Replies:** 0\
**Last updated:** [April 28, 2008, 2:42pm UTC](https://www.ruby-forum.com/t/strip-duplicates-href-tags/136054 "2008-04-28T14:42:38Z")

</div>

Hi all i have a text that contains hyperlinked works. some of them appear more than once making the text look very saturated with links. how can i (using regular expressions), strip duplicate a href tags? for reapeate…

---

## [What is a partial](https://www.ruby-forum.com/t/what-is-a-partial/136001)

<div class="topic-metadata">

**Author:** [@ssmile](https://www.ruby-forum.com/u/ssmile)\
**Replies:** 4\
**Last updated:** [April 28, 2008, 2:41pm UTC](https://www.ruby-forum.com/t/what-is-a-partial/136001 "2008-04-28T14:41:47Z")

</div>

I am a newbie. What is a “partial” in the web world? I have seen code like render :partial and I am at a loss as to what it means.

---

## [Magic to pass reference to a controller](https://www.ruby-forum.com/t/magic-to-pass-reference-to-a-controller/136048)

<div class="topic-metadata">

**Author:** [@alexmic](https://www.ruby-forum.com/u/alexmic)\
**Replies:** 1\
**Last updated:** [April 28, 2008, 2:01pm UTC](https://www.ruby-forum.com/t/magic-to-pass-reference-to-a-controller/136048 "2008-04-28T14:01:03Z")

</div>

I’m implementing a helper library which provide both view helpers and controller helpers. To save the end user from having to specifically pass in a reference to self on every call I was wondering if there was a way …

---

## [Select date](https://www.ruby-forum.com/t/select-date/136046)

<div class="topic-metadata">

**Author:** [@sunfish](https://www.ruby-forum.com/u/sunfish)\
**Replies:** 1\
**Last updated:** [April 28, 2008, 12:53pm UTC](https://www.ruby-forum.com/t/select-date/136046 "2008-04-28T12:53:19Z")

</div>

how to use select\_date tag with user control like start year,end tear ya blank date.

---

## [Un know action](https://www.ruby-forum.com/t/un-know-action/136045)

<div class="topic-metadata">

**Author:** [@karthikragu](https://www.ruby-forum.com/u/karthikragu)\
**Replies:** 1\
**Last updated:** [April 28, 2008, 12:50pm UTC](https://www.ruby-forum.com/t/un-know-action/136045 "2008-04-28T12:50:51Z")

</div>

hi all, in my controller im having index method and some other methods.my controller’s name is “ticketing\_system”.but in browser when i point out the controller’s name “http://localhost:3000/ticketing\_system” i…

---

## [How do you populate a collection in a form from a dependent table?](https://www.ruby-forum.com/t/how-do-you-populate-a-collection-in-a-form-from-a-dependent-table/136013)

<div class="topic-metadata">

**Author:** [@ron](https://www.ruby-forum.com/u/ron)\
**Replies:** 3\
**Last updated:** [April 28, 2008, 12:29pm UTC](https://www.ruby-forum.com/t/how-do-you-populate-a-collection-in-a-form-from-a-dependent-table/136013 "2008-04-28T12:29:20Z")

</div>

Hi, I’m working on a food program. The user defines foods, enters their calories, etc. Then the user goes into a day view with defines a meal by selected the foods from a drop down list. So I have a foods controlle…

---

## [Connecting database with railo](https://www.ruby-forum.com/t/connecting-database-with-railo/136040)

<div class="topic-metadata">

**Author:** [@manika](https://www.ruby-forum.com/u/manika)\
**Replies:** 3\
**Last updated:** [April 28, 2008, 12:13pm UTC](https://www.ruby-forum.com/t/connecting-database-with-railo/136040 "2008-04-28T12:13:33Z")

</div>

i m not able to connect to database I am create my rails folder i get database.yml file in this format SQLite version 3.x gem install sqlite3-ruby (not necessary on OS X Leopard) development: adapter: sqlite3 databas…

---

## [Method redefined errors from many core ruby libs](https://www.ruby-forum.com/t/method-redefined-errors-from-many-core-ruby-libs/136012)

<div class="topic-metadata">

**Author:** [@zaven](https://www.ruby-forum.com/u/zaven)\
**Replies:** 1\
**Last updated:** [April 28, 2008, 11:21am UTC](https://www.ruby-forum.com/t/method-redefined-errors-from-many-core-ruby-libs/136012 "2008-04-28T11:21:02Z")

</div>

I have a Fedora Core 6 system on which I have built ruby 1.8.6 and rubygems 1.1.1 from source, and installed rails 2.0.2 using rubygems. When I create a new rails app, I get lots of errors that look like they’re comin…

---

## [Importing many 'dirty' .csv records..what approach is best?](https://www.ruby-forum.com/t/importing-many-dirty-csv-records-what-approach-is-best/135991)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [April 28, 2008, 11:16am UTC](https://www.ruby-forum.com/t/importing-many-dirty-csv-records-what-approach-is-best/135991 "2008-04-28T11:16:56Z")

</div>

I am tasked with importing many .csv files into an application that has a ‘scoped’ database that services many distinct customers. I’m sure it comes as no surprise that many of these will be damaged in some way with s…

---

## [Multiple submit buttons for one form](https://www.ruby-forum.com/t/multiple-submit-buttons-for-one-form/136035)

<div class="topic-metadata">

**Author:** [@nop](https://www.ruby-forum.com/u/nop)\
**Replies:** 3\
**Last updated:** [April 28, 2008, 10:46am UTC](https://www.ruby-forum.com/t/multiple-submit-buttons-for-one-form/136035 "2008-04-28T10:46:15Z")

</div>

Hello gents, I’m building an enterprise web-site which contains: a table with editable fields (checkboxes, textboxes, etc.) multiple “buttons” which represent actions. How can I redirect from a particular button to a…

---

## [How to store lots of GPS data in database?](https://www.ruby-forum.com/t/how-to-store-lots-of-gps-data-in-database/135940)

<div class="topic-metadata">

**Author:** [@g0nzo](https://www.ruby-forum.com/u/g0nzo)\
**Replies:** 4\
**Last updated:** [April 28, 2008, 10:36am UTC](https://www.ruby-forum.com/t/how-to-store-lots-of-gps-data-in-database/135940 "2008-04-28T10:36:48Z")

</div>

Hi, it’s not particulary Rails related question, but I hope you guys can give me some tips. I’d like to store in the database routes build of lots of single points (latitude, longitude, time and maybe altitude and sp…

---

## [Ruby/mysql "incorrect db" error on Mac OSX (Leopard)](https://www.ruby-forum.com/t/ruby-mysql-incorrect-db-error-on-mac-osx-leopard/136016)

<div class="topic-metadata">

**Author:** [@thatguy](https://www.ruby-forum.com/u/thatguy)\
**Replies:** 3\
**Last updated:** [April 28, 2008, 10:33am UTC](https://www.ruby-forum.com/t/ruby-mysql-incorrect-db-error-on-mac-osx-leopard/136016 "2008-04-28T10:33:03Z")

</div>

Hey, folks - I’ve got a newbie question that I couldn’t find anywhere in the forum archives. Just installed RoR on Mac OSX (Leopard), and wanted to connect it to MySQL instead of SQLite. I downloaded the gem: sudo ge…

---

## [Error when following Agile Web Development in RoR](https://www.ruby-forum.com/t/error-when-following-agile-web-development-in-ror/122545)

<div class="topic-metadata">

**Author:** [@jason\_white](https://www.ruby-forum.com/u/jason_white)\
**Replies:** 14\
**Last updated:** [April 28, 2008, 10:15am UTC](https://www.ruby-forum.com/t/error-when-following-agile-web-development-in-ror/122545 "2008-04-28T10:15:35Z")

</div>

I was originally using instant rails, and decided to try installing ruby, rails, and mysql on my own. No problem with the install. I used gem install rails --include-dependencies, and got no errors. The problem seems …

---

## [How to send and Recieve SMS using textmarks](https://www.ruby-forum.com/t/how-to-send-and-recieve-sms-using-textmarks/136026)

<div class="topic-metadata">

**Author:** [@vicky](https://www.ruby-forum.com/u/vicky)\
**Replies:** 0\
**Last updated:** [April 28, 2008, 9:32am UTC](https://www.ruby-forum.com/t/how-to-send-and-recieve-sms-using-textmarks/136026 "2008-04-28T09:32:06Z")

</div>

Can any body Please tell me how to send and recieve SMS through Text Marks using HTTP request.

---

## [Custom mail templates](https://www.ruby-forum.com/t/custom-mail-templates/135778)

<div class="topic-metadata">

**Author:** [@makire](https://www.ruby-forum.com/u/makire)\
**Replies:** 2\
**Last updated:** [April 28, 2008, 8:51am UTC](https://www.ruby-forum.com/t/custom-mail-templates/135778 "2008-04-28T08:51:33Z")

</div>

Hi everyone I want to tell my ActionMailer to use a different template depending on some custom logic. How do I tell ActionMailer to use a different template. I have tried using class\_name and used explicit render fu…

---

## [This Week in Ruby (April 28, 2008)](https://www.ruby-forum.com/t/this-week-in-ruby-april-28-2008/136025)

<div class="topic-metadata">

**Author:** [@visitor1981](https://www.ruby-forum.com/u/visitor1981)\
**Replies:** 0\
**Last updated:** [April 28, 2008, 8:37am UTC](https://www.ruby-forum.com/t/this-week-in-ruby-april-28-2008/136025 "2008-04-28T08:37:51Z")

</div>

Hi all, here you can find the fifth edition of “This Week in Ruby”: Cheers, Antonio http://antoniocangiano.com - Zen and the Art of Programming http://stacktrace.it - Aperiodico di resistenza informatica http://ma…

---

## [Model concept](https://www.ruby-forum.com/t/model-concept/136019)

<div class="topic-metadata">

**Author:** [@sunfish](https://www.ruby-forum.com/u/sunfish)\
**Replies:** 4\
**Last updated:** [April 28, 2008, 8:36am UTC](https://www.ruby-forum.com/t/model-concept/136019 "2008-04-28T08:36:45Z")

</div>

hi,actually i am doing a one web related project, i want know that in project fetching data using model ya using query which is efficient? and how i am always confuse about model so hoe use model in application effic…

---

## [\[ANN\] Lone Star Rubyconf 2008 - 6 Days Left to Submit a Proposal](https://www.ruby-forum.com/t/ann-lone-star-rubyconf-2008-6-days-left-to-submit-a-proposal/136017)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [April 28, 2008, 7:01am UTC](https://www.ruby-forum.com/t/ann-lone-star-rubyconf-2008-6-days-left-to-submit-a-proposal/136017 "2008-04-28T07:01:14Z")

</div>

Time is almost up! The second annual Lone Star Ruby Conference is accepting speaker proposals for the Sep 4-6 conference in Austin, TX, for just six more days! The deadline is MIDNIGHT May 3. All Ruby-related topics …

---

## [Scaffold :product missing in Rails 2.0.2 version of depot tutorial?](https://www.ruby-forum.com/t/scaffold-product-missing-in-rails-2-0-2-version-of-depot-tutorial/126505)

<div class="topic-metadata">

**Author:** [@explainer](https://www.ruby-forum.com/u/explainer)\
**Replies:** 15\
**Last updated:** [April 28, 2008, 6:09am UTC](https://www.ruby-forum.com/t/scaffold-product-missing-in-rails-2-0-2-version-of-depot-tutorial/126505 "2008-04-28T06:09:41Z")

</div>

I am getting an error when I try to run the code for the depot application (page 67 in the Agile Web D. on Rails book, 2nd edition). I built the complete depot app with Rails 1.2.6, and all worked well. I then updat…

---

## [How to check if values of tables are within range?](https://www.ruby-forum.com/t/how-to-check-if-values-of-tables-are-within-range/135709)

<div class="topic-metadata">

**Author:** [@fries88](https://www.ruby-forum.com/u/fries88)\
**Replies:** 6\
**Last updated:** [April 28, 2008, 5:27am UTC](https://www.ruby-forum.com/t/how-to-check-if-values-of-tables-are-within-range/135709 "2008-04-28T05:27:36Z")

</div>

Hi, Does anyone know how can I check if the data in one column of the table is with in the range of data in another column of another table? Example: Valid Numbers: 1 2 3 4 (number keyed in my number must be within …

---

## [Re: Action\_mailer\_tls + Gmail](https://www.ruby-forum.com/t/re-action-mailer-tls-gmail/135744)

<div class="topic-metadata">

**Author:** [@mslagell](https://www.ruby-forum.com/u/mslagell)\
**Replies:** 3\
**Last updated:** [April 28, 2008, 4:37am UTC](https://www.ruby-forum.com/t/re-action-mailer-tls-gmail/135744 "2008-04-28T04:37:56Z")

</div>

Check out http://wanlord.com/articles/2007/11/29/sending-email-using-actionmailer-and-gmail ----- Original Message ---- From: PJAY79 removed\_email\_address@domain.invalid To: Ruby on Rails: Talk removed\_email\_address@…

---

## [How do you get the base url of the HTTP request?](https://www.ruby-forum.com/t/how-do-you-get-the-base-url-of-the-http-request/136006)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 4\
**Last updated:** [April 28, 2008, 3:30am UTC](https://www.ruby-forum.com/t/how-do-you-get-the-base-url-of-the-http-request/136006 "2008-04-28T03:30:29Z")

</div>

Hi, How do you get the base url of the HTTP request in the controller? For example, if my app is hosted on http://fudge.wow.com/ and I make a request to http://fudge.wow.com/users/1 How do I get the http://fudge.wow.…

---

## [Cell GPS / cell tower information in Rails app](https://www.ruby-forum.com/t/cell-gps-cell-tower-information-in-rails-app/136007)

<div class="topic-metadata">

**Author:** [@donthaveone](https://www.ruby-forum.com/u/donthaveone)\
**Replies:** 1\
**Last updated:** [April 28, 2008, 2:15am UTC](https://www.ruby-forum.com/t/cell-gps-cell-tower-information-in-rails-app/136007 "2008-04-28T02:15:05Z")

</div>

I’m developing a Rails app that would run on a mobile browser. Is there any way that I can get the GPS or cell tower information for the cell phone user? Are there any cell phone SDKs that integrate well with Rails? …

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

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