# Rails

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

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

---

## [Netbeans - Malformed version number string mswin32 (ArgumentError)](https://www.ruby-forum.com/t/netbeans-malformed-version-number-string-mswin32-argumenterror/187880)

<div class="topic-metadata">

**Author:** [@slindsey3000](https://www.ruby-forum.com/u/slindsey3000)\
**Replies:** 0\
**Last updated:** [April 30, 2010, 7:50pm UTC](https://www.ruby-forum.com/t/netbeans-malformed-version-number-string-mswin32-argumenterror/187880 "2010-04-30T19:50:47Z")

</div>

History… before it went to heck… I have been working a project in Netbeans for a month. I did a gem update outside of Netbeans while I was installing ImageMagick and RMagick… I also had to remove one verson of ImageM…

---

## [Unable to install ruby gems 2.3.5](https://www.ruby-forum.com/t/unable-to-install-ruby-gems-2-3-5/187812)

<div class="topic-metadata">

**Author:** [@pradeep\_236](https://www.ruby-forum.com/u/pradeep_236)\
**Replies:** 1\
**Last updated:** [April 30, 2010, 7:46pm UTC](https://www.ruby-forum.com/t/unable-to-install-ruby-gems-2-3-5/187812 "2010-04-30T19:46:05Z")

</div>

Hi, When I try to add generator to controller, I got error as “Missing the Rails 2.3.5 gem. Please gem install -v=2.3.5 rails, update your RAILS\_GEM\_VERSION setting in config/environment.rb for the Rails version you …

---

## [.build for has\_one](https://www.ruby-forum.com/t/build-for-has-one/187764)

<div class="topic-metadata">

**Author:** [@lmcdougall](https://www.ruby-forum.com/u/lmcdougall)\
**Replies:** 1\
**Last updated:** [April 30, 2010, 7:32pm UTC](https://www.ruby-forum.com/t/build-for-has-one/187764 "2010-04-30T19:32:16Z")

</div>

I am having problems understanding this concept. I am guessing that, for has\_one/belongs\_to one should use something different from .build. for example, if I have the following class Student \< ActiveRecord::Base ha…

---

## [Method url](https://www.ruby-forum.com/t/method-url/187871)

<div class="topic-metadata">

**Author:** [@kevid](https://www.ruby-forum.com/u/kevid)\
**Replies:** 1\
**Last updated:** [April 30, 2010, 6:56pm UTC](https://www.ruby-forum.com/t/method-url/187871 "2010-04-30T18:56:55Z")

</div>

Hi all, Does anyone knows how to access a method’s url within the method for instance; def index – – #some code that will append a parameter to the url that will call the show method. show end def show url = (s…

---

## [How to install rails gems 2.3.5 on windows](https://www.ruby-forum.com/t/how-to-install-rails-gems-2-3-5-on-windows/197229)

<div class="topic-metadata">

**Author:** [@pradeep\_236](https://www.ruby-forum.com/u/pradeep_236)\
**Replies:** 10\
**Last updated:** [April 30, 2010, 6:45pm UTC](https://www.ruby-forum.com/t/how-to-install-rails-gems-2-3-5-on-windows/197229 "2010-04-30T18:45:40Z")

</div>

Hi, When I try to add generator to controller, I got error as “Missing the Rails 2.3.5 gem. Please gem install -v=2.3.5 rails, update your RAILS\_GEM\_VERSION setting in config/environment.rb for the Rails version you …

---

## [Send\_data =\> invalid byte sequence in US-ASCII](https://www.ruby-forum.com/t/send-data-invalid-byte-sequence-in-us-ascii/187831)

<div class="topic-metadata">

**Author:** [@fearless\_fool](https://www.ruby-forum.com/u/fearless_fool)\
**Replies:** 2\
**Last updated:** [April 30, 2010, 5:22pm UTC](https://www.ruby-forum.com/t/send-data-invalid-byte-sequence-in-us-ascii/187831 "2010-04-30T17:22:49Z")

</div>

I’m trying to display a generated .png plot via send\_data(), but it results in a server error “invalid byte sequence in US-ASCII” error. I’m pretty sure this means that I need to specify the encoding somewhere, but I …

---

## [Accessing one controller from another](https://www.ruby-forum.com/t/accessing-one-controller-from-another/187863)

<div class="topic-metadata">

**Author:** [@thebarge](https://www.ruby-forum.com/u/thebarge)\
**Replies:** 5\
**Last updated:** [April 30, 2010, 5:19pm UTC](https://www.ruby-forum.com/t/accessing-one-controller-from-another/187863 "2010-04-30T17:19:09Z")

</div>

I have a posts controller and a pages controller for ‘static’ pages ie my homepage I want to have the latest post shown on the homepage… accessing the posts controller from within the pages controller Is there a way …

---

## [Cant run rake on hostmonster](https://www.ruby-forum.com/t/cant-run-rake-on-hostmonster/187827)

<div class="topic-metadata">

**Author:** [@nirosh](https://www.ruby-forum.com/u/nirosh)\
**Replies:** 5\
**Last updated:** [April 30, 2010, 4:52pm UTC](https://www.ruby-forum.com/t/cant-run-rake-on-hostmonster/187827 "2010-04-30T16:52:45Z")

</div>

hi i have setup my rails env on hostmonster but i cant run rake task.error is populated when try to run that the error is "Access denied for user ". But i can able to login into the mysql with the same user name pass…

---

## [I18n 0.4.0.beta released](https://www.ruby-forum.com/t/i18n-0-4-0-beta-released/187865)

<div class="topic-metadata">

**Author:** [@josevalim](https://www.ruby-forum.com/u/josevalim)\
**Replies:** 0\
**Last updated:** [April 30, 2010, 4:26pm UTC](https://www.ruby-forum.com/t/i18n-0-4-0-beta-released/187865 "2010-04-30T16:26:59Z")

</div>

Hey folks, I18n 0.4.0.beta was released. The major changes were: Decouple the external separator (used when storing translations) from the internal separator in Fast and ActiveRecord backends Decouple the external …

---

## [Add share on Facebook link](https://www.ruby-forum.com/t/add-share-on-facebook-link/187861)

<div class="topic-metadata">

**Author:** [@rutisyrz](https://www.ruby-forum.com/u/rutisyrz)\
**Replies:** 0\
**Last updated:** [April 30, 2010, 3:35pm UTC](https://www.ruby-forum.com/t/add-share-on-facebook-link/187861 "2010-04-30T15:35:22Z")

</div>

dear all, I want to add a link that is - “Share on Facebook” using which a user can share a link of a particular article with his friends on FB. Kindly suggest proper tutorial for the same… Thanking you.

---

## [Content\_for & Capture helper](https://www.ruby-forum.com/t/content-for-capture-helper/187860)

<div class="topic-metadata">

**Author:** [@nike](https://www.ruby-forum.com/u/nike)\
**Replies:** 0\
**Last updated:** [April 30, 2010, 3:17pm UTC](https://www.ruby-forum.com/t/content-for-capture-helper/187860 "2010-04-30T15:17:12Z")

</div>

Hi, Whether content\_for and capture helpers will work on ajax updates or in ajax pagination. Please help us.

---

## [Encrypting files in Rails](https://www.ruby-forum.com/t/encrypting-files-in-rails/187841)

<div class="topic-metadata">

**Author:** [@demec](https://www.ruby-forum.com/u/demec)\
**Replies:** 2\
**Last updated:** [April 30, 2010, 3:09pm UTC](https://www.ruby-forum.com/t/encrypting-files-in-rails/187841 "2010-04-30T15:09:05Z")

</div>

So far the tutorials I’ve seen are for encrypting text and then decrypting it back. So for example you have a plaintext = “some text” you encrypt it and then you decrypt it depending on how you encrypted it. What I…

---

## [Using delicious api to retrieve favorite bookmarks](https://www.ruby-forum.com/t/using-delicious-api-to-retrieve-favorite-bookmarks/187840)

<div class="topic-metadata">

**Author:** [@alternative451](https://www.ruby-forum.com/u/alternative451)\
**Replies:** 1\
**Last updated:** [April 30, 2010, 3:01pm UTC](https://www.ruby-forum.com/t/using-delicious-api-to-retrieve-favorite-bookmarks/187840 "2010-04-30T15:01:29Z")

</div>

hello there, i develop a litle rails api and i want list most favorite bookmarks from delicious. i’m looking for a request using yahoo id (i have yahoo api key and others stuff needed) Someone already use delicious …

---

## [Javascript + string in HTML](https://www.ruby-forum.com/t/javascript-string-in-html/187855)

<div class="topic-metadata">

**Author:** [@Abhishek\_shukla](https://www.ruby-forum.com/u/Abhishek_shukla)\
**Replies:** 0\
**Last updated:** [April 30, 2010, 1:54pm UTC](https://www.ruby-forum.com/t/javascript-string-in-html/187855 "2010-04-30T13:54:10Z")

</div>

Hello the following I am getting for the server How do i append it to my view in a html format. response = { “data”: “\<div class=“datatable-column-header col1”\>Name\</div\>” } currently I am doing the following someth…

---

## [Looking for a technical term](https://www.ruby-forum.com/t/looking-for-a-technical-term/187833)

<div class="topic-metadata">

**Author:** [@msmsms](https://www.ruby-forum.com/u/msmsms)\
**Replies:** 2\
**Last updated:** [April 30, 2010, 1:48pm UTC](https://www.ruby-forum.com/t/looking-for-a-technical-term/187833 "2010-04-30T13:48:53Z")

</div>

Hi, thank you for reading my post. I’ve got s simple question: What’s the correct technical term for data which IS NOT calculated and data which IS calculated regarding database design. Simple example: saving a user …

---

## [I need to save image from RAW\_POST\_DATA](https://www.ruby-forum.com/t/i-need-to-save-image-from-raw-post-data/187851)

<div class="topic-metadata">

**Author:** [@kouzma](https://www.ruby-forum.com/u/kouzma)\
**Replies:** 0\
**Last updated:** [April 30, 2010, 12:54pm UTC](https://www.ruby-forum.com/t/i-need-to-save-image-from-raw-post-data/187851 "2010-04-30T12:54:28Z")

</div>

I load an image with FLASH-module. So, it comes to the server as RAW\_POST\_DATA I need to save it in many sizes. When I loaded images in attach I used “paperclip”. But I think, that in current situation “paperclip” an…

---

## [Setting a message on a model -without- errors.add\_to\_base](https://www.ruby-forum.com/t/setting-a-message-on-a-model-without-errors-add-to-base/187825)

<div class="topic-metadata">

**Author:** [@Phoenix\_R](https://www.ruby-forum.com/u/Phoenix_R)\
**Replies:** 1\
**Last updated:** [April 30, 2010, 11:38am UTC](https://www.ruby-forum.com/t/setting-a-message-on-a-model-without-errors-add-to-base/187825 "2010-04-30T11:38:57Z")

</div>

I’m trying my best to follow the skinny controller/fat model concept, and I’ve got a series of callbacks (that I’m about to move into observers) running on a few models. Based on what these callbacks do to the data (…

---

## [Render\_to\_string + json problem](https://www.ruby-forum.com/t/render-to-string-json-problem/187846)

<div class="topic-metadata">

**Author:** [@Abhishek\_shukla](https://www.ruby-forum.com/u/Abhishek_shukla)\
**Replies:** 0\
**Last updated:** [April 30, 2010, 9:52am UTC](https://www.ruby-forum.com/t/render-to-string-json-problem/187846 "2010-04-30T09:52:59Z")

</div>

I am stucked at some major issue with the AjaxForm and render\_to\_string. I am using AjaxForm for uploading images with other details since the Ajax Upload library isn’t even using Ajax. So once the form is submitted i …

---

## [Missing source file (valid in console, errors when accessed online)](https://www.ruby-forum.com/t/missing-source-file-valid-in-console-errors-when-accessed-online/187843)

<div class="topic-metadata">

**Author:** [@webo](https://www.ruby-forum.com/u/webo)\
**Replies:** 0\
**Last updated:** [April 30, 2010, 9:06am UTC](https://www.ruby-forum.com/t/missing-source-file-valid-in-console-errors-when-accessed-online/187843 "2010-04-30T09:06:09Z")

</div>

Environment info: Ruby 1.9.1-p376 Rails 2.3.5 Apache2 with Passenger mod I installed the nokogiri gem like I would any other gem however when I require it at the top of my controller and access it through apache, I …

---

## [Want to destroy session on browser close for logout](https://www.ruby-forum.com/t/want-to-destroy-session-on-browser-close-for-logout/187806)

<div class="topic-metadata">

**Author:** [@rahul\_m](https://www.ruby-forum.com/u/rahul_m)\
**Replies:** 4\
**Last updated:** [April 30, 2010, 7:20am UTC](https://www.ruby-forum.com/t/want-to-destroy-session-on-browser-close-for-logout/187806 "2010-04-30T07:20:49Z")

</div>

hii i have my ror app website want to do destroy session on browser close , please help how can i destroy… i have used javascript function on body unload function bunload() { document.location.href=“del.rb”; } …

---

## [Problem with cache clearance](https://www.ruby-forum.com/t/problem-with-cache-clearance/187838)

<div class="topic-metadata">

**Author:** [@murfhy](https://www.ruby-forum.com/u/murfhy)\
**Replies:** 0\
**Last updated:** [April 30, 2010, 5:54am UTC](https://www.ruby-forum.com/t/problem-with-cache-clearance/187838 "2010-04-30T05:54:32Z")

</div>

can any one help me. i created one application to track the people opening the mails which is send by me from my application. but one problem which became an obstacle in my path is when any use say tony open…

---

## [Installation prob. with authlogic-2.1.3 on Win-XP-Pro/SP3](https://www.ruby-forum.com/t/installation-prob-with-authlogic-2-1-3-on-win-xp-pro-sp3/187819)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 2\
**Last updated:** [April 30, 2010, 4:58am UTC](https://www.ruby-forum.com/t/installation-prob-with-authlogic-2-1-3-on-win-xp-pro-sp3/187819 "2010-04-30T04:58:00Z")

</div>

Hi, I am following the instructions on GitHub - binarylogic/authlogic\_example: An example rails app using the Authlogic authentication library, specifically, the Tutorial “How to create this app …” section: Step 1 o…

---

## [View (or template) to helper to view ... magic](https://www.ruby-forum.com/t/view-or-template-to-helper-to-view-magic/187830)

<div class="topic-metadata">

**Author:** [@pedz](https://www.ruby-forum.com/u/pedz)\
**Replies:** 0\
**Last updated:** [April 30, 2010, 1:27am UTC](https://www.ruby-forum.com/t/view-or-template-to-helper-to-view-magic/187830 "2010-04-30T01:27:03Z")

</div>

I early Rails 2, I wrote code in my show.erb.html file like this: \<% display\_qs\_body(binding) %\> display\_qs\_body was in a helper file and it passed binding along and used (as I recall) concat(binding, “text”). conc…

---

## [Rails and mssql](https://www.ruby-forum.com/t/rails-and-mssql/187763)

<div class="topic-metadata">

**Author:** [@rhossi](https://www.ruby-forum.com/u/rhossi)\
**Replies:** 1\
**Last updated:** [April 30, 2010, 12:08am UTC](https://www.ruby-forum.com/t/rails-and-mssql/187763 "2010-04-30T00:08:17Z")

</div>

We are developing a solution for a client. Today he is using ASP.NET with SQL Server 2008 and wanna use SQL Server 2008 as database for the Rails application as well. So, they were asking us why Active Record uses uni…

---

## [Upload photos to facebook with facebooker](https://www.ruby-forum.com/t/upload-photos-to-facebook-with-facebooker/186960)

<div class="topic-metadata">

**Author:** [@melissa\_moreno](https://www.ruby-forum.com/u/melissa_moreno)\
**Replies:** 1\
**Last updated:** [April 29, 2010, 11:05pm UTC](https://www.ruby-forum.com/t/upload-photos-to-facebook-with-facebooker/186960 "2010-04-29T23:05:04Z")

</div>

hi i’m trying to upload photos to facebook using facebooker, in the facebooker api there’s an example code, i try it and i have this error (in the view): NO METHOD ERROR undefined method ‘photos\_upload’ here is th…

---

## [Dom:loaded in application.js and view](https://www.ruby-forum.com/t/dom-loaded-in-application-js-and-view/187772)

<div class="topic-metadata">

**Author:** [@badnaam](https://www.ruby-forum.com/u/badnaam)\
**Replies:** 1\
**Last updated:** [April 29, 2010, 10:15pm UTC](https://www.ruby-forum.com/t/dom-loaded-in-application-js-and-view/187772 "2010-04-29T22:15:06Z")

</div>

I register ajax listeners in my application.js in the dom:loaded function. In some of my views I also need to use the dom:loaded event to do other javascript stuff. Since I already have my dom:loaded in application.js…

---

## [Kaboodle Bookmarklet - Method?](https://www.ruby-forum.com/t/kaboodle-bookmarklet-method/187817)

<div class="topic-metadata">

**Author:** [@brianp](https://www.ruby-forum.com/u/brianp)\
**Replies:** 0\
**Last updated:** [April 29, 2010, 8:31pm UTC](https://www.ruby-forum.com/t/kaboodle-bookmarklet-method/187817 "2010-04-29T20:31:41Z")

</div>

Hey, I was just wondering if anyone had a more in depth concept on how the Kaboodle Bookmarklet works or how to mimic the concept. I know there would be some sore of page scraping. I’ve tried the Kaboodle bookmarklet…

---

## [Habtm relation, cannot populate join table](https://www.ruby-forum.com/t/habtm-relation-cannot-populate-join-table/187304)

<div class="topic-metadata">

**Author:** [@veena](https://www.ruby-forum.com/u/veena)\
**Replies:** 3\
**Last updated:** [April 29, 2010, 7:55pm UTC](https://www.ruby-forum.com/t/habtm-relation-cannot-populate-join-table/187304 "2010-04-29T19:55:58Z")

</div>

Hai friends, I hav two models related with habtm class User \< ActiveRecord::Base has\_and\_belongs\_to\_many :station, :join\_table =\> “stations\_users”, :foreign\_key =\> “user\_id”, :association\_foreign\_key =\> “station\_id…

---

## [WEBrick serving SVG under https](https://www.ruby-forum.com/t/webrick-serving-svg-under-https/187815)

<div class="topic-metadata">

**Author:** [@bob](https://www.ruby-forum.com/u/bob)\
**Replies:** 0\
**Last updated:** [April 29, 2010, 7:38pm UTC](https://www.ruby-forum.com/t/webrick-serving-svg-under-https/187815 "2010-04-29T19:38:59Z")

</div>

I have been developing some interactive SVG running under WEBrick. Works fine until the site goes under SSL. At that point my Javascript code fails to return a document using either contentDocument, or getSVGDocument(…

---

## [How to update rails manually](https://www.ruby-forum.com/t/how-to-update-rails-manually/187790)

<div class="topic-metadata">

**Author:** [@Daystrom](https://www.ruby-forum.com/u/Daystrom)\
**Replies:** 3\
**Last updated:** [April 29, 2010, 7:27pm UTC](https://www.ruby-forum.com/t/how-to-update-rails-manually/187790 "2010-04-29T19:27:16Z")

</div>

Hi, I have a server behind a firewall and I can’t hit the Internet from there. I can remote control the server, but not download anything from the Internet.That means the standard “gem install rails -v 2.3.4” command…

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

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