# Rails

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

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

---

## [SOAP client in Ruby/Rails](https://www.ruby-forum.com/t/soap-client-in-ruby-rails/138438)

<div class="topic-metadata">

**Author:** [@kelleysislander](https://www.ruby-forum.com/u/kelleysislander)\
**Replies:** 3\
**Last updated:** [July 2, 2008, 4:30pm UTC](https://www.ruby-forum.com/t/soap-client-in-ruby-rails/138438 "2008-07-02T16:30:18Z")

</div>

Hi all. I have a need to build a SOAP client using Ruby and Rails. I’m accessing a document/literal style SOAP service. I’ve been poring over documentation (well, there really doesn’t seem to be any, so that’s a littl…

---

## [Which SessionStore to Use?](https://www.ruby-forum.com/t/which-sessionstore-to-use/142010)

<div class="topic-metadata">

**Author:** [@johnk](https://www.ruby-forum.com/u/johnk)\
**Replies:** 0\
**Last updated:** [July 2, 2008, 4:28pm UTC](https://www.ruby-forum.com/t/which-sessionstore-to-use/142010 "2008-07-02T16:28:32Z")

</div>

I know it all depends. :slight\_smile: I run a site which is averaging 150-200 request/minute or 200,000 pageviews per day on average. The load is handled over two webservers on Joyent. I am presently using the defau…

---

## [Scaffolding: Create, Edit, Destroy in admin area](https://www.ruby-forum.com/t/scaffolding-create-edit-destroy-in-admin-area/141902)

<div class="topic-metadata">

**Author:** [@christoph](https://www.ruby-forum.com/u/christoph)\
**Replies:** 8\
**Last updated:** [July 2, 2008, 4:26pm UTC](https://www.ruby-forum.com/t/scaffolding-create-edit-destroy-in-admin-area/141902 "2008-07-02T16:26:46Z")

</div>

Hi Community, I’m currently trying to create a blog software in rails, but I’ve got a problem: I generated scaffolding for my articles and only want administrators to write, edit or delete articles. So I wanted to mo…

---

## [Return to Request Page after login](https://www.ruby-forum.com/t/return-to-request-page-after-login/142006)

<div class="topic-metadata">

**Author:** [@mitch\_newbie](https://www.ruby-forum.com/u/mitch_newbie)\
**Replies:** 4\
**Last updated:** [July 2, 2008, 4:24pm UTC](https://www.ruby-forum.com/t/return-to-request-page-after-login/142006 "2008-07-02T16:24:20Z")

</div>

I have a login form on the left column of a site I am building. The user can visit any page and the form is always present on the left. The middle column of the site is used for the display of site information etc. M…

---

## [Validates\_associated & foreign keys](https://www.ruby-forum.com/t/validates-associated-foreign-keys/141893)

<div class="topic-metadata">

**Author:** [@Birgit\_SWesthawk](https://www.ruby-forum.com/u/Birgit_SWesthawk)\
**Replies:** 6\
**Last updated:** [July 2, 2008, 4:22pm UTC](https://www.ruby-forum.com/t/validates-associated-foreign-keys/141893 "2008-07-02T16:22:05Z")

</div>

Hi, I’m struggling to get the validates\_associated to work as I think it should be. I’m using: JRuby 1.1 rails-2.0.2 activerecord-2.0.2 activerecord-jdbc-adapter-0.8.2 My tables in MySQL: CREATE TABLE area\_codes…

---

## [Web Development Project](https://www.ruby-forum.com/t/web-development-project/142009)

<div class="topic-metadata">

**Author:** [@Sonia](https://www.ruby-forum.com/u/Sonia)\
**Replies:** 0\
**Last updated:** [July 2, 2008, 4:16pm UTC](https://www.ruby-forum.com/t/web-development-project/142009 "2008-07-02T16:16:12Z")

</div>

Exciting new e-commerce venture seeking Ruby web developer to build a community and video streaming site to start work immediately. Experience with streaming video preferred. However the candidate must have experience…

---

## [Effect of mongrel\_rails cluster::restart](https://www.ruby-forum.com/t/effect-of-mongrel-rails-cluster-restart/142007)

<div class="topic-metadata">

**Author:** [@arung](https://www.ruby-forum.com/u/arung)\
**Replies:** 0\
**Last updated:** [July 2, 2008, 4:04pm UTC](https://www.ruby-forum.com/t/effect-of-mongrel-rails-cluster-restart/142007 "2008-07-02T16:04:29Z")

</div>

Hi, I am using a mongrel cluster of 3 mongrels behind an nginx server for deployment. I am using god to watch the mongrels using mongrel\_rails cluster::restart. The question I have is when mongrel\_rails cluster::res…

---

## [Habtm many-to-many relationship problem attribute\_methods.rb](https://www.ruby-forum.com/t/habtm-many-to-many-relationship-problem-attribute-methods-rb/141970)

<div class="topic-metadata">

**Author:** [@c-a](https://www.ruby-forum.com/u/c-a)\
**Replies:** 1\
**Last updated:** [July 2, 2008, 3:44pm UTC](https://www.ruby-forum.com/t/habtm-many-to-many-relationship-problem-attribute-methods-rb/141970 "2008-07-02T15:44:32Z")

</div>

Hi, I have a many-to-many relationship between: registrations and groups (properly setup on each side with has\_and\_belongs\_to\_many) so I do this in the console: reg = Registration.find(:first) grp = Group.find(:fir…

---

## [How do I open an uploaded xml in controller?](https://www.ruby-forum.com/t/how-do-i-open-an-uploaded-xml-in-controller/141926)

<div class="topic-metadata">

**Author:** [@loominator1970](https://www.ruby-forum.com/u/loominator1970)\
**Replies:** 2\
**Last updated:** [July 2, 2008, 3:42pm UTC](https://www.ruby-forum.com/t/how-do-i-open-an-uploaded-xml-in-controller/141926 "2008-07-02T15:42:12Z")

</div>

Hello, This seems like a fairly simple solution, but I keep running into roadblocks. I’m using a small form to select an xml from the user’s local file system, and then parsing the information out using REXML. The f…

---

## [Clickable table cells?](https://www.ruby-forum.com/t/clickable-table-cells/142003)

<div class="topic-metadata">

**Author:** [@arunmehta](https://www.ruby-forum.com/u/arunmehta)\
**Replies:** 0\
**Last updated:** [July 2, 2008, 3:22pm UTC](https://www.ruby-forum.com/t/clickable-table-cells/142003 "2008-07-02T15:22:13Z")

</div>

I wish to make a touchscreen application: the contents of each cell is basically text, which I want the user to select by simply touching, i.e. clicking on it. A common url should be accessed by the browser no matter …

---

## [Downloading using ruby](https://www.ruby-forum.com/t/downloading-using-ruby/141997)

<div class="topic-metadata">

**Author:** [@seb](https://www.ruby-forum.com/u/seb)\
**Replies:** 1\
**Last updated:** [July 2, 2008, 2:10pm UTC](https://www.ruby-forum.com/t/downloading-using-ruby/141997 "2008-07-02T14:10:43Z")

</div>

how to download a website using ruby.can anybody help me…

---

## [Attachment in mail](https://www.ruby-forum.com/t/attachment-in-mail/141969)

<div class="topic-metadata">

**Author:** [@mrbless](https://www.ruby-forum.com/u/mrbless)\
**Replies:** 3\
**Last updated:** [July 2, 2008, 12:35pm UTC](https://www.ruby-forum.com/t/attachment-in-mail/141969 "2008-07-02T12:35:53Z")

</div>

How to do the attachment in mail like the yahoo and gmail does?

---

## [Actionamailer: configure to send mail from many email addess](https://www.ruby-forum.com/t/actionamailer-configure-to-send-mail-from-many-email-addess/141982)

<div class="topic-metadata">

**Author:** [@ankit2584](https://www.ruby-forum.com/u/ankit2584)\
**Replies:** 0\
**Last updated:** [July 2, 2008, 12:17pm UTC](https://www.ruby-forum.com/t/actionamailer-configure-to-send-mail-from-many-email-addess/141982 "2008-07-02T12:17:40Z")

</div>

Hi, I sometimes wan to send mail from yahoo email address and sometimes from my gmail address. In the smtp\_settings i have for actionmailer i can specify only one ie either yahoo or gmail. How can i configure it to s…

---

## [Memcache for RoR in windows machine possible?](https://www.ruby-forum.com/t/memcache-for-ror-in-windows-machine-possible/141980)

<div class="topic-metadata">

**Author:** [@ratnavel](https://www.ruby-forum.com/u/ratnavel)\
**Replies:** 0\
**Last updated:** [July 2, 2008, 11:46am UTC](https://www.ruby-forum.com/t/memcache-for-ror-in-windows-machine-possible/141980 "2008-07-02T11:46:38Z")

</div>

I have couple of questions in using memcache, Is it possible to use memcache for ruby on rails application running on windows machine. What is the memcache and what is memcached-client. Thanks, Ratnavel

---

## [Is there anything like recursive resources?](https://www.ruby-forum.com/t/is-there-anything-like-recursive-resources/141943)

<div class="topic-metadata">

**Author:** [@tom-eric](https://www.ruby-forum.com/u/tom-eric)\
**Replies:** 1\
**Last updated:** [July 2, 2008, 11:26am UTC](https://www.ruby-forum.com/t/is-there-anything-like-recursive-resources/141943 "2008-07-02T11:26:12Z")

</div>

Hi, I’m trying to create a virtual file system in rails with folders and documents. My models look a bit like this: class Document \< ActiveRecord::Base belongs\_to :folder end class Folder \< ActiveRecord::Base acts…

---

## [TinyMCE](https://www.ruby-forum.com/t/tinymce/141857)

<div class="topic-metadata">

**Author:** [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Replies:** 4\
**Last updated:** [July 2, 2008, 11:20am UTC](https://www.ruby-forum.com/t/tinymce/141857 "2008-07-02T11:20:20Z")

</div>

I am rather shocked at how easy it was to install TinyMCE plug-in and enable it to format the comments text-area of the blog-comments demo. Surely, there is a catch somewhere? I would rather find out now than later. …

---

## [How to sort the result found](https://www.ruby-forum.com/t/how-to-sort-the-result-found/141897)

<div class="topic-metadata">

**Author:** [@mrbless](https://www.ruby-forum.com/u/mrbless)\
**Replies:** 5\
**Last updated:** [July 2, 2008, 11:18am UTC](https://www.ruby-forum.com/t/how-to-sort-the-result-found/141897 "2008-07-02T11:18:33Z")

</div>

How to sort the result that I have found according to relevance. Let’s say i have find all the users @users=User.find(:all) now in my view file I want to give a drop down box like sort ascending,sort descending, sort…

---

## [How to setups two rails 2.1 app in different location with Nginx?](https://www.ruby-forum.com/t/how-to-setups-two-rails-2-1-app-in-different-location-with-nginx/141891)

<div class="topic-metadata">

**Author:** [@caiwangqin](https://www.ruby-forum.com/u/caiwangqin)\
**Replies:** 1\
**Last updated:** [July 2, 2008, 10:38am UTC](https://www.ruby-forum.com/t/how-to-setups-two-rails-2-1-app-in-different-location-with-nginx/141891 "2008-07-02T10:38:43Z")

</div>

i found config from: Nginx location+proxy\_pass? - NGINX - Ruby-Forum my nginx version: 0.6.13 and here is my full working nginx.conf: user www; worker\_processes 1; events { worker\_connections 1024; } http { incl…

---

## [Updating Rails](https://www.ruby-forum.com/t/updating-rails/141971)

<div class="topic-metadata">

**Author:** [@dave](https://www.ruby-forum.com/u/dave)\
**Replies:** 3\
**Last updated:** [July 2, 2008, 10:17am UTC](https://www.ruby-forum.com/t/updating-rails/141971 "2008-07-02T10:17:35Z")

</div>

I have a project that was created using Rails 2.0.1 and is now on a computer which has Rails 2.1.0 installed. Is there an easy way to update the project? If I run “rake rails:update” in the root directory of my projec…

---

## [A gem into plugin folder](https://www.ruby-forum.com/t/a-gem-into-plugin-folder/141731)

<div class="topic-metadata">

**Author:** [@jags](https://www.ruby-forum.com/u/jags)\
**Replies:** 4\
**Last updated:** [July 2, 2008, 10:13am UTC](https://www.ruby-forum.com/t/a-gem-into-plugin-folder/141731 "2008-07-02T10:13:19Z")

</div>

hi guys i am working ona ubuntu hardy heron box. just wanted to know is there a command to install(copy) a gem in my system as a plugin into my rails project or it has to be done manually by locating gems directory …

---

## [Calling another def](https://www.ruby-forum.com/t/calling-another-def/141973)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 4\
**Last updated:** [July 2, 2008, 9:31am UTC](https://www.ruby-forum.com/t/calling-another-def/141973 "2008-07-02T09:31:17Z")

</div>

Hi I already have a function def create #code here end It after execution call its view with same name..Now i have another function create\_and\_give\_resolution This function is called from submit\_to\_remote In th…

---

## [Validating\_uniqueness\_of creating problem while updating](https://www.ruby-forum.com/t/validating-uniqueness-of-creating-problem-while-updating/141976)

<div class="topic-metadata">

**Author:** [@supriyaiiita](https://www.ruby-forum.com/u/supriyaiiita)\
**Replies:** 1\
**Last updated:** [July 2, 2008, 9:14am UTC](https://www.ruby-forum.com/t/validating-uniqueness-of-creating-problem-while-updating/141976 "2008-07-02T09:14:16Z")

</div>

Hi! Im validating name field in “dev” model by checking its uniqueness. but while editing that particular entry, the system again validates for uniqueness of name. so if i dnt change name while editing , it gives me …

---

## [Migrating the database when switiching to a branch with a different schema](https://www.ruby-forum.com/t/migrating-the-database-when-switiching-to-a-branch-with-a-different-schema/141907)

<div class="topic-metadata">

**Author:** [@neil](https://www.ruby-forum.com/u/neil)\
**Replies:** 4\
**Last updated:** [July 2, 2008, 8:36am UTC](https://www.ruby-forum.com/t/migrating-the-database-when-switiching-to-a-branch-with-a-different-schema/141907 "2008-07-02T08:36:13Z")

</div>

Does anyone have any suggestions on how to quickly move to and from Git branches with different database schemas? For example, my ‘master’ branch only has a ‘users’ scaffold, but my ‘adding\_pictures’ branch has ‘users…

---

## [Rake db:fixtures:load](https://www.ruby-forum.com/t/rake-dbload/141972)

<div class="topic-metadata">

**Author:** [@ferlon](https://www.ruby-forum.com/u/ferlon)\
**Replies:** 0\
**Last updated:** [July 2, 2008, 7:44am UTC](https://www.ruby-forum.com/t/rake-dbload/141972 "2008-07-02T07:44:38Z")

</div>

And there is an error: rake aborted! no such file to load – spec/rake/spectask C:/Ferlon/work/rakefile:10 (See full trace by running task with --trace) Why this file is needed and because of what it doesn’t exist?

---

## [Script evaluation for numericality](https://www.ruby-forum.com/t/script-evaluation-for-numericality/141885)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 4\
**Last updated:** [July 2, 2008, 6:57am UTC](https://www.ruby-forum.com/t/script-evaluation-for-numericality/141885 "2008-07-02T06:57:28Z")

</div>

Hi I have a text\_field as \<%= text\_field :sd\_resol, “hours”, “size” =\> 2, “value” =\> ‘00’ %\> And on submit\_to\_remote :condition I am calling a script to check whether hour contains only numeric data…How can I do it…I…

---

## [How to split query results in two columns? Noob](https://www.ruby-forum.com/t/how-to-split-query-results-in-two-columns-noob/141949)

<div class="topic-metadata">

**Author:** [@mex\_rails](https://www.ruby-forum.com/u/mex_rails)\
**Replies:** 2\
**Last updated:** [July 2, 2008, 5:19am UTC](https://www.ruby-forum.com/t/how-to-split-query-results-in-two-columns-noob/141949 "2008-07-02T05:19:41Z")

</div>

I have a big collection of items I want to display two columns of ordered lists. I’m pretty new to RoR, but I think there must be some way to do this with a helper. this is the code i want to split \<% @items.each do…

---

## [Undefined method 'view\_paths' for #\<Array:0x34568f4\>?Realy?](https://www.ruby-forum.com/t/undefined-method-view-paths-for-array-0x34568f4-realy/141723)

<div class="topic-metadata">

**Author:** [@mgreenly](https://www.ruby-forum.com/u/mgreenly)\
**Replies:** 2\
**Last updated:** [July 2, 2008, 3:15am UTC](https://www.ruby-forum.com/t/undefined-method-view-paths-for-array-0x34568f4-realy/141723 "2008-07-02T03:15:53Z")

</div>

I write a functional test,here is the code: require File.dirname(FILE) + ‘/…/test\_helper’ require ‘welcome\_controller’ Re-raise errors caught by the controller. class WelcomeController; def rescue\_action(e) raise e en…

---

## [Before\_type\_case broken?](https://www.ruby-forum.com/t/before-type-case-broken/141961)

<div class="topic-metadata">

**Author:** [@donncha](https://www.ruby-forum.com/u/donncha)\
**Replies:** 0\
**Last updated:** [July 2, 2008, 2:58am UTC](https://www.ruby-forum.com/t/before-type-case-broken/141961 "2008-07-02T02:58:36Z")

</div>

Hey, I’ve noticed that I seem unable to get a \_before\_type\_cast value for dates in 2.1. Specifically, if I assign a date string to a date attribute, and then call attribute\_before\_type\_cast I get a TimeWithZone inste…

---

## [Getting data from Rails to Javascript](https://www.ruby-forum.com/t/getting-data-from-rails-to-javascript/141959)

<div class="topic-metadata">

**Author:** [@pedz](https://www.ruby-forum.com/u/pedz)\
**Replies:** 0\
**Last updated:** [July 2, 2008, 2:38am UTC](https://www.ruby-forum.com/t/getting-data-from-rails-to-javascript/141959 "2008-07-02T02:38:45Z")

</div>

This started when I upgraded to Rails 2.1. My “roll you own” in place editor broke because they need the authentication token. What I did before was I wrapped the editor in a span of a particular class. In the span,…

---

## [Rateable plugin problem](https://www.ruby-forum.com/t/rateable-plugin-problem/141912)

<div class="topic-metadata">

**Author:** [@nishi](https://www.ruby-forum.com/u/nishi)\
**Replies:** 2\
**Last updated:** [July 2, 2008, 2:01am UTC](https://www.ruby-forum.com/t/rateable-plugin-problem/141912 "2008-07-02T02:01:25Z")

</div>

I am having some problem figuring out how to use the rateable plugin. i followed as close as the directions located at http://www.naffis.com/blog/articles/2006/08/31/rails-ajax-star-rating-system but there seem to be …

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

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