# Rails

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

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

---

## ["Attachment\_fu" not resizing the images properly](https://www.ruby-forum.com/t/attachment-fu-not-resizing-the-images-properly/179136)

<div class="topic-metadata">

**Author:** [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Replies:** 2\
**Last updated:** [November 19, 2009, 4:48am UTC](https://www.ruby-forum.com/t/attachment-fu-not-resizing-the-images-properly/179136 "2009-11-19T04:48:00Z")

</div>

Hi, I am using “attachment\_fu” plugin for file upload. I am able to upload photos also. I have a problem that I have given the resize size to “400 X 400”. But whenever I am uploading the photo it is resizing the imag…

---

## [Noob - Help with Radiant installation](https://www.ruby-forum.com/t/noob-help-with-radiant-installation/179113)

<div class="topic-metadata">

**Author:** [@spinhoo](https://www.ruby-forum.com/u/spinhoo)\
**Replies:** 2\
**Last updated:** [November 18, 2009, 11:03pm UTC](https://www.ruby-forum.com/t/noob-help-with-radiant-installation/179113 "2009-11-18T23:03:24Z")

</div>

Hi, I have just finished installing the Radiant as per the instructions on this link - http://wiki.github.com/radiant/radiant/installing-on-site5 I ran into a number of errors primarily due to my thickness and finall…

---

## [RubyGems Problem](https://www.ruby-forum.com/t/rubygems-problem/179160)

<div class="topic-metadata">

**Author:** [@mfeadler](https://www.ruby-forum.com/u/mfeadler)\
**Replies:** 4\
**Last updated:** [November 18, 2009, 9:23pm UTC](https://www.ruby-forum.com/t/rubygems-problem/179160 "2009-11-18T21:23:16Z")

</div>

Hello, I am having problems updating anything with RubyGems. For example I get the following errors when trying to do anything using a remote server: studiog5:~ Matt$ gem update â€”system Updating installed gems… ER…

---

## [Parse xml through "xml/libxml"](https://www.ruby-forum.com/t/parse-xml-through-xml-libxml/179036)

<div class="topic-metadata">

**Author:** [@chinna\_gogulapati](https://www.ruby-forum.com/u/chinna_gogulapati)\
**Replies:** 2\
**Last updated:** [November 18, 2009, 7:40pm UTC](https://www.ruby-forum.com/t/parse-xml-through-xml-libxml/179036 "2009-11-18T19:40:06Z")

</div>

Hi All, Can any one suggest me how to parse following xml in controller, i need all the 's for each . I have installed “xml/libxml” gem on my installation. \<soap:Envelope xmlns:soap=“http://schemas.xmlsoap.org/soap/e…

---

## [Error en upload image into server](https://www.ruby-forum.com/t/error-en-upload-image-into-server/179108)

<div class="topic-metadata">

**Author:** [@laura\_cordoba](https://www.ruby-forum.com/u/laura_cordoba)\
**Replies:** 1\
**Last updated:** [November 18, 2009, 7:20pm UTC](https://www.ruby-forum.com/t/error-en-upload-image-into-server/179108 "2009-11-18T19:20:33Z")

</div>

Hello, I have a problem with upload file into server, the server machine have Debian and the application is running with Apache2. My problem is that I can’t upload a photo in the site (the site is running in the 80 po…

---

## [Routing Error](https://www.ruby-forum.com/t/routing-error/179132)

<div class="topic-metadata">

**Author:** [@divyanshutri](https://www.ruby-forum.com/u/divyanshutri)\
**Replies:** 1\
**Last updated:** [November 18, 2009, 7:19pm UTC](https://www.ruby-forum.com/t/routing-error/179132 "2009-11-18T19:19:12Z")

</div>

hey, this problem occour whn i want to login “localhost:3000/admin” problem Routing Error No route matches “/login/add\_user” with {:method=\>:get}

---

## [Render\_componont and flash\[:notice\]](https://www.ruby-forum.com/t/render-componont-and-flash-notice/179106)

<div class="topic-metadata">

**Author:** [@benol](https://www.ruby-forum.com/u/benol)\
**Replies:** 2\
**Last updated:** [November 18, 2009, 7:16pm UTC](https://www.ruby-forum.com/t/render-componont-and-flash-notice/179106 "2009-11-18T19:16:30Z")

</div>

Hi, When I install http://github.com/lackac/render\_component/tree/rails-edge all my flash\[:notice\] do not appear on www. I don’t know why :confused: Any ideas?

---

## [I18n full\_message testing problem](https://www.ruby-forum.com/t/i18n-full-message-testing-problem/179094)

<div class="topic-metadata">

**Author:** [@benol](https://www.ruby-forum.com/u/benol)\
**Replies:** 1\
**Last updated:** [November 18, 2009, 7:15pm UTC](https://www.ruby-forum.com/t/i18n-full-message-testing-problem/179094 "2009-11-18T19:15:12Z")

</div>

Hi. Rails version 2.3.4 ----------- Running a functional test: -------------- Exception: translation missing: pl, activerecord, errors, models, user, attributes, email, email\_short app/views/users/new.pl.html.erb:3 …

---

## [Where to place css files](https://www.ruby-forum.com/t/where-to-place-css-files/179140)

<div class="topic-metadata">

**Author:** [@chinna\_gogulapati](https://www.ruby-forum.com/u/chinna_gogulapati)\
**Replies:** 2\
**Last updated:** [November 18, 2009, 7:04pm UTC](https://www.ruby-forum.com/t/where-to-place-css-files/179140 "2009-11-18T19:04:31Z")

</div>

Hi All, I Have a .css file to effect those styles to my view where do i need to place in Rails directory stucture and how can i use the .css file name in my view My view file is in “app\\views\\home”. Can any one plea…

---

## [Topic: acts\_as\_ferret with 'did you mean'](https://www.ruby-forum.com/t/topic-acts-as-ferret-with-did-you-mean/179152)

<div class="topic-metadata">

**Author:** [@pravinhmhatre](https://www.ruby-forum.com/u/pravinhmhatre)\
**Replies:** 0\
**Last updated:** [November 18, 2009, 4:10pm UTC](https://www.ruby-forum.com/t/topic-acts-as-ferret-with-did-you-mean/179152 "2009-11-18T16:10:51Z")

</div>

Hello, I have implemented ferret search in my application and now I want to implement ‘did you mean’ functionality. e.g. if I type ‘ROEM’ in search box it will return results with ‘ROEM’ but will display a message st…

---

## [ActionWebService and Rails 2.0 RC2](https://www.ruby-forum.com/t/actionwebservice-and-rails-2-0-rc2/121680)

<div class="topic-metadata">

**Author:** [@basvanwesting](https://www.ruby-forum.com/u/basvanwesting)\
**Replies:** 14\
**Last updated:** [November 18, 2009, 3:58pm UTC](https://www.ruby-forum.com/t/actionwebservice-and-rails-2-0-rc2/121680 "2009-11-18T15:58:43Z")

</div>

Hi, I donâ€™t really understand how action\_web\_service is configured for Rails 2.0 RC2. Simply installing â€œgem install actionwebserviceâ€ as stated by DHH doesnâ€™t do the trick. When I do “require ‘action\_web\_se…

---

## [Issue with form\_tag](https://www.ruby-forum.com/t/issue-with-form-tag/179138)

<div class="topic-metadata">

**Author:** [@Rajeswar\_reddy\_G](https://www.ruby-forum.com/u/Rajeswar_reddy_G)\
**Replies:** 3\
**Last updated:** [November 18, 2009, 1:46pm UTC](https://www.ruby-forum.com/t/issue-with-form-tag/179138 "2009-11-18T13:46:28Z")

</div>

Hi, I am getting error, while executing below code. please let me know the issue. Add new phonenumber \<% form\_tag '/create' do %\> PersonName: \<%= text\_field 'phonenumber', 'personname' %\> PhoneNumber: \<%= tex…

---

## [Need info on form\_tag](https://www.ruby-forum.com/t/need-info-on-form-tag/179147)

<div class="topic-metadata">

**Author:** [@Rajeswar\_reddy\_G](https://www.ruby-forum.com/u/Rajeswar_reddy_G)\
**Replies:** 1\
**Last updated:** [November 18, 2009, 1:45pm UTC](https://www.ruby-forum.com/t/need-info-on-form-tag/179147 "2009-11-18T13:45:47Z")

</div>

Hi, I below coded saved in new.rhtml(C:\\RubyForRails\\railsapps\\phonebook\\app\\views\\phonenumber) file and executed . But while accessing getting below issue. \*\*\*\*\*\*\*\*\*\*\*\*\*\* new.rhtml code\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* Add new ph…

---

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

<div class="topic-metadata">

**Author:** [@Rajeswar\_reddy\_G](https://www.ruby-forum.com/u/Rajeswar_reddy_G)\
**Replies:** 1\
**Last updated:** [November 18, 2009, 1:44pm UTC](https://www.ruby-forum.com/t/form-tag-issue/179146 "2009-11-18T13:44:56Z")

</div>

Hi, I below coded saved in new.rhtml(C:\\RubyForRails\\railsapps\\phonebook\\app\\views\\phonenumber) file and executed . But while accessing getting below issue. Add new phonenumber \<% form\_tag '/create' do %\> PersonNa…

---

## [Confusing about before\_filter do |controller|](https://www.ruby-forum.com/t/confusing-about-before-filter-do-controller/179074)

<div class="topic-metadata">

**Author:** [@rubyernewbie](https://www.ruby-forum.com/u/rubyernewbie)\
**Replies:** 1\
**Last updated:** [November 18, 2009, 9:01am UTC](https://www.ruby-forum.com/t/confusing-about-before-filter-do-controller/179074 "2009-11-18T09:01:12Z")

</div>

so could I use a code like before\_filter do |controller| controller.god = “Mygod” end and used god or @god veriable in layout? it seems @god ok. but why it’s possible?

---

## [Something went wrong](https://www.ruby-forum.com/t/something-went-wrong/179070)

<div class="topic-metadata">

**Author:** [@divyanshutri](https://www.ruby-forum.com/u/divyanshutri)\
**Replies:** 13\
**Last updated:** [November 18, 2009, 8:31am UTC](https://www.ruby-forum.com/t/something-went-wrong/179070 "2009-11-18T08:31:11Z")

</div>

hi any one cn explain and solve the problem… whn i enter the "localhost:3000/admin " in the url at that time errow come … due to this problem i m not able the login in spree… ========================================…

---

## [Can't install gem ruby-pg](https://www.ruby-forum.com/t/cant-install-gem-ruby-pg/179122)

<div class="topic-metadata">

**Author:** [@hangingclowns](https://www.ruby-forum.com/u/hangingclowns)\
**Replies:** 1\
**Last updated:** [November 18, 2009, 5:29am UTC](https://www.ruby-forum.com/t/cant-install-gem-ruby-pg/179122 "2009-11-18T05:29:55Z")

</div>

I’m running ruby 1.9.1 and need a gem sitting here: I do: \[root@www admin\]# gem install maxime-ruby-pg-for-ruby-1.9.1rc2 ERROR: could not find gem maxime-ruby-pg-for-ruby-1.9.1rc2 locally or in a repository \[root…

---

## [Image resizing by user](https://www.ruby-forum.com/t/image-resizing-by-user/179087)

<div class="topic-metadata">

**Author:** [@micktaiwan](https://www.ruby-forum.com/u/micktaiwan)\
**Replies:** 2\
**Last updated:** [November 18, 2009, 12:34am UTC](https://www.ruby-forum.com/t/image-resizing-by-user/179087 "2009-11-18T00:34:40Z")

</div>

Hi, Do you know any plugin that would let the user upload an image and then present the uploaded image on the page, so the user could resize and scale the image himself ? Thanks, Mickael.

---

## [Open view template in another browser](https://www.ruby-forum.com/t/open-view-template-in-another-browser/179103)

<div class="topic-metadata">

**Author:** [@rafaelrosafu](https://www.ruby-forum.com/u/rafaelrosafu)\
**Replies:** 2\
**Last updated:** [November 17, 2009, 9:06pm UTC](https://www.ruby-forum.com/t/open-view-template-in-another-browser/179103 "2009-11-17T21:06:08Z")

</div>

Hi all, from inside my controller I need to do something like the following: render :file =\>‘my\_view’,:target=\>‘blank’ How could I do this? Thanks

---

## [Question on spliting Only date](https://www.ruby-forum.com/t/question-on-spliting-only-date/179039)

<div class="topic-metadata">

**Author:** [@newb](https://www.ruby-forum.com/u/newb)\
**Replies:** 8\
**Last updated:** [November 17, 2009, 8:22pm UTC](https://www.ruby-forum.com/t/question-on-spliting-only-date/179039 "2009-11-17T20:22:45Z")

</div>

Hello i would like to get only date from this ActiveSupport::TimeWithZone class 2009-11-16 11:00:51. i want to get only 2009-11-16 since i want to use like below @groups = GroupsInfo.find(:all, :conditions=\>\[“date \>=…

---

## [I18n full\_message testing problem](https://www.ruby-forum.com/t/i18n-full-message-testing-problem/179093)

<div class="topic-metadata">

**Author:** [@benol](https://www.ruby-forum.com/u/benol)\
**Replies:** 0\
**Last updated:** [November 17, 2009, 2:47pm UTC](https://www.ruby-forum.com/t/i18n-full-message-testing-problem/179093 "2009-11-17T14:47:11Z")

</div>

Hi. Rails version 2.3.4 ----------- Running a functional test: -------------- Exception: translation missing: pl, activerecord, errors, models, user, attributes, email, email\_short app/views/users/new.pl.html.erb:3 …

---

## [Not toable to login as admin](https://www.ruby-forum.com/t/not-toable-to-login-as-admin/179092)

<div class="topic-metadata">

**Author:** [@divyanshutri](https://www.ruby-forum.com/u/divyanshutri)\
**Replies:** 0\
**Last updated:** [November 17, 2009, 1:39pm UTC](https://www.ruby-forum.com/t/not-toable-to-login-as-admin/179092 "2009-11-17T13:39:42Z")

</div>

hi any one cn tell me the solution of the problem…!!! -/!\\ FAILSAFE /!\\ Tue Nov 17 17:42:14 +0530 2009 Status: 500 Internal Server Error no such file to load – sqlite3 /usr/lib/ruby/site\_ruby/1.8/rubygems/custom\_re…

---

## [Parse xml through "hpricot"](https://www.ruby-forum.com/t/parse-xml-through-hpricot/179080)

<div class="topic-metadata">

**Author:** [@chinna\_gogulapati](https://www.ruby-forum.com/u/chinna_gogulapati)\
**Replies:** 0\
**Last updated:** [November 17, 2009, 9:55am UTC](https://www.ruby-forum.com/t/parse-xml-through-hpricot/179080 "2009-11-17T09:55:49Z")

</div>

Hi All, The follwoing is my xml \<soap:Envelope xmlns:soap=“http://schemas.xmlsoap.org/soap/envelope/”\> soap:Body . . . . . . . \</soap:Body\> \</soap:Envelope\> by the following code i could reach …

---

## [NoMethodError: undefined method \`fformat' - rake aborted!](https://www.ruby-forum.com/t/nomethoderror-undefined-method-fformat-rake-aborted/155052)

<div class="topic-metadata">

**Author:** [@erubin](https://www.ruby-forum.com/u/erubin)\
**Replies:** 3\
**Last updated:** [November 17, 2009, 3:32am UTC](https://www.ruby-forum.com/t/nomethoderror-undefined-method-fformat-rake-aborted/155052 "2009-11-17T03:32:12Z")

</div>

Hello, I have installed postgresql 8.3 in linux Mint 6 r1 (ubuntu 8.10) and the ruby from ubuntu repositories, then “gem install rails -y” I’ve installed “gem -install postgres-pr -y” and configured the database.yml …

---

## [Form errors (highlight)](https://www.ruby-forum.com/t/form-errors-highlight/179062)

<div class="topic-metadata">

**Author:** [@introvert](https://www.ruby-forum.com/u/introvert)\
**Replies:** 0\
**Last updated:** [November 16, 2009, 9:05pm UTC](https://www.ruby-forum.com/t/form-errors-highlight/179062 "2009-11-16T21:05:02Z")

</div>

Hello, How can I force the rails so that it would know which fields to highlight when I use the selectbox for posting bad id to the server, for instance: Review Model: class Review \< ActiveRecord::Base belongs\_to :…

---

## [Rails Hosting](https://www.ruby-forum.com/t/rails-hosting/179058)

<div class="topic-metadata">

**Author:** [@di3go](https://www.ruby-forum.com/u/di3go)\
**Replies:** 2\
**Last updated:** [November 16, 2009, 8:57pm UTC](https://www.ruby-forum.com/t/rails-hosting/179058 "2009-11-16T20:57:08Z")

</div>

Hello, I need a good vps rails hosting, it need to support mercurial, git and some subdomains. Anyone have one to recomend!?

---

## [Help me understand how to filter complex data](https://www.ruby-forum.com/t/help-me-understand-how-to-filter-complex-data/178968)

<div class="topic-metadata">

**Author:** [@upisdown](https://www.ruby-forum.com/u/upisdown)\
**Replies:** 1\
**Last updated:** [November 16, 2009, 6:18pm UTC](https://www.ruby-forum.com/t/help-me-understand-how-to-filter-complex-data/178968 "2009-11-16T18:18:20Z")

</div>

So I am working on this project but I am having trouble with a find statement. My code is mostly working but it falls apart when more entries are added. I am working on a submission manager. I want a table of submissi…

---

## [Authlogic fails on existing accounts when crypted\_password is blank](https://www.ruby-forum.com/t/authlogic-fails-on-existing-accounts-when-crypted-password-is-blank/178952)

<div class="topic-metadata">

**Author:** [@Todd\_ASJacobs](https://www.ruby-forum.com/u/Todd_ASJacobs)\
**Replies:** 1\
**Last updated:** [November 16, 2009, 6:09pm UTC](https://www.ruby-forum.com/t/authlogic-fails-on-existing-accounts-when-crypted-password-is-blank/178952 "2009-11-16T18:09:37Z")

</div>

I recently ran a migration to add the following to an existing user model: t.string "crypted\_password" t.string "password\_salt" t.string "persistence\_token" There is an existing (cleartext) password field, but a…

---

## [Rails model design](https://www.ruby-forum.com/t/rails-model-design/178977)

<div class="topic-metadata">

**Author:** [@introvert](https://www.ruby-forum.com/u/introvert)\
**Replies:** 2\
**Last updated:** [November 16, 2009, 3:27pm UTC](https://www.ruby-forum.com/t/rails-model-design/178977 "2009-11-16T15:27:52Z")

</div>

Hello. I have a Plan model which has a type attribute and there should be more options for the setting by which I want to display different records (similar as categories) I have a few concerns which would be the bes…

---

## [Validate associations](https://www.ruby-forum.com/t/validate-associations/179025)

<div class="topic-metadata">

**Author:** [@introvert](https://www.ruby-forum.com/u/introvert)\
**Replies:** 1\
**Last updated:** [November 16, 2009, 2:10pm UTC](https://www.ruby-forum.com/t/validate-associations/179025 "2009-11-16T14:10:57Z")

</div>

Hello, I have a simple Review model (article has many reviews): class Review \< ActiveRecord::Base belongs\_to :article validates\_presence\_of :article\_id validates\_associated :article end However, if I set the artic…

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

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