# Rails

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

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

---

## [Where would you put this parsing?](https://www.ruby-forum.com/t/where-would-you-put-this-parsing/90409)

<div class="topic-metadata">

**Author:** [@fxn](https://www.ruby-forum.com/u/fxn)\
**Replies:** 1\
**Last updated:** [March 28, 2007, 10:51pm UTC](https://www.ruby-forum.com/t/where-would-you-put-this-parsing/90409 "2007-03-28T22:51:35Z")

</div>

All floats that come from the front-end should be parsed robustly in my app, where “robustly” is by the definition the method I paste below :-). The non-DRY way to do this is to add explicit code in each relevant poi…

---

## [Creating xml files on the hard disk](https://www.ruby-forum.com/t/creating-xml-files-on-the-hard-disk/90346)

<div class="topic-metadata">

**Author:** [@luma](https://www.ruby-forum.com/u/luma)\
**Replies:** 4\
**Last updated:** [March 28, 2007, 10:23pm UTC](https://www.ruby-forum.com/t/creating-xml-files-on-the-hard-disk/90346 "2007-03-28T22:23:33Z")

</div>

I’ve written a rxml template. What must I write in my rails-controller to get xml files out of this - not displayed on the screen, but just saved on the hard disk? And where do I have to store the rxml file?

---

## [SMTPSyntaxError (501 \<\>: missing or malformed local part)](https://www.ruby-forum.com/t/smtpsyntaxerror-501-missing-or-malformed-local-part/66653)

<div class="topic-metadata">

**Author:** [@aantix](https://www.ruby-forum.com/u/aantix)\
**Replies:** 5\
**Last updated:** [March 28, 2007, 10:22pm UTC](https://www.ruby-forum.com/t/smtpsyntaxerror-501-missing-or-malformed-local-part/66653 "2007-03-28T22:22:32Z")

</div>

I get this when trying to send out an email. What exactly does this error mean? Net::SMTPSyntaxError (501 \<\>: missing or malformed local part ): /usr/lib/ruby/1.8/net/smtp.rb:680:in check\_response' /usr/lib/ruby/1.…

---

## [Does anybody use Site5 for their hosting...need some help?](https://www.ruby-forum.com/t/does-anybody-use-site5-for-their-hosting-need-some-help/90447)

<div class="topic-metadata">

**Author:** [@bravedave](https://www.ruby-forum.com/u/bravedave)\
**Replies:** 0\
**Last updated:** [March 28, 2007, 10:17pm UTC](https://www.ruby-forum.com/t/does-anybody-use-site5-for-their-hosting-need-some-help/90447 "2007-03-28T22:17:31Z")

</div>

I just signed up for the Site5 Multi-Domain product today and have no clue how to manage my site on their control panel. They say they don’t have a consultant they can put me in touch with…is there anyone out there I …

---

## [How to read back what controller I am in?](https://www.ruby-forum.com/t/how-to-read-back-what-controller-i-am-in/90438)

<div class="topic-metadata">

**Author:** [@Sean\_Lerner](https://www.ruby-forum.com/u/Sean_Lerner)\
**Replies:** 3\
**Last updated:** [March 28, 2007, 9:55pm UTC](https://www.ruby-forum.com/t/how-to-read-back-what-controller-i-am-in/90438 "2007-03-28T21:55:24Z")

</div>

Hello, Is there a way I can determine in my .rhtml as to what controller is currently being executed? (perhaps an environment variable?) For example, if my controller is named “display”, and I put: \<%= WHATEVER\_SHOUL…

---

## [Dynamic Finders and :finder\_sql](https://www.ruby-forum.com/t/dynamic-finders-and-finder-sql/90441)

<div class="topic-metadata">

**Author:** [@mudge](https://www.ruby-forum.com/u/mudge)\
**Replies:** 0\
**Last updated:** [March 28, 2007, 9:44pm UTC](https://www.ruby-forum.com/t/dynamic-finders-and-finder-sql/90441 "2007-03-28T21:44:23Z")

</div>

In order to handle the access rights in my application (where users only have access to designs within their own group and belonging to a customer that they are associated with), I have the following has\_many associat…

---

## [Migration w/change\_column fails on MySQL 5.1](https://www.ruby-forum.com/t/migration-w-change-column-fails-on-mysql-5-1/90435)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 1\
**Last updated:** [March 28, 2007, 9:39pm UTC](https://www.ruby-forum.com/t/migration-w-change-column-fails-on-mysql-5-1/90435 "2007-03-28T21:39:24Z")

</div>

All, I have a migration with statements like this: change\_column :quote\_input\_class\_codes, :employee\_payroll, :integer, :default =\> 0, :null =\> false When I migrate, I get: (in C:/eclipse/workspace/OnlineRating) ==…

---

## [Accessing helpers in ApplicationHelper](https://www.ruby-forum.com/t/accessing-helpers-in-applicationhelper/90414)

<div class="topic-metadata">

**Author:** [@viciu](https://www.ruby-forum.com/u/viciu)\
**Replies:** 2\
**Last updated:** [March 28, 2007, 9:36pm UTC](https://www.ruby-forum.com/t/accessing-helpers-in-applicationhelper/90414 "2007-03-28T21:36:40Z")

</div>

Hi! I want to write custom helper, accessible for all views and I want to use other helpers like form\_remote\_tag. I tried first to move .rhtml template code and parse it with ERB: module ApplicationHelper def search…

---

## [Rails based Q&A WIKI type solution?](https://www.ruby-forum.com/t/rails-based-q-a-wiki-type-solution/90434)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [March 28, 2007, 8:52pm UTC](https://www.ruby-forum.com/t/rails-based-q-a-wiki-type-solution/90434 "2007-03-28T20:52:15Z")

</div>

I am investigating how to build a site similar to www.faqfarm.com which is a Q&A wiki. They use mediawiki, which is very popular PHP based that wikipedia uses. I suspect they had to highly customize the code and that …

---

## [\[ANN\] New RoR site - and thanks](https://www.ruby-forum.com/t/ann-new-ror-site-and-thanks/90407)

<div class="topic-metadata">

**Author:** [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Replies:** 2\
**Last updated:** [March 28, 2007, 8:49pm UTC](https://www.ruby-forum.com/t/ann-new-ror-site-and-thanks/90407 "2007-03-28T20:49:15Z")

</div>

Just a quick note to let you know I’ve publicly launched the site I’ve been working on. It’s my first hands-on project in 15 years and I would not have been able to accomplish it without Rails and the tremendous comm…

---

## [Help me deploy a simple site](https://www.ruby-forum.com/t/help-me-deploy-a-simple-site/90392)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [March 28, 2007, 8:31pm UTC](https://www.ruby-forum.com/t/help-me-deploy-a-simple-site/90392 "2007-03-28T20:31:13Z")

</div>

Hi, I have a ROR site that I want to deploy. Its beyond me. Would there be any kind soul on this community that would deploy it for me? Its a very very simple application and 2 mins work for someone who knows what he…

---

## [Overiding concatenation of tables by alphabetical order](https://www.ruby-forum.com/t/overiding-concatenation-of-tables-by-alphabetical-order/90368)

<div class="topic-metadata">

**Author:** [@georgeuoa](https://www.ruby-forum.com/u/georgeuoa)\
**Replies:** 2\
**Last updated:** [March 28, 2007, 8:05pm UTC](https://www.ruby-forum.com/t/overiding-concatenation-of-tables-by-alphabetical-order/90368 "2007-03-28T20:05:16Z")

</div>

Hi everyone! When doing a has\_and\_belongs\_to\_many join, with two tables, rails expects a join table whose name is the concatenation of the two table names in an alphabetical order. However i have a number of tables w…

---

## [Problem with attachment\_fu](https://www.ruby-forum.com/t/problem-with-attachment-fu/90403)

<div class="topic-metadata">

**Author:** [@Tino\_B](https://www.ruby-forum.com/u/Tino_B)\
**Replies:** 4\
**Last updated:** [March 28, 2007, 7:51pm UTC](https://www.ruby-forum.com/t/problem-with-attachment-fu/90403 "2007-03-28T19:51:05Z")

</div>

Hi, i started to test attachment\_fu, but i can’t get it to upload a file. See the error: NoMethodError (undefined method content\_type' for "/100\_2261.jpg":String): /vendor/plugins/attachment\_fu/lib/technoweenie/attac…

---

## [Is there a better way to do this? - newbie question](https://www.ruby-forum.com/t/is-there-a-better-way-to-do-this-newbie-question/90417)

<div class="topic-metadata">

**Author:** [@dkanders](https://www.ruby-forum.com/u/dkanders)\
**Replies:** 3\
**Last updated:** [March 28, 2007, 7:06pm UTC](https://www.ruby-forum.com/t/is-there-a-better-way-to-do-this-newbie-question/90417 "2007-03-28T19:06:38Z")

</div>

I’m deploying and running into problems that I didn’t have in the development environment… In development, I have a section of code that says something like: \<% for charity in @charities %\> \<%= blah blah blah %\> \<% …

---

## [Asd](https://www.ruby-forum.com/t/asd/90431)

<div class="topic-metadata">

**Author:** [@dsdsds](https://www.ruby-forum.com/u/dsdsds)\
**Replies:** 0\
**Last updated:** [March 28, 2007, 6:58pm UTC](https://www.ruby-forum.com/t/asd/90431 "2007-03-28T18:58:09Z")

</div>

checkadsda

---

## [ActiveRecord::Extensions 0.5.2 Released!](https://www.ruby-forum.com/t/activerecord-extensions-0-5-2-released/102720)

<div class="topic-metadata">

**Author:** [@zdennis](https://www.ruby-forum.com/u/zdennis)\
**Replies:** 10\
**Last updated:** [March 28, 2007, 6:35pm UTC](https://www.ruby-forum.com/t/activerecord-extensions-0-5-2-released/102720 "2007-03-28T18:35:47Z")

</div>

ActiveRecord::Extensions 0.5.2 is released! This release allows you to install “ar-extensions” as a rubygem. gem install -r ar-extensions Zach http://www.continuousthinking.com/tags/arext

---

## [\[ANN\] AutoScope Plugin](https://www.ruby-forum.com/t/ann-autoscope-plugin/90422)

<div class="topic-metadata">

**Author:** [@fbeausoleil](https://www.ruby-forum.com/u/fbeausoleil)\
**Replies:** 0\
**Last updated:** [March 28, 2007, 5:25pm UTC](https://www.ruby-forum.com/t/ann-autoscope-plugin/90422 "2007-03-28T17:25:20Z")

</div>

= XlSuite::AutoScope Automatically create scoped access methods on your ActiveRecord models. == Examples Declare your scopes within your ActiveRecord::Base subclasses. class Contact \< ActiveRecord::Base auto\_scope …

---

## [New corporate site - on Rails & windows](https://www.ruby-forum.com/t/new-corporate-site-on-rails-windows/90416)

<div class="topic-metadata">

**Author:** [@stepheneb](https://www.ruby-forum.com/u/stepheneb)\
**Replies:** 1\
**Last updated:** [March 28, 2007, 5:16pm UTC](https://www.ruby-forum.com/t/new-corporate-site-on-rails-windows/90416 "2007-03-28T17:16:18Z")

</div>

OK, so maybe I’m trying to make standard web shop client work sound more interesting, but I always enjoy launching a new “average client” site on Rails. Always feels more like real-life than the crazy ‘web 2.0’ ideas…

---

## [Newbie routing problem](https://www.ruby-forum.com/t/newbie-routing-problem/90406)

<div class="topic-metadata">

**Author:** [@brijnaald](https://www.ruby-forum.com/u/brijnaald)\
**Replies:** 1\
**Last updated:** [March 28, 2007, 5:12pm UTC](https://www.ruby-forum.com/t/newbie-routing-problem/90406 "2007-03-28T17:12:17Z")

</div>

Hi, I have a (hopefully) simple problem that just doesn’t want to work: I have a mapping in my routes.rb file: map.connect ‘images/theme/:filename’, :controller =\> ‘theme’, :action =\> ‘images’ If I then go to url: ht…

---

## [Want to delete all cookies](https://www.ruby-forum.com/t/want-to-delete-all-cookies/90370)

<div class="topic-metadata">

**Author:** [@mansfiem](https://www.ruby-forum.com/u/mansfiem)\
**Replies:** 1\
**Last updated:** [March 28, 2007, 5:01pm UTC](https://www.ruby-forum.com/t/want-to-delete-all-cookies/90370 "2007-03-28T17:01:11Z")

</div>

I am looking to delete all cookies that I set when a user logs out of my application. def logout for cook in cookies cookies.delete cook\[0\] end redirect\_to ‘/’ end does not seem to be doing the trick. Even though…

---

## [Mysql driver question](https://www.ruby-forum.com/t/mysql-driver-question/85948)

<div class="topic-metadata">

**Author:** [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Replies:** 15\
**Last updated:** [March 28, 2007, 5:00pm UTC](https://www.ruby-forum.com/t/mysql-driver-question/85948 "2007-03-28T17:00:11Z")

</div>

I asked my hosting service whether they were using the native ruby mysql driver or the compiled version and they responded with “We use Ruby gems”. Does that mean they use the native ruby driver? I don’t know enough…

---

## [\[ANN\] New RoR Site](https://www.ruby-forum.com/t/ann-new-ror-site/90415)

<div class="topic-metadata">

**Author:** [@starmaerker](https://www.ruby-forum.com/u/starmaerker)\
**Replies:** 0\
**Last updated:** [March 28, 2007, 3:48pm UTC](https://www.ruby-forum.com/t/ann-new-ror-site/90415 "2007-03-28T15:48:00Z")

</div>

Keeping this short…Launched this site around a month ago. Just wanted to say thanks to everyone involved with Ruby, RubyonRails and Mongrel. Fantastic work! I hope to contribute a couple of plugins back to the com…

---

## [Find objects without children](https://www.ruby-forum.com/t/find-objects-without-children/90304)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [March 28, 2007, 2:05pm UTC](https://www.ruby-forum.com/t/find-objects-without-children/90304 "2007-03-28T14:05:21Z")

</div>

Hello all, I am a newbie and therefore I am currently discovering the delights of Activerecord. I have a collection of objects, some of which have children and some of which have not. I am trying to run a find which …

---

## [Newbie-ish Capistrano/SVN Problem](https://www.ruby-forum.com/t/newbie-ish-capistrano-svn-problem/90400)

<div class="topic-metadata">

**Author:** [@Jonathan\_Van\_Schoic](https://www.ruby-forum.com/u/Jonathan_Van_Schoic)\
**Replies:** 0\
**Last updated:** [March 28, 2007, 1:45pm UTC](https://www.ruby-forum.com/t/newbie-ish-capistrano-svn-problem/90400 "2007-03-28T13:45:13Z")

</div>

Hey guys, I’m setting up my first Capistrano script and I’m running into an SVN error I hadn’t seen before… I’m using the default deploy.rb (except for changing some variable values, of course). My first deploy went …

---

## [Iterating over instance variable in 'index' view producing u](https://www.ruby-forum.com/t/iterating-over-instance-variable-in-index-view-producing-u/90161)

<div class="topic-metadata">

**Author:** [@brian](https://www.ruby-forum.com/u/brian)\
**Replies:** 2\
**Last updated:** [March 28, 2007, 1:26pm UTC](https://www.ruby-forum.com/t/iterating-over-instance-variable-in-index-view-producing-u/90161 "2007-03-28T13:26:59Z")

</div>

Hello All, I am running into some problems with my ‘index’ view of an application I am trying desperately to convert from PHP to Ruby/Rails. \*\* MY ENVIRONMENT \*\* Table: contracts mysql\> describe contracts; ±-----…

---

## [Is Rails cookies method in view and controller diffrent?](https://www.ruby-forum.com/t/is-rails-cookies-method-in-view-and-controller-diffrent/90394)

<div class="topic-metadata">

**Author:** [@guest](https://www.ruby-forum.com/u/guest)\
**Replies:** 3\
**Last updated:** [March 28, 2007, 12:57pm UTC](https://www.ruby-forum.com/t/is-rails-cookies-method-in-view-and-controller-diffrent/90394 "2007-03-28T12:57:35Z")

</div>

rails 1.2.3 code : in controller: cookies\[:test\] = 1 @cookies = cookies in view: \<%=@cookies\[:test\].class.to\_s%\> \<%=cookies\[:text\].class.to\_s%\> output: String Array

---

## [What authentication plugin/framework do you use?](https://www.ruby-forum.com/t/what-authentication-plugin-framework-do-you-use/102729)

<div class="topic-metadata">

**Author:** [@Jake\_C](https://www.ruby-forum.com/u/Jake_C)\
**Replies:** 3\
**Last updated:** [March 28, 2007, 11:36am UTC](https://www.ruby-forum.com/t/what-authentication-plugin-framework-do-you-use/102729 "2007-03-28T11:36:43Z")

</div>

Very interested in seeing what you are using and why. We’re trying to choose ourselves, but having trouble coming to a conclusion. Thanks guys. Jake

---

## [Test is a specific field is modified](https://www.ruby-forum.com/t/test-is-a-specific-field-is-modified/90377)

<div class="topic-metadata">

**Author:** [@drenovac](https://www.ruby-forum.com/u/drenovac)\
**Replies:** 3\
**Last updated:** [March 28, 2007, 10:59am UTC](https://www.ruby-forum.com/t/test-is-a-specific-field-is-modified/90377 "2007-03-28T10:59:04Z")

</div>

Hello everybody I’m relatively new to RoR but I find it really interesting. I’ve managed to do lots of nice things bt I’m stuck with a specific problem. I’ve got a table with 5 columns and among it one is a boolean an…

---

## [Rake printing instance variable to console](https://www.ruby-forum.com/t/rake-printing-instance-variable-to-console/90379)

<div class="topic-metadata">

**Author:** [@sylow](https://www.ruby-forum.com/u/sylow)\
**Replies:** 0\
**Last updated:** [March 28, 2007, 10:21am UTC](https://www.ruby-forum.com/t/rake-printing-instance-variable-to-console/90379 "2007-03-28T10:21:28Z")

</div>

Hello All, My small issue is that following rake task is printing my instance variable to console, but I do not want any output accept my “put” statement. Data field is a blob and contains binary data and when printe…

---

## [How does rails do this "find\_by\_?"](https://www.ruby-forum.com/t/how-does-rails-do-this-find-by/90337)

<div class="topic-metadata">

**Author:** [@jamal](https://www.ruby-forum.com/u/jamal)\
**Replies:** 6\
**Last updated:** [March 28, 2007, 9:48am UTC](https://www.ruby-forum.com/t/how-does-rails-do-this-find-by/90337 "2007-03-28T09:48:27Z")

</div>

Hello there, I’m wondering how do they create functions on the fly? find\_by\_any\_column\_name ?? I want to do something similar with my models, but I don’t really know how to do it? user\_current\_nickname user\_current…

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

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