# Rails

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

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

---

## [How to activate redirection with Authorization Plugin](https://www.ruby-forum.com/t/how-to-activate-redirection-with-authorization-plugin/146183)

<div class="topic-metadata">

**Author:** [@Mcgill\_Guy](https://www.ruby-forum.com/u/Mcgill_Guy)\
**Replies:** 2\
**Last updated:** [August 19, 2008, 3:55pm UTC](https://www.ruby-forum.com/t/how-to-activate-redirection-with-authorization-plugin/146183 "2008-08-19T15:55:46Z")

</div>

I could not find any example of how to use the method :store\_location to activate the redirect feature of the authorization plugin. I am using restful\_authentication plugin and the authorization plugin . any help will…

---

## [Sanitize doesn't remove inner html](https://www.ruby-forum.com/t/sanitize-doesnt-remove-inner-html/146211)

<div class="topic-metadata">

**Author:** [@dino\_d](https://www.ruby-forum.com/u/dino_d)\
**Replies:** 1\
**Last updated:** [August 19, 2008, 3:38pm UTC](https://www.ruby-forum.com/t/sanitize-doesnt-remove-inner-html/146211 "2008-08-19T15:38:09Z")

</div>

Hi - If I have a forbidden tag, like : extra stuff I’d like the whole thing removed. Sanitize just removes the and \</ a\> tags. Is there any easy way to remove the whole thing with sanitize? Thanks, Dino

---

## [Well deserved round of applause for Fred Chung](https://www.ruby-forum.com/t/well-deserved-round-of-applause-for-fred-chung/146189)

<div class="topic-metadata">

**Author:** [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Replies:** 4\
**Last updated:** [August 19, 2008, 3:32pm UTC](https://www.ruby-forum.com/t/well-deserved-round-of-applause-for-fred-chung/146189 "2008-08-19T15:32:50Z")

</div>

Just saw this: http://www.socialmedian.com/story/726200/ruby-on-rails-google-group-getting-better Great job Fred. Regards, Bharat

---

## [reCAPTCHA link\_to\_remote issues](https://www.ruby-forum.com/t/recaptcha-link-to-remote-issues/141110)

<div class="topic-metadata">

**Author:** [@indigoi](https://www.ruby-forum.com/u/indigoi)\
**Replies:** 1\
**Last updated:** [August 19, 2008, 3:26pm UTC](https://www.ruby-forum.com/t/recaptcha-link-to-remote-issues/141110 "2008-08-19T15:26:25Z")

</div>

when i try to render a partial containing \<%= recaptcha\_tags %\> using link\_to\_remote on my website, something goes haywire and the captcha never shows up. When i render the partial not using an ajax call, it works gre…

---

## [Sortable\_element example](https://www.ruby-forum.com/t/sortable-element-example/146117)

<div class="topic-metadata">

**Author:** [@Jorg\_L](https://www.ruby-forum.com/u/Jorg_L)\
**Replies:** 2\
**Last updated:** [August 19, 2008, 2:25pm UTC](https://www.ruby-forum.com/t/sortable-element-example/146117 "2008-08-19T14:25:47Z")

</div>

Does someone have a good example of using sortable\_element and then updating the changed position in the database? I don’t have an issue getting the drag and drop to work, but saving the changes seems to be a challen…

---

## [Sorting an array object](https://www.ruby-forum.com/t/sorting-an-array-object/146223)

<div class="topic-metadata">

**Author:** [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Replies:** 3\
**Last updated:** [August 19, 2008, 2:23pm UTC](https://www.ruby-forum.com/t/sorting-an-array-object/146223 "2008-08-19T14:23:43Z")

</div>

Hi, I have three mechanisms for sorting 1) First Name 2) Last Name 3) Created Date Currently, I am doing query for each type of sorting. That means I am hitting database 3 times. I want to do like this it will hit d…

---

## [Problem with image in pdf attachment received by email](https://www.ruby-forum.com/t/problem-with-image-in-pdf-attachment-received-by-email/146247)

<div class="topic-metadata">

**Author:** [@vidya1111](https://www.ruby-forum.com/u/vidya1111)\
**Replies:** 0\
**Last updated:** [August 19, 2008, 1:16pm UTC](https://www.ruby-forum.com/t/problem-with-image-in-pdf-attachment-received-by-email/146247 "2008-08-19T13:16:19Z")

</div>

Hi All, I tried sending the pdf attachment using action mailer. The original pdf file will have an image header followed by text contents. After receiving the email, the pdf attachment has the first page that contai…

---

## [Link\_to Tag, Onclick Event](https://www.ruby-forum.com/t/link-to-tag-onclick-event/146245)

<div class="topic-metadata">

**Author:** [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Replies:** 1\
**Last updated:** [August 19, 2008, 12:55pm UTC](https://www.ruby-forum.com/t/link-to-tag-onclick-event/146245 "2008-08-19T12:55:20Z")

</div>

Hi, I want to do like this :- using Link\_to tag. Where - validate() is an java script function in that RHTML file. Is this is possible using link\_to tag? If yes tell me hoe to do that? Thanks & Regards, Tushar

---

## [Migration of RoR applications to a new server](https://www.ruby-forum.com/t/migration-of-ror-applications-to-a-new-server/145675)

<div class="topic-metadata">

**Author:** [@vtypal](https://www.ruby-forum.com/u/vtypal)\
**Replies:** 1\
**Last updated:** [August 19, 2008, 12:54pm UTC](https://www.ruby-forum.com/t/migration-of-ror-applications-to-a-new-server/145675 "2008-08-19T12:54:13Z")

</div>

I have to move my RoR apps to a new server. It may sound extremely simple, but i’d like to hear some advices before proceeding: How should i make this migration? For the migration of the mysql databases, should i foll…

---

## [Pdf writer issue with text and image](https://www.ruby-forum.com/t/pdf-writer-issue-with-text-and-image/146235)

<div class="topic-metadata">

**Author:** [@Abhishek\_shukla](https://www.ruby-forum.com/u/Abhishek_shukla)\
**Replies:** 1\
**Last updated:** [August 19, 2008, 12:40pm UTC](https://www.ruby-forum.com/t/pdf-writer-issue-with-text-and-image/146235 "2008-08-19T12:40:37Z")

</div>

Hello friends Just wanted to know that how we can print text and image on same line, let say for eg pdf = PDF::Writer.new pdf.text = “hi this is testing” pdf.image = “some image path” so this will print hi this i…

---

## [Oldschool RPG in progress, need help on Ruby code](https://www.ruby-forum.com/t/oldschool-rpg-in-progress-need-help-on-ruby-code/146240)

<div class="topic-metadata">

**Author:** [@neog](https://www.ruby-forum.com/u/neog)\
**Replies:** 0\
**Last updated:** [August 19, 2008, 11:50am UTC](https://www.ruby-forum.com/t/oldschool-rpg-in-progress-need-help-on-ruby-code/146240 "2008-08-19T11:50:53Z")

</div>

Hi, I’m working on a game and unfortunately I’m not much into Ruby. (I’m more of a designer) The question is, would you (yes you ;)) like to help me write a code for a unique battle system which is going to be implem…

---

## [Having problem with file\_column plug in](https://www.ruby-forum.com/t/having-problem-with-file-column-plug-in/146236)

<div class="topic-metadata">

**Author:** [@dharmdip](https://www.ruby-forum.com/u/dharmdip)\
**Replies:** 0\
**Last updated:** [August 19, 2008, 11:07am UTC](https://www.ruby-forum.com/t/having-problem-with-file-column-plug-in/146236 "2008-08-19T11:07:50Z")

</div>

I have downloaded file\_column plug in . When i implemented it ,i can upload image successfully ! but when i trying to display it gives only image name , and gives wrong path Wrong path ! no route found to match “/use…

---

## [Using \<%- ... -%\> by default](https://www.ruby-forum.com/t/using-by-default/146233)

<div class="topic-metadata">

**Author:** [@nixon](https://www.ruby-forum.com/u/nixon)\
**Replies:** 1\
**Last updated:** [August 19, 2008, 11:07am UTC](https://www.ruby-forum.com/t/using-by-default/146233 "2008-08-19T11:07:18Z")

</div>

Does anybody know how to make RoR to use \<%- some\_code -%\> by default? I mean how to make RoR to delete all empty strings by default (without using \<%- some\_code -%\>. Just usually using \<% some code %\>), that came to …

---

## [Soft deletion](https://www.ruby-forum.com/t/soft-deletion/146232)

<div class="topic-metadata">

**Author:** [@deadinplastic](https://www.ruby-forum.com/u/deadinplastic)\
**Replies:** 1\
**Last updated:** [August 19, 2008, 10:06am UTC](https://www.ruby-forum.com/t/soft-deletion/146232 "2008-08-19T10:06:21Z")

</div>

So i was wondering about the best way to approach building an application with in-place soft deletion. The requirements so far are: rows are never deleted just a flag set as deleted = true unique validation does not …

---

## [Stop id from showing in the address bar](https://www.ruby-forum.com/t/stop-id-from-showing-in-the-address-bar/146229)

<div class="topic-metadata">

**Author:** [@vidya1111](https://www.ruby-forum.com/u/vidya1111)\
**Replies:** 1\
**Last updated:** [August 19, 2008, 9:56am UTC](https://www.ruby-forum.com/t/stop-id-from-showing-in-the-address-bar/146229 "2008-08-19T09:56:57Z")

</div>

Hi All, I am passing ‘cid’ in the url as: http://test.com:3000/test/do\_test?cid=10 How can I stop the ‘cid’ from showing in the address bar? Thanks in advance.

---

## [Noob question that took me a whole day](https://www.ruby-forum.com/t/noob-question-that-took-me-a-whole-day/146124)

<div class="topic-metadata">

**Author:** [@kanekcwu](https://www.ruby-forum.com/u/kanekcwu)\
**Replies:** 9\
**Last updated:** [August 19, 2008, 9:48am UTC](https://www.ruby-forum.com/t/noob-question-that-took-me-a-whole-day/146124 "2008-08-19T09:48:08Z")

</div>

Alright I spent 3 hours on the easiest question in ruby on rails and still can’t figure out the answer. Please help… Basically I am trying to create a new object. So of course I have two methods class Ratings def new …

---

## [Is it possible to use mingw32-make instead of nmake on windows for compiling gems?](https://www.ruby-forum.com/t/is-it-possible-to-use-mingw32-make-instead-of-nmake-on-windows-for-compiling-gems/146031)

<div class="topic-metadata">

**Author:** [@trustfundbaby](https://www.ruby-forum.com/u/trustfundbaby)\
**Replies:** 3\
**Last updated:** [August 19, 2008, 9:41am UTC](https://www.ruby-forum.com/t/is-it-possible-to-use-mingw32-make-instead-of-nmake-on-windows-for-compiling-gems/146031 "2008-08-19T09:41:06Z")

</div>

Title says it all … I was just wondering, because nmake seems to bomb out on a lot of gem installations I try to do. Especially with error messages like this http://groups.google.com/group/rubyonrails-talk/browse\_thre…

---

## [Config.breakpoint\_server](https://www.ruby-forum.com/t/config-breakpoint-server/144916)

<div class="topic-metadata">

**Author:** [@hema\_mca](https://www.ruby-forum.com/u/hema_mca)\
**Replies:** 1\
**Last updated:** [August 19, 2008, 9:32am UTC](https://www.ruby-forum.com/t/config-breakpoint-server/144916 "2008-08-19T09:32:53Z")

</div>

Hi, I am working in Ubuntu 7.0 recently i updated it to ubuntu 8.04 previously my applications going well.Now if i run the applications it is generating the following error “config.breakpoint\_server has been deprecat…

---

## [\[ANN\] ActiveRecord English Like Queries v0.0.2](https://www.ruby-forum.com/t/ann-activerecord-english-like-queries-v0-0-2/146228)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 0\
**Last updated:** [August 19, 2008, 9:13am UTC](https://www.ruby-forum.com/t/ann-activerecord-english-like-queries-v0-0-2/146228 "2008-08-19T09:13:17Z")

</div>

I am pleased to announce the release of the plugin English Like Queries \[pronounced in a proper British accent\] v0.0.2 Changes: klass.where ‘name includes’ =\> \[‘abc’, ‘def’\] now defaults to a .find :all query–much ni…

---

## [Rake db:test:prepare doesn't work as I'm used to on branch 2-1-stable](https://www.ruby-forum.com/t/rake-dbprepare-doesnt-work-as-im-used-to-on-branch-2-1-stable/146221)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [August 19, 2008, 8:15am UTC](https://www.ruby-forum.com/t/rake-dbprepare-doesnt-work-as-im-used-to-on-branch-2-1-stable/146221 "2008-08-19T08:15:36Z")

</div>

Hi, I’m using rails’ 2-1-stable branch from github since it includes some fixes I need. When I’m using rake db:test:prepare, I don’t get an up-to-schema test database. Instead it seems to just re-build my developmen…

---

## [How to define ID as char(22)](https://www.ruby-forum.com/t/how-to-define-id-as-char-22/123535)

<div class="topic-metadata">

**Author:** [@dcarneiro](https://www.ruby-forum.com/u/dcarneiro)\
**Replies:** 1\
**Last updated:** [August 19, 2008, 8:04am UTC](https://www.ruby-forum.com/t/how-to-define-id-as-char-22/123535 "2008-08-19T08:04:50Z")

</div>

Hi guys, I am newer of ROR. I want to use UUID in my project but I don’t know where and how to define ID as char(22). Any one can help me? Thanks a lot!

---

## [Rails 2.1 and svn externals](https://www.ruby-forum.com/t/rails-2-1-and-svn-externals/146205)

<div class="topic-metadata">

**Author:** [@janovetz](https://www.ruby-forum.com/u/janovetz)\
**Replies:** 7\
**Last updated:** [August 19, 2008, 7:40am UTC](https://www.ruby-forum.com/t/rails-2-1-and-svn-externals/146205 "2008-08-19T07:40:30Z")

</div>

Hey folks– Does anyone know when the rails 2.1 stuff will appear in the SVN repo for folks mapping Rails as externals? The latest I can find tagged is: http://svn.rubyonrails.org/rails/tags/rel\_2-0-2/ I know edge ha…

---

## [Cap deploy:migrations doesn't run deploy:after\_update](https://www.ruby-forum.com/t/cap-deploy-migrations-doesnt-run-deploy-after-update/145990)

<div class="topic-metadata">

**Author:** [@miken700](https://www.ruby-forum.com/u/miken700)\
**Replies:** 2\
**Last updated:** [August 19, 2008, 7:35am UTC](https://www.ruby-forum.com/t/cap-deploy-migrations-doesnt-run-deploy-after-update/145990 "2008-08-19T07:35:54Z")

</div>

Does anybody else have the problem that running “cap deploy:migrations” doesn’t run “deploy:after\_update”, but “cap deploy” does? I have after\_update it make some symlinks to the shared directory and set some permissi…

---

## [Win2k3, Apache, Mongrel, Mod\_ruby Production alternative?](https://www.ruby-forum.com/t/win2k3-apache-mongrel-mod-ruby-production-alternative/143238)

<div class="topic-metadata">

**Author:** [@chrisdwan](https://www.ruby-forum.com/u/chrisdwan)\
**Replies:** 1\
**Last updated:** [August 19, 2008, 7:30am UTC](https://www.ruby-forum.com/t/win2k3-apache-mongrel-mod-ruby-production-alternative/143238 "2008-08-19T07:30:38Z")

</div>

Currently I am running a production environment with 4 Mongrel\_clusters being proxied by Apache 2.2 using mod\_ruby in a Windows 2003 server environment. For every mongrel\_cluster it spawns a mongrel\_serivce.exe \*32 an…

---

## [Can't get redcloth to work on server](https://www.ruby-forum.com/t/cant-get-redcloth-to-work-on-server/146114)

<div class="topic-metadata">

**Author:** [@jeffpritchard](https://www.ruby-forum.com/u/jeffpritchard)\
**Replies:** 3\
**Last updated:** [August 19, 2008, 7:15am UTC](https://www.ruby-forum.com/t/cant-get-redcloth-to-work-on-server/146114 "2008-08-19T07:15:17Z")

</div>

I develop on a Mac, and have a redhat enterprise based server. I’m trying to use the redcloth gem in my app. I can get it to work just fine on the Mac (localhost), but I cannot seem to get it to work on the server. …

---

## [Image manipulation on the fly](https://www.ruby-forum.com/t/image-manipulation-on-the-fly/146118)

<div class="topic-metadata">

**Author:** [@MrSBless](https://www.ruby-forum.com/u/MrSBless)\
**Replies:** 2\
**Last updated:** [August 19, 2008, 7:12am UTC](https://www.ruby-forum.com/t/image-manipulation-on-the-fly/146118 "2008-08-19T07:12:43Z")

</div>

Let say i have rails.png file in my public/image directory and its size is 100X100. Now my question is how can i display this image with size say 200X200 in my view file. And i don’t want to store any other image rail…

---

## [Retrieve an already uploaded file using upload column](https://www.ruby-forum.com/t/retrieve-an-already-uploaded-file-using-upload-column/146133)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 2\
**Last updated:** [August 19, 2008, 6:19am UTC](https://www.ruby-forum.com/t/retrieve-an-already-uploaded-file-using-upload-column/146133 "2008-08-19T06:19:01Z")

</div>

Hi I am using the plugin upload column for file uploading…And it was working properly with the code @sd\_activity\_attachment=ServiceDeskActivityAttachment.new(params\[:sd\_activity\_attachment\]) @sd\_activity\_attachment.s…

---

## [Weird error](https://www.ruby-forum.com/t/weird-error/146214)

<div class="topic-metadata">

**Author:** [@joeyboy](https://www.ruby-forum.com/u/joeyboy)\
**Replies:** 0\
**Last updated:** [August 19, 2008, 6:02am UTC](https://www.ruby-forum.com/t/weird-error/146214 "2008-08-19T06:02:52Z")

</div>

hi! while attempting to connect from the browser. i get this error from the dos shell where webrick is started: ERROR bad Request-Line ’ 9 8 5 3 2 ’ 127.0.0.1 – ’ 9 8 5 3 2 ’ 400 323 -\> i don’t understand, this…

---

## [Structure of app that uses subdomains as account keys](https://www.ruby-forum.com/t/structure-of-app-that-uses-subdomains-as-account-keys/146126)

<div class="topic-metadata">

**Author:** [@snowbird122](https://www.ruby-forum.com/u/snowbird122)\
**Replies:** 4\
**Last updated:** [August 19, 2008, 5:06am UTC](https://www.ruby-forum.com/t/structure-of-app-that-uses-subdomains-as-account-keys/146126 "2008-08-19T05:06:05Z")

</div>

Hello- I’ve created a very simple app that uses subdomains as account keys. I followed the instructions at: http://wiki.rubyonrails.org/rails/pages/HowToUseSubdomainsAsAccountKeys My question is how should I best str…

---

## [ActiveRecord.id does not work within named\_scope block](https://www.ruby-forum.com/t/activerecord-id-does-not-work-within-named-scope-block/146196)

<div class="topic-metadata">

**Author:** [@Swartz](https://www.ruby-forum.com/u/Swartz)\
**Replies:** 2\
**Last updated:** [August 19, 2008, 3:12am UTC](https://www.ruby-forum.com/t/activerecord-id-does-not-work-within-named-scope-block/146196 "2008-08-19T03:12:02Z")

</div>

Hi, Trying to create a named\_scope that would check that the record is not itself. I have companies and contacts, where a contact can be a primary contact for a company: class Company has\_many :contacts end class…

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

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