# Rails

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

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

---

## [Fleximage undefined method](https://www.ruby-forum.com/t/fleximage-undefined-method/142988)

<div class="topic-metadata">

**Author:** [@chris](https://www.ruby-forum.com/u/chris)\
**Replies:** 3\
**Last updated:** [August 6, 2008, 8:29pm UTC](https://www.ruby-forum.com/t/fleximage-undefined-method/142988 "2008-08-06T20:29:27Z")

</div>

I’ve just tried to follow the tutorial on the wiki, but i’m running into a problem. On my “view” page, I’m receiving this error: undefined method \`formatted\_photo\_path’ … around this line: \<%= image\_tag formatted\_ph…

---

## [Hpricot](https://www.ruby-forum.com/t/hpricot/145167)

<div class="topic-metadata">

**Author:** [@joep](https://www.ruby-forum.com/u/joep)\
**Replies:** 3\
**Last updated:** [August 6, 2008, 8:08pm UTC](https://www.ruby-forum.com/t/hpricot/145167 "2008-08-06T20:08:22Z")

</div>

Good morning to you all, I need to use Hpricot to search through HTML, find links, and search through those links. I’ve got as far as finding all the links links = page.search(“/html/body//a”) How can I search throu…

---

## [\[ANN\] Rejaw is born](https://www.ruby-forum.com/t/ann-rejaw-is-born/145183)

<div class="topic-metadata">

**Author:** [@dburkes](https://www.ruby-forum.com/u/dburkes)\
**Replies:** 0\
**Last updated:** [August 6, 2008, 6:52pm UTC](https://www.ruby-forum.com/t/ann-rejaw-is-born/145183 "2008-08-06T18:52:56Z")

</div>

We’ve just launched a new Rails-based chat/microblogging site at http://rejaw.com. Check it out and let us know what you think! Best Regards, Danny B. http://rejaw.com/help/about#danny

---

## [InvalidAuthenticityToken?](https://www.ruby-forum.com/t/invalidauthenticitytoken/145184)

<div class="topic-metadata">

**Author:** [@helix\_tp](https://www.ruby-forum.com/u/helix_tp)\
**Replies:** 0\
**Last updated:** [August 6, 2008, 6:48pm UTC](https://www.ruby-forum.com/t/invalidauthenticitytoken/145184 "2008-08-06T18:48:08Z")

</div>

Should I be worried about InvalidAuthenticityToken errors? I’m pretty sure this isn’t someone trying to hack us, but I suspect may be some config error on our part. We have 2 servers, each with multiple mongrels and …

---

## [Apache/SSL configure error](https://www.ruby-forum.com/t/apache-ssl-configure-error/145177)

<div class="topic-metadata">

**Author:** [@parki](https://www.ruby-forum.com/u/parki)\
**Replies:** 0\
**Last updated:** [August 6, 2008, 6:14pm UTC](https://www.ruby-forum.com/t/apache-ssl-configure-error/145177 "2008-08-06T18:14:17Z")

</div>

Hi, I am attempting to configure Apache 2.2.4 with SSL on Solaris 9 (using OpenSSL vers 0.9.8e), and getting the following: checking openssl/engine.h usability… yes checking openssl/engine.h presence… yes checking f…

---

## [Anyone have some testing options suggestions for 2.1?](https://www.ruby-forum.com/t/anyone-have-some-testing-options-suggestions-for-2-1/144996)

<div class="topic-metadata">

**Author:** [@newrubygirl](https://www.ruby-forum.com/u/newrubygirl)\
**Replies:** 3\
**Last updated:** [August 6, 2008, 6:04pm UTC](https://www.ruby-forum.com/t/anyone-have-some-testing-options-suggestions-for-2-1/144996 "2008-08-06T18:04:46Z")

</div>

Hello. I am looking for suggestions for browser testing my RoR 2.1 app. I had downloaded selenium and selenium-on-rails, but the version on github still produces errors for me. I need to test some Javascript and a c…

---

## [Form\_tag options needed](https://www.ruby-forum.com/t/form-tag-options-needed/145156)

<div class="topic-metadata">

**Author:** [@lostwarrior](https://www.ruby-forum.com/u/lostwarrior)\
**Replies:** 2\
**Last updated:** [August 6, 2008, 5:17pm UTC](https://www.ruby-forum.com/t/form-tag-options-needed/145156 "2008-08-06T17:17:58Z")

</div>

hi i am want to use google search for my application for that how to write in form\_tag \<%form\_tag ({},{:action=\>‘http://www.google.uk’}) do %\> \<%end%\> but here it is taking my action & controller of my action .how to…

---

## [Attachment\_fu error](https://www.ruby-forum.com/t/attachment-fu-error/145139)

<div class="topic-metadata">

**Author:** [@aldoitalo](https://www.ruby-forum.com/u/aldoitalo)\
**Replies:** 1\
**Last updated:** [August 6, 2008, 4:48pm UTC](https://www.ruby-forum.com/t/attachment-fu-error/145139 "2008-08-06T16:48:46Z")

</div>

I have of the photos to associate to locations (photo belongs\_to location) , I am creating to them with attachment\_fu and reorganized with mini\_magick. (you see file attached). The problem verification when submit a …

---

## [Preserve DOM updates with back button on all browsers](https://www.ruby-forum.com/t/preserve-dom-updates-with-back-button-on-all-browsers/145164)

<div class="topic-metadata">

**Author:** [@dino\_d](https://www.ruby-forum.com/u/dino_d)\
**Replies:** 0\
**Last updated:** [August 6, 2008, 4:35pm UTC](https://www.ruby-forum.com/t/preserve-dom-updates-with-back-button-on-all-browsers/145164 "2008-08-06T16:35:39Z")

</div>

Hi - Is there a simple way to preserve Ajax DOM updates when hitting the back button? This works fine with FF, but not IE and I suspect other browsers. Is there something like page.save or something like this? Than…

---

## [Text\_field\_with\_auto\_complete AND observe\_field on same field?](https://www.ruby-forum.com/t/text-field-with-auto-complete-and-observe-field-on-same-field/145152)

<div class="topic-metadata">

**Author:** [@pepe](https://www.ruby-forum.com/u/pepe)\
**Replies:** 4\
**Last updated:** [August 6, 2008, 4:29pm UTC](https://www.ruby-forum.com/t/text-field-with-auto-complete-and-observe-field-on-same-field/145152 "2008-08-06T16:29:48Z")

</div>

Hello. I have a field on my page that I create with text\_field\_with\_auto\_complete. The auto-complete functionality works well. I found an observe\_field sample and got it working stand-alone in its own page. I was am…

---

## [How to specify the response format in an asynchronous post act](https://www.ruby-forum.com/t/how-to-specify-the-response-format-in-an-asynchronous-post-act/145160)

<div class="topic-metadata">

**Author:** [@vince](https://www.ruby-forum.com/u/vince)\
**Replies:** 0\
**Last updated:** [August 6, 2008, 4:22pm UTC](https://www.ruby-forum.com/t/how-to-specify-the-response-format-in-an-asynchronous-post-act/145160 "2008-08-06T16:22:47Z")

</div>

I do asynchronous request via remote\_form\_for,I expect it will update partial content within current page, but it end up redirect to a new page,I guess may be cause controller consider ’ format.html’ was I need.so I w…

---

## [App-specific plugin architecture / system / plan-of-attack?](https://www.ruby-forum.com/t/app-specific-plugin-architecture-system-plan-of-attack/145159)

<div class="topic-metadata">

**Author:** [@Joel\_O](https://www.ruby-forum.com/u/Joel_O)\
**Replies:** 0\
**Last updated:** [August 6, 2008, 4:14pm UTC](https://www.ruby-forum.com/t/app-specific-plugin-architecture-system-plan-of-attack/145159 "2008-08-06T16:14:01Z")

</div>

Hi everyone - I’ve been working on a rails app for the past few years and always keep coming back to the fact that a lot of the functionality I’ve wanted to include could have been much easier to develop if I had put …

---

## [Find\_by\_sql](https://www.ruby-forum.com/t/find-by-sql/145143)

<div class="topic-metadata">

**Author:** [@gasthana](https://www.ruby-forum.com/u/gasthana)\
**Replies:** 2\
**Last updated:** [August 6, 2008, 2:50pm UTC](https://www.ruby-forum.com/t/find-by-sql/145143 "2008-08-06T14:50:14Z")

</div>

hi, i have to fire below query… SELECT \* FROM clarify\_crs c where c.id IN (select cscr.cscr\_cr\_id from clarify\_case\_crs cscr where cscr.cscr\_case\_id=10001); I have to pass this 10001 as some variable. So i am using b…

---

## [Date\_select and observe\_field](https://www.ruby-forum.com/t/date-select-and-observe-field/145148)

<div class="topic-metadata">

**Author:** [@acgreen](https://www.ruby-forum.com/u/acgreen)\
**Replies:** 0\
**Last updated:** [August 6, 2008, 2:36pm UTC](https://www.ruby-forum.com/t/date-select-and-observe-field/145148 "2008-08-06T14:36:41Z")

</div>

Google didn;t throw too much up on this but I’m sure I’m not the forst to have this problem. \<%= date\_select ‘client’, ‘dob’, Â Â Â Â Â Â Â :use\_month\_numbers =\> false, Â Â Â Â Â Â Â :order =\> \[:day,:month,:year\], …

---

## [Thinking Sphinx, Filter conditions with a has\_many relationship](https://www.ruby-forum.com/t/thinking-sphinx-filter-conditions-with-a-has-many-relationship/145052)

<div class="topic-metadata">

**Author:** [@Sean\_CSHess](https://www.ruby-forum.com/u/Sean_CSHess)\
**Replies:** 4\
**Last updated:** [August 6, 2008, 2:02pm UTC](https://www.ruby-forum.com/t/thinking-sphinx-filter-conditions-with-a-has-many-relationship/145052 "2008-08-06T14:02:43Z")

</div>

Hello all, I just started using Sphinx for full text search. It works very well, but I can’t figure out how to set a condition for a has\_many relationship. For example, I have a Game model, and it has a habtm relati…

---

## [Javascript in rjs?](https://www.ruby-forum.com/t/javascript-in-rjs/145111)

<div class="topic-metadata">

**Author:** [@jturney](https://www.ruby-forum.com/u/jturney)\
**Replies:** 2\
**Last updated:** [August 6, 2008, 1:41pm UTC](https://www.ruby-forum.com/t/javascript-in-rjs/145111 "2008-08-06T13:41:48Z")

</div>

Hi, I’m trying to see if an element exists in my rjs: exists = document.getElementById(“checkX”) Something to that extent… how do I add that into the rjs? Thanks

---

## [Strip\_links(html) in a rake task](https://www.ruby-forum.com/t/strip-links-html-in-a-rake-task/145132)

<div class="topic-metadata">

**Author:** [@pierre](https://www.ruby-forum.com/u/pierre)\
**Replies:** 3\
**Last updated:** [August 6, 2008, 12:42pm UTC](https://www.ruby-forum.com/t/strip-links-html-in-a-rake-task/145132 "2008-08-06T12:42:23Z")

</div>

Hello, I would like to use the helper strip\_links(html) in one of my rake task. Is there anyway I can do that ? I’ve tried to look for solutions on Google with no success. Thank you very much, Pierre

---

## [Reset comment form using js or RJS](https://www.ruby-forum.com/t/reset-comment-form-using-js-or-rjs/145135)

<div class="topic-metadata">

**Author:** [@chunkyslink](https://www.ruby-forum.com/u/chunkyslink)\
**Replies:** 2\
**Last updated:** [August 6, 2008, 12:24pm UTC](https://www.ruby-forum.com/t/reset-comment-form-using-js-or-rjs/145135 "2008-08-06T12:24:18Z")

</div>

I have a placeholder ‘pre-text’ value which is given to a comment form input via the application.js; Event.observe(window, ‘load’, comment\_pre\_text = “Leave a comment…” var el = $(‘comment\_body’) if(el) { el.value …

---

## [One controller attached to many](https://www.ruby-forum.com/t/one-controller-attached-to-many/145137)

<div class="topic-metadata">

**Author:** [@vapor](https://www.ruby-forum.com/u/vapor)\
**Replies:** 0\
**Last updated:** [August 6, 2008, 11:56am UTC](https://www.ruby-forum.com/t/one-controller-attached-to-many/145137 "2008-08-06T11:56:41Z")

</div>

is this possible/good-practice to have one controller attached to many in REST…something like work: has\_many :tasks home: has\_many :tasks personal: has\_many :tasks and then store work\_id or home\_id, or personal\_i…

---

## [FormOption Helper](https://www.ruby-forum.com/t/formoption-helper/145134)

<div class="topic-metadata">

**Author:** [@vanight](https://www.ruby-forum.com/u/vanight)\
**Replies:** 4\
**Last updated:** [August 6, 2008, 11:30am UTC](https://www.ruby-forum.com/t/formoption-helper/145134 "2008-08-06T11:30:24Z")

</div>

Hi, I’m trying to generate a select with this : select(“music”, “music\_location\_id”, MusicLocation.find(:all, :order =\> “name ASC”).collect {|p| \[ p.name, p.id \] }, { :include\_blank =\> true }) I need to add a descrip…

---

## [How do I pass an array in a URL? such that at the other end rails will see it as an Array?](https://www.ruby-forum.com/t/how-do-i-pass-an-array-in-a-url-such-that-at-the-other-end-rails-will-see-it-as-an-array/145107)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 4\
**Last updated:** [August 6, 2008, 10:19am UTC](https://www.ruby-forum.com/t/how-do-i-pass-an-array-in-a-url-such-that-at-the-other-end-rails-will-see-it-as-an-array/145107 "2008-08-06T10:19:22Z")

</div>

Hi, How do I pass an array in a URL? such that at the other end rails will see it as an Array? I’m trying to use the following bit of ActiveScaffold code: params.reject {|key, value| \[:controller, :action, :id\].…

---

## [Does rake need to touch certain files in public directory?](https://www.ruby-forum.com/t/does-rake-need-to-touch-certain-files-in-public-directory/145110)

<div class="topic-metadata">

**Author:** [@Matthew\_J\_Mucklo](https://www.ruby-forum.com/u/Matthew_J_Mucklo)\
**Replies:** 1\
**Last updated:** [August 6, 2008, 9:44am UTC](https://www.ruby-forum.com/t/does-rake-need-to-touch-certain-files-in-public-directory/145110 "2008-08-06T09:44:45Z")

</div>

Rails 2.0.2: rake seems to be complaining when certain files in the public directory are set to read-only. An Example (using sample directory names): myserver1=\> rake db:drop (in /my/application/directory) rake abo…

---

## [Link\_to to change input value](https://www.ruby-forum.com/t/link-to-to-change-input-value/145097)

<div class="topic-metadata">

**Author:** [@jturney](https://www.ruby-forum.com/u/jturney)\
**Replies:** 2\
**Last updated:** [August 6, 2008, 9:37am UTC](https://www.ruby-forum.com/t/link-to-to-change-input-value/145097 "2008-08-06T09:37:09Z")

</div>

hi, \<%= text\_field\_tag :search\_id, params\[:search\_id\], :id=\>“search\_id” %\> how would I make a link\_to with an :onclick to change the input field with id=“search\_id”? Thanks!

---

## [How to put onmousewheel=return(false) into \<%=select ...%\>?](https://www.ruby-forum.com/t/how-to-put-onmousewheel-return-false-into-select/145129)

<div class="topic-metadata">

**Author:** [@thomasalbert](https://www.ruby-forum.com/u/thomasalbert)\
**Replies:** 1\
**Last updated:** [August 6, 2008, 9:35am UTC](https://www.ruby-forum.com/t/how-to-put-onmousewheel-return-false-into-select/145129 "2008-08-06T09:35:59Z")

</div>

Can anyone help me to put the javascript statement onmousewheel=return(false) into a rhtml view file inside a select- \< %=select …%\> Thanks

---

## [Install question RE:ruby-1.8.6, rubygems-1.2.0, rails, mongrel on redhat 4](https://www.ruby-forum.com/t/install-question-re-ruby-1-8-6-rubygems-1-2-0-rails-mongrel-on-redhat-4/246518)

<div class="topic-metadata">

**Author:** [@bishop](https://www.ruby-forum.com/u/bishop)\
**Replies:** 0\
**Last updated:** [August 6, 2008, 9:33am UTC](https://www.ruby-forum.com/t/install-question-re-ruby-1-8-6-rubygems-1-2-0-rails-mongrel-on-redhat-4/246518 "2008-08-06T09:33:03Z")

</div>

I’m working to get Rails properly configured and running on a GNU/ Linux RedHat4 server. I’ve been through many, many of the online documentation sets, and am still stuck on a couple of things, namely running mongrel …

---

## [Rmagick problem](https://www.ruby-forum.com/t/rmagick-problem/145124)

<div class="topic-metadata">

**Author:** [@ganana\_srishti](https://www.ruby-forum.com/u/ganana_srishti)\
**Replies:** 1\
**Last updated:** [August 6, 2008, 9:30am UTC](https://www.ruby-forum.com/t/rmagick-problem/145124 "2008-08-06T09:30:07Z")

</div>

Hi, I have installed rmagick and imagemagick in ubuntu system after installing imagemagick and rmagick i am getting the following error no such file to load – rmagick if anybody know solution please reply… Thanx in…

---

## [Passing variable in form](https://www.ruby-forum.com/t/passing-variable-in-form/145089)

<div class="topic-metadata">

**Author:** [@vapor](https://www.ruby-forum.com/u/vapor)\
**Replies:** 5\
**Last updated:** [August 6, 2008, 7:46am UTC](https://www.ruby-forum.com/t/passing-variable-in-form/145089 "2008-08-06T07:46:41Z")

</div>

I want to pass a variable task\_id to my todo form. How can I pass it without using hidden field?

---

## [non-CRUD actions with REST](https://www.ruby-forum.com/t/non-crud-actions-with-rest/145113)

<div class="topic-metadata">

**Author:** [@mostafa\_badawi](https://www.ruby-forum.com/u/mostafa_badawi)\
**Replies:** 3\
**Last updated:** [August 6, 2008, 6:58am UTC](https://www.ruby-forum.com/t/non-crud-actions-with-rest/145113 "2008-08-06T06:58:03Z")

</div>

Hi all, About non-CRUD actions, how they are handled with RESTful application. I mean that if i needed to use link\_to to that kind of actions, how it’s done. thanks, Sorry for disturbance, Mostafa Badawi

---

## [Is there a way to AutoParse a string to another type - e.g. if a Date format then date, else if inte](https://www.ruby-forum.com/t/is-there-a-way-to-autoparse-a-string-to-another-type-e-g-if-a-date-format-then-date-else-if-inte/145121)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 0\
**Last updated:** [August 6, 2008, 6:57am UTC](https://www.ruby-forum.com/t/is-there-a-way-to-autoparse-a-string-to-another-type-e-g-if-a-date-format-then-date-else-if-inte/145121 "2008-08-06T06:57:28Z")

</div>

Hi, Is there a way to AutoParse a string to another type - e.g. if a Date format then date, else if integer than Integer etc, in Rails? I’m wanting to pass search parameters via a URL, however since everything in t…

---

## [Functional tests with plugin dependencies](https://www.ruby-forum.com/t/functional-tests-with-plugin-dependencies/145116)

<div class="topic-metadata">

**Author:** [@Miles\_G](https://www.ruby-forum.com/u/Miles_G)\
**Replies:** 0\
**Last updated:** [August 6, 2008, 6:41am UTC](https://www.ruby-forum.com/t/functional-tests-with-plugin-dependencies/145116 "2008-08-06T06:41:41Z")

</div>

I have a functional test dependent on a plugin, but it seems the plugin’s not being loaded before running the tests. do I have to tell my tests they are dependent on plugins somehow?

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

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