# Rails

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

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

---

## [Importing (bootstrapping) the initial data from fixtures(.yml) with foreign keys in Rails 2.0](https://www.ruby-forum.com/t/importing-bootstrapping-the-initial-data-from-fixtures-yml-with-foreign-keys-in-rails-2-0/133777)

<div class="topic-metadata">

**Author:** [@T\_K](https://www.ruby-forum.com/u/T_K)\
**Replies:** 0\
**Last updated:** [April 3, 2008, 2:11pm UTC](https://www.ruby-forum.com/t/importing-bootstrapping-the-initial-data-from-fixtures-yml-with-foreign-keys-in-rails-2-0/133777 "2008-04-03T14:11:46Z")

</div>

Hi, I’m trying to import data from YAML files in Rails 2.0.2. I learned that new features came out for fixtures at RailsCasts #81 Fixtures in Rails 2.0 - RailsCasts . And, in Rails 1.2.6 and before, I used a “rake” t…

---

## [Somebody help me to get previous page url in RoR](https://www.ruby-forum.com/t/somebody-help-me-to-get-previous-page-url-in-ror/133768)

<div class="topic-metadata">

**Author:** [@karthikragu](https://www.ruby-forum.com/u/karthikragu)\
**Replies:** 3\
**Last updated:** [April 3, 2008, 1:12pm UTC](https://www.ruby-forum.com/t/somebody-help-me-to-get-previous-page-url-in-ror/133768 "2008-04-03T13:12:28Z")

</div>

hi all, im having a view page called “edit” and im having a back button in it.im using this edit view page in many place of my application.i want to go back to the page which calls this “edit” page no matter what th…

---

## [Text\_field autocomplete onchange is not working?](https://www.ruby-forum.com/t/text-field-autocomplete-onchange-is-not-working/133772)

<div class="topic-metadata">

**Author:** [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Replies:** 0\
**Last updated:** [April 3, 2008, 12:47pm UTC](https://www.ruby-forum.com/t/text-field-autocomplete-onchange-is-not-working/133772 "2008-04-03T12:47:16Z")

</div>

how to solve that ? any idea ?

---

## [Link\_to\_remote with href option - syntax help needed](https://www.ruby-forum.com/t/link-to-remote-with-href-option-syntax-help-needed/133766)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 5\
**Last updated:** [April 3, 2008, 12:28pm UTC](https://www.ruby-forum.com/t/link-to-remote-with-href-option-syntax-help-needed/133766 "2008-04-03T12:28:19Z")

</div>

Hi I’m using link\_to\_remote, in a page that (as usual) needs to work for non-js enabled browsers. According to the API -(http://www.railsbrain.com/api/rails-2.0.2/doc/index.html?a=M001827&name=link\_to\_remote), i can…

---

## [Pagination problem](https://www.ruby-forum.com/t/pagination-problem/133771)

<div class="topic-metadata">

**Author:** [@vamsi](https://www.ruby-forum.com/u/vamsi)\
**Replies:** 0\
**Last updated:** [April 3, 2008, 12:05pm UTC](https://www.ruby-forum.com/t/pagination-problem/133771 "2008-04-03T12:05:46Z")

</div>

hi all i’ve 2 methods one contains details of posts and i used pagination for that and if i used edit on posts(through gui ) then another method is called and i passed only the post id through javascript . so after e…

---

## [Reading "created\_at" from XML](https://www.ruby-forum.com/t/reading-created-at-from-xml/133769)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 0\
**Last updated:** [April 3, 2008, 12:05pm UTC](https://www.ruby-forum.com/t/reading-created-at-from-xml/133769 "2008-04-03T12:05:32Z")

</div>

I’m having trouble printing the “created\_at” from the parent application (I’m using ActiveResource). I noticed the XML document replaces all underscores with dashes (i.e. created\_at is transformed to created-at). Oth…

---

## [Who can fix my query syntax?](https://www.ruby-forum.com/t/who-can-fix-my-query-syntax/133722)

<div class="topic-metadata">

**Author:** [@tharrisx](https://www.ruby-forum.com/u/tharrisx)\
**Replies:** 4\
**Last updated:** [April 3, 2008, 11:38am UTC](https://www.ruby-forum.com/t/who-can-fix-my-query-syntax/133722 "2008-04-03T11:38:31Z")

</div>

Hi there, is there somebody who could help me out with the correct query syntax? The situation is the following: MODELS: user has\_many :memberships user has\_many :groups, :through =\> :memberships, :source =\> :group …

---

## [Duplicating and back up](https://www.ruby-forum.com/t/duplicating-and-back-up/133711)

<div class="topic-metadata">

**Author:** [@rashantha](https://www.ruby-forum.com/u/rashantha)\
**Replies:** 3\
**Last updated:** [April 3, 2008, 10:28am UTC](https://www.ruby-forum.com/t/duplicating-and-back-up/133711 "2008-04-03T10:28:14Z")

</div>

how do you duplicate your entire project? i would like to have a couple of versions incase i destroy something. secondly how do you back up your data using postgresql? weekly back ups lastly how do you restore?

---

## [Simple Pagination Question](https://www.ruby-forum.com/t/simple-pagination-question/133737)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 2\
**Last updated:** [April 3, 2008, 10:14am UTC](https://www.ruby-forum.com/t/simple-pagination-question/133737 "2008-04-03T10:14:44Z")

</div>

Is there something I need to know in order to use a drop down list value as a parameter in my search? That might not have made sense. So I create a form with a textbox and a drop down list of countries. Both values…

---

## [Using find in IP-ranges](https://www.ruby-forum.com/t/using-find-in-ip-ranges/133288)

<div class="topic-metadata">

**Author:** [@gustav](https://www.ruby-forum.com/u/gustav)\
**Replies:** 2\
**Last updated:** [April 3, 2008, 10:12am UTC](https://www.ruby-forum.com/t/using-find-in-ip-ranges/133288 "2008-04-03T10:12:20Z")

</div>

Hi! I have a table that amongst other things includes two columns, “start\_ip” and “end\_ip”. Combined they express a range of IPs, say 127.0.0.0-127.0.0.100. Does anyoone know i use find to match an ip to a certain ra…

---

## [Exception notifier](https://www.ruby-forum.com/t/exception-notifier/129416)

<div class="topic-metadata">

**Author:** [@dxk3355](https://www.ruby-forum.com/u/dxk3355)\
**Replies:** 1\
**Last updated:** [April 3, 2008, 10:08am UTC](https://www.ruby-forum.com/t/exception-notifier/129416 "2008-04-03T10:08:41Z")

</div>

Is it possible to somehow make Exception notifier not send the same exception many times on the email? If you have a lot of users and they all hit the same problem, then you get spammed. Thanx david

---

## [Form tag multipart](https://www.ruby-forum.com/t/form-tag-multipart/133530)

<div class="topic-metadata">

**Author:** [@qwerty73](https://www.ruby-forum.com/u/qwerty73)\
**Replies:** 8\
**Last updated:** [April 3, 2008, 10:07am UTC](https://www.ruby-forum.com/t/form-tag-multipart/133530 "2008-04-03T10:07:37Z")

</div>

Hi to all, i’m trying to pass the id of my record within the multipart form. I’ve tried to pass it like this but it gives a compile error… \<%= form\_tag( { :action =\> ‘create’, :id =\> @nominee }, :multipart =\> true ) …

---

## [Can't apply styles to string from external source](https://www.ruby-forum.com/t/cant-apply-styles-to-string-from-external-source/133759)

<div class="topic-metadata">

**Author:** [@lasastard](https://www.ruby-forum.com/u/lasastard)\
**Replies:** 0\
**Last updated:** [April 3, 2008, 10:06am UTC](https://www.ruby-forum.com/t/cant-apply-styles-to-string-from-external-source/133759 "2008-04-03T10:06:39Z")

</div>

Hi, I’ve been reading up a bit on this but couldnt find a solution, so maybe someone here has some good advice. I am running some data through BioRuby (which, among other things, calls an external program from the sh…

---

## [PHP and Ruby Code Integration Problem](https://www.ruby-forum.com/t/php-and-ruby-code-integration-problem/133632)

<div class="topic-metadata">

**Author:** [@myowntribe](https://www.ruby-forum.com/u/myowntribe)\
**Replies:** 5\
**Last updated:** [April 3, 2008, 9:51am UTC](https://www.ruby-forum.com/t/php-and-ruby-code-integration-problem/133632 "2008-04-03T09:51:04Z")

</div>

Hi, I am working on the UI for an existing shopping cart which has been done on Php, I need to set up a front end on RoR. I have these doubts, could anyone please help me with them… Is it possible to integrate Php ba…

---

## [Mongrel + internal server error](https://www.ruby-forum.com/t/mongrel-internal-server-error/133516)

<div class="topic-metadata">

**Author:** [@squil](https://www.ruby-forum.com/u/squil)\
**Replies:** 9\
**Last updated:** [April 3, 2008, 9:49am UTC](https://www.ruby-forum.com/t/mongrel-internal-server-error/133516 "2008-04-03T09:49:17Z")

</div>

Hi all, I keep getting an internal server error from mongrel (also from webrick) whenever I make an error in my code. The error used to be displayed in the browser in 1.2, but now it just doesn’t. My log says that th…

---

## [Invalid Authenticity Token after redirect](https://www.ruby-forum.com/t/invalid-authenticity-token-after-redirect/133748)

<div class="topic-metadata">

**Author:** [@tonypm](https://www.ruby-forum.com/u/tonypm)\
**Replies:** 3\
**Last updated:** [April 3, 2008, 9:34am UTC](https://www.ruby-forum.com/t/invalid-authenticity-token-after-redirect/133748 "2008-04-03T09:34:33Z")

</div>

I have a simple login controller in which I use new/create to do the login. For create, I have def create # do login session\[:user\_id\] = nil u=params\[:user\] user = User.authenticate(u\[:name\], u\[:password\]) if use…

---

## [What is the filename for Netbeans 6.0.1 in Linux?](https://www.ruby-forum.com/t/what-is-the-filename-for-netbeans-6-0-1-in-linux/133609)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [April 3, 2008, 7:26am UTC](https://www.ruby-forum.com/t/what-is-the-filename-for-netbeans-6-0-1-in-linux/133609 "2008-04-03T07:26:27Z")

</div>

I’ve successfully installed NetBeans 6.0.1 on my Ubuntu 7.10 dual boot laptop but I can’t find the executable? I’ve searched for all “netbean” file names and “java” file names and can’t find the one to execute. Could…

---

## [Google picasaweb implement](https://www.ruby-forum.com/t/google-picasaweb-implement/133743)

<div class="topic-metadata">

**Author:** [@beexk](https://www.ruby-forum.com/u/beexk)\
**Replies:** 0\
**Last updated:** [April 3, 2008, 6:53am UTC](https://www.ruby-forum.com/t/google-picasaweb-implement/133743 "2008-04-03T06:53:48Z")

</div>

How to display an image on page from blur to clear? like google picasaweb. Thank you.

---

## [ActiveResource - pointing to my own app hangs](https://www.ruby-forum.com/t/activeresource-pointing-to-my-own-app-hangs/133736)

<div class="topic-metadata">

**Author:** [@stephen](https://www.ruby-forum.com/u/stephen)\
**Replies:** 2\
**Last updated:** [April 3, 2008, 5:09am UTC](https://www.ruby-forum.com/t/activeresource-pointing-to-my-own-app-hangs/133736 "2008-04-03T05:09:54Z")

</div>

I have an application that knows how to both serve and consume RESTful resources using rails conventions for serving, and ActiveResource for consuming. When I run two instances of the application and hit the page to d…

---

## [Foregin Key PostgreSQL, indexing?](https://www.ruby-forum.com/t/foregin-key-postgresql-indexing/133634)

<div class="topic-metadata">

**Author:** [@rashantha](https://www.ruby-forum.com/u/rashantha)\
**Replies:** 7\
**Last updated:** [April 3, 2008, 4:44am UTC](https://www.ruby-forum.com/t/foregin-key-postgresql-indexing/133634 "2008-04-03T04:44:08Z")

</div>

i posted this but did not get a response. i would like to add that i am using postgresql. if i use the primary key i can do look as below but can not do with another type of key. do i need to index these? i also read…

---

## [Blank option with select tag](https://www.ruby-forum.com/t/blank-option-with-select-tag/133686)

<div class="topic-metadata">

**Author:** [@Shawn\_B](https://www.ruby-forum.com/u/Shawn_B)\
**Replies:** 4\
**Last updated:** [April 3, 2008, 4:40am UTC](https://www.ruby-forum.com/t/blank-option-with-select-tag/133686 "2008-04-03T04:40:37Z")

</div>

Anybody know how to add a Blank option to a select\_tag. This is what I have now \<%= select\_tag “province”," Prince Edward Island New Brunswick Nova Scotia Newfoundland" %\> This is the output I would like All P…

---

## [Urgend question for using REGEXP in find-query](https://www.ruby-forum.com/t/urgend-question-for-using-regexp-in-find-query/133682)

<div class="topic-metadata">

**Author:** [@der\_guido](https://www.ruby-forum.com/u/der_guido)\
**Replies:** 1\
**Last updated:** [April 3, 2008, 4:37am UTC](https://www.ruby-forum.com/t/urgend-question-for-using-regexp-in-find-query/133682 "2008-04-03T04:37:39Z")

</div>

Hi… my table is Number… in this table I have column named “list” each entry of a column has a list of numbers like: “3452 45869 234 12” know I have to know, how I can query the database via Number.find(:all, :condit…

---

## [To\_json failing with column named y](https://www.ruby-forum.com/t/to-json-failing-with-column-named-y/133643)

<div class="topic-metadata">

**Author:** [@Roel](https://www.ruby-forum.com/u/Roel)\
**Replies:** 5\
**Last updated:** [April 3, 2008, 2:44am UTC](https://www.ruby-forum.com/t/to-json-failing-with-column-named-y/133643 "2008-04-03T02:44:23Z")

</div>

Found this: http://dev.rubyonrails.org/ticket/9797 However, doesn’t seem to solve my issue. I run this: Foo.find(:first).to\_json(:include =\> { :bar =\> { :only =\> \[:x,:y\] } } ) or Foo.find(:first).to\_json(:include =\>…

---

## [REPOST: fallback layout mechanism](https://www.ruby-forum.com/t/repost-fallback-layout-mechanism/132172)

<div class="topic-metadata">

**Author:** [@goodwill](https://www.ruby-forum.com/u/goodwill)\
**Replies:** 6\
**Last updated:** [April 3, 2008, 2:36am UTC](https://www.ruby-forum.com/t/repost-fallback-layout-mechanism/132172 "2008-04-03T02:36:10Z")

</div>

Sorry for reposting but as I got no reply so far so I am just coming to try my luck again. I am doing a multi-lingual website which might have several layout pages (language dependent)available. I want to do a mechani…

---

## [Where is Rails 2.0.2 documentation? Especially debugging docs](https://www.ruby-forum.com/t/where-is-rails-2-0-2-documentation-especially-debugging-docs/133728)

<div class="topic-metadata">

**Author:** [@explainer](https://www.ruby-forum.com/u/explainer)\
**Replies:** 1\
**Last updated:** [April 3, 2008, 1:36am UTC](https://www.ruby-forum.com/t/where-is-rails-2-0-2-documentation-especially-debugging-docs/133728 "2008-04-03T01:36:26Z")

</div>

Hi, I am moving from Rails 1.2.6 to Rails 2.0.2, since I need to use Capistrano to set up deployment scripts, I thought it was time to move up to the latest. However, I am quite dependent on “Agile Web Development w…

---

## [WTF?!? activerecord-sqlserver-adapter gem not available!](https://www.ruby-forum.com/t/wtf-activerecord-sqlserver-adapter-gem-not-available/133727)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 1\
**Last updated:** [April 3, 2008, 12:53am UTC](https://www.ruby-forum.com/t/wtf-activerecord-sqlserver-adapter-gem-not-available/133727 "2008-04-03T00:53:11Z")

</div>

Trying to install the activerecord-sqlserver-adapter gem from http://gems.rubyonrails.org, but it can’t be found! I need this gem ASAP for an installation. Can anyone tell me where it went to? Did it change names? …

---

## [Authenticity token lying around](https://www.ruby-forum.com/t/authenticity-token-lying-around/133613)

<div class="topic-metadata">

**Author:** [@dewie](https://www.ruby-forum.com/u/dewie)\
**Replies:** 4\
**Last updated:** [April 3, 2008, 12:48am UTC](https://www.ruby-forum.com/t/authenticity-token-lying-around/133613 "2008-04-03T00:48:08Z")

</div>

I’ve attached an Ajax POST request to a link. The request is failing (InvalidAuthenticityToken) because I’m not sending the authenticity token with it. Searching the forums led me to these two methods… request\_forger…

---

## [Ruby script/plugin update not working](https://www.ruby-forum.com/t/ruby-script-plugin-update-not-working/133709)

<div class="topic-metadata">

**Author:** [@frank\_programmer](https://www.ruby-forum.com/u/frank_programmer)\
**Replies:** 2\
**Last updated:** [April 3, 2008, 12:00am UTC](https://www.ruby-forum.com/t/ruby-script-plugin-update-not-working/133709 "2008-04-03T00:00:41Z")

</div>

Hi, I tried to update the restful\_authentication plugin by doing this. ruby script/plugin update restful\_authentication But it didn’t do anything. I know though I don’t have the latest version because in another p…

---

## [Rendering RJS](https://www.ruby-forum.com/t/rendering-rjs/133724)

<div class="topic-metadata">

**Author:** [@johnlester](https://www.ruby-forum.com/u/johnlester)\
**Replies:** 0\
**Last updated:** [April 2, 2008, 11:55pm UTC](https://www.ruby-forum.com/t/rendering-rjs/133724 "2008-04-02T23:55:45Z")

</div>

Hello, just curious… When I handle an ajax call in my controller, why does render :action =\> “template.js.rjs” work but render :action =\> “template” does not ? I think the latter looks nicer. Ideally, I’d prefer to…

---

## [International payments](https://www.ruby-forum.com/t/international-payments/133703)

<div class="topic-metadata">

**Author:** [@jimmypalmer](https://www.ruby-forum.com/u/jimmypalmer)\
**Replies:** 1\
**Last updated:** [April 2, 2008, 10:59pm UTC](https://www.ruby-forum.com/t/international-payments/133703 "2008-04-02T22:59:25Z")

</div>

I just built a store in rails with active merchant - authorize.net. Everything works great except international payments always get declined. Does anyone have any recommendations on resources to checkout or know anyt…

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

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