# Rails

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

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

---

## [Issue generating XML with hyphenated element names](https://www.ruby-forum.com/t/issue-generating-xml-with-hyphenated-element-names/90123)

<div class="topic-metadata">

**Author:** [@jjudge](https://www.ruby-forum.com/u/jjudge)\
**Replies:** 2\
**Last updated:** [March 26, 2007, 3:03pm UTC](https://www.ruby-forum.com/t/issue-generating-xml-with-hyphenated-element-names/90123 "2007-03-26T15:03:58Z")

</div>

Hello… I’m trying to generate and XML file using .rxml and I’m having a problem with element names that contain a hyphen. Here is a chunk of the .rxml file: xml.instruct! :xml, :version=\>“1.0” xml.properties do @p…

---

## [Mongrel upload problem with progress bar](https://www.ruby-forum.com/t/mongrel-upload-problem-with-progress-bar/89855)

<div class="topic-metadata">

**Author:** [@friofool](https://www.ruby-forum.com/u/friofool)\
**Replies:** 1\
**Last updated:** [March 26, 2007, 2:39pm UTC](https://www.ruby-forum.com/t/mongrel-upload-problem-with-progress-bar/89855 "2007-03-26T14:39:55Z")

</div>

Hello, I’m trying to install the upload\_progress gem and i can’t see the upload progress status. My config is : apache2 with mod\_proxy mongrel rails upload.rb : ############## require ‘rubygems’ require ‘drb’ r…

---

## [Is Rails the right solution for me?](https://www.ruby-forum.com/t/is-rails-the-right-solution-for-me/89931)

<div class="topic-metadata">

**Author:** [@DigitalRealm](https://www.ruby-forum.com/u/DigitalRealm)\
**Replies:** 5\
**Last updated:** [March 26, 2007, 2:17pm UTC](https://www.ruby-forum.com/t/is-rails-the-right-solution-for-me/89931 "2007-03-26T14:17:11Z")

</div>

Hello all, I am trying to lay the foundation for a website that I am planning and I would really appreciate some feedback as to whether RoR is right for me and my needs. I am creating a site that will allow users to “…

---

## [Strange Record not saved errors](https://www.ruby-forum.com/t/strange-record-not-saved-errors/90135)

<div class="topic-metadata">

**Author:** [@jeroen](https://www.ruby-forum.com/u/jeroen)\
**Replies:** 2\
**Last updated:** [March 26, 2007, 2:04pm UTC](https://www.ruby-forum.com/t/strange-record-not-saved-errors/90135 "2007-03-26T14:04:44Z")

</div>

I have a site with an acts\_as\_authenticated based login which has started throwing up some strange errors. Until a few days ago everything worked fine but all of a sudden ‘RecordNotSaved’ errors are popping up in my l…

---

## [Shopping Carts?](https://www.ruby-forum.com/t/shopping-carts/90124)

<div class="topic-metadata">

**Author:** [@brez](https://www.ruby-forum.com/u/brez)\
**Replies:** 3\
**Last updated:** [March 26, 2007, 1:54pm UTC](https://www.ruby-forum.com/t/shopping-carts/90124 "2007-03-26T13:54:17Z")

</div>

I saw the subimage one - but does anyone know of others \[didnt find much on the search\] - thanks!

---

## [Anyone shipping an installed rails application?](https://www.ruby-forum.com/t/anyone-shipping-an-installed-rails-application/89877)

<div class="topic-metadata">

**Author:** [@devdiscuss](https://www.ruby-forum.com/u/devdiscuss)\
**Replies:** 2\
**Last updated:** [March 26, 2007, 12:59pm UTC](https://www.ruby-forum.com/t/anyone-shipping-an-installed-rails-application/89877 "2007-03-26T12:59:22Z")

</div>

I am planning to build a browser based web application for business users. I need the application to be downloadable and installable on their own local server. I love rails and the productivity it provided, however;…

---

## [Session list](https://www.ruby-forum.com/t/session-list/90144)

<div class="topic-metadata">

**Author:** [@bioform](https://www.ruby-forum.com/u/bioform)\
**Replies:** 0\
**Last updated:** [March 26, 2007, 12:46pm UTC](https://www.ruby-forum.com/t/session-list/90144 "2007-03-26T12:46:20Z")

</div>

Hi everybody. I have question about additional processing while “new” and “delete” session. How can I add my method to base “Session.new” and “Session.delete” methods ? And one more question - how and where can I d…

---

## [Validating Integers](https://www.ruby-forum.com/t/validating-integers/90125)

<div class="topic-metadata">

**Author:** [@Naga\_harish\_K](https://www.ruby-forum.com/u/Naga_harish_K)\
**Replies:** 9\
**Last updated:** [March 26, 2007, 12:34pm UTC](https://www.ruby-forum.com/t/validating-integers/90125 "2007-03-26T12:34:19Z")

</div>

Hi all, Is there a way to do validation such as if i enter a string i should get an alert saying it is a string enter number, I can use validates\_numericality\_of but its ajax form, so i can’t get the message there. S…

---

## [Javascript disappears from my view partials when they're ren](https://www.ruby-forum.com/t/javascript-disappears-from-my-view-partials-when-theyre-ren/90049)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 7\
**Last updated:** [March 26, 2007, 11:59am UTC](https://www.ruby-forum.com/t/javascript-disappears-from-my-view-partials-when-theyre-ren/90049 "2007-03-26T11:59:03Z")

</div>

Hey people :slight\_smile: I’m having some serious trouble understanding what’s going on with my application ATM. I am creating a manager for tree structures with drag-and-drop functionality and such. It’s very generi…

---

## [\[ANN\] scRUBYt! - Hpricot and WWW::Mechanize on even more ste](https://www.ruby-forum.com/t/ann-scrubyt-hpricot-and-www-mechanize-on-even-more-ste/102724)

<div class="topic-metadata">

**Author:** [@splattael](https://www.ruby-forum.com/u/splattael)\
**Replies:** 0\
**Last updated:** [March 26, 2007, 10:04am UTC](https://www.ruby-forum.com/t/ann-scrubyt-hpricot-and-www-mechanize-on-even-more-ste/102724 "2007-03-26T10:04:36Z")

</div>

Hello all, scRUBYt! version 0.2.6 has been released with some great new features, tons of bugfixes and lot of changes overall which should greatly affect the reliability of the system. ============ What’s this? scR…

---

## [Assert\_select VS assert\_no\_tag](https://www.ruby-forum.com/t/assert-select-vs-assert-no-tag/89889)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [March 26, 2007, 9:27am UTC](https://www.ruby-forum.com/t/assert-select-vs-assert-no-tag/89889 "2007-03-26T09:27:28Z")

</div>

Hi everybody. Assert\_no\_tag will be deprecated soon. How can i use assert\_select for checking not existed tag? Thanks. Bye.

---

## [Redundancy in controller? What are your thoughts?](https://www.ruby-forum.com/t/redundancy-in-controller-what-are-your-thoughts/90120)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 0\
**Last updated:** [March 26, 2007, 7:28am UTC](https://www.ruby-forum.com/t/redundancy-in-controller-what-are-your-thoughts/90120 "2007-03-26T07:28:22Z")

</div>

I am having a tough time coming up with a decision on this: Is it ok to have redundancy in your controllers and views for the sake of flexibility? Or should your controllers and views be 100% DRY by creating private m…

---

## [Automatic HTTP Basic Authentication In Ruby on Rails](https://www.ruby-forum.com/t/automatic-http-basic-authentication-in-ruby-on-rails/90095)

<div class="topic-metadata">

**Author:** [@kiran](https://www.ruby-forum.com/u/kiran)\
**Replies:** 1\
**Last updated:** [March 26, 2007, 6:49am UTC](https://www.ruby-forum.com/t/automatic-http-basic-authentication-in-ruby-on-rails/90095 "2007-03-26T06:49:54Z")

</div>

Hi, i need to access a url www.sometesturl3456.com/index.php It prompts HTTP Authentication window asking username and password. I have do automatic HTTP Basic authentication without manual entry of username and pas…

---

## [How to close a popup?](https://www.ruby-forum.com/t/how-to-close-a-popup/90114)

<div class="topic-metadata">

**Author:** [@patcito](https://www.ruby-forum.com/u/patcito)\
**Replies:** 1\
**Last updated:** [March 26, 2007, 5:57am UTC](https://www.ruby-forum.com/t/how-to-close-a-popup/90114 "2007-03-26T05:57:08Z")

</div>

hey all, I open a popup from a firefox extension with window.open(myurl). The content of the popup is a regular form with a text\_field to fill. Is there a way to automatically close the popup after the user click the…

---

## [Ruby on Rails Database with foreign keys?](https://www.ruby-forum.com/t/ruby-on-rails-database-with-foreign-keys/90097)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [March 26, 2007, 5:19am UTC](https://www.ruby-forum.com/t/ruby-on-rails-database-with-foreign-keys/90097 "2007-03-26T05:19:46Z")

</div>

Hi, I started a project on Ruby on Rails some time ago when the migration feature wasn’t part of Rails. I used to have one big SQL file that creates the whole database and adds the foreign constraints. They looked li…

---

## [Alternate CSS for scaffold?](https://www.ruby-forum.com/t/alternate-css-for-scaffold/89631)

<div class="topic-metadata">

**Author:** [@markthomas](https://www.ruby-forum.com/u/markthomas)\
**Replies:** 6\
**Last updated:** [March 26, 2007, 2:07am UTC](https://www.ruby-forum.com/t/alternate-css-for-scaffold/89631 "2007-03-26T02:07:32Z")

</div>

Does anyone have an alternate CSS for the default scaffold that makes it look decent? Would you be willing to share it? Eventually I’ll create my own scaffold generator but in the mean time, I’d like to be able to dem…

---

## [Test::Unit::TestCase#test =\> What's this method for?](https://www.ruby-forum.com/t/test-testcase-test-whats-this-method-for/90088)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 1\
**Last updated:** [March 26, 2007, 1:51am UTC](https://www.ruby-forum.com/t/test-testcase-test-whats-this-method-for/90088 "2007-03-26T01:51:31Z")

</div>

Hi all I found on this page a neat function that allows to write more semantic test method names: With it one can create tests instead of def test\_add\_should\_do\_this\_or\_that … end the following way: test “add s…

---

## [Parsing XML Using Ruby on Rails](https://www.ruby-forum.com/t/parsing-xml-using-ruby-on-rails/90076)

<div class="topic-metadata">

**Author:** [@kiran](https://www.ruby-forum.com/u/kiran)\
**Replies:** 5\
**Last updated:** [March 26, 2007, 1:36am UTC](https://www.ruby-forum.com/t/parsing-xml-using-ruby-on-rails/90076 "2007-03-26T01:36:02Z")

</div>

Hi, I am new to ruby on rails. I need to parse and read xml response from third party url using ruby on rails. For example if i make a request to url like www.testurl234455.com/test/getsomething?param1=abcd the url…

---

## [Pure text captcha with Ajax](https://www.ruby-forum.com/t/pure-text-captcha-with-ajax/89975)

<div class="topic-metadata">

**Author:** [@David\_ASBlack](https://www.ruby-forum.com/u/David_ASBlack)\
**Replies:** 10\
**Last updated:** [March 26, 2007, 1:19am UTC](https://www.ruby-forum.com/t/pure-text-captcha-with-ajax/89975 "2007-03-26T01:19:37Z")

</div>

Hi – I’m wondering whether one could achieve some degree of protection from automated form submissions with pure-text captchas using Ajax. The basic idea is: the captcha would be created by an Ajax call, and would t…

---

## [Incorrect response header with functional test?](https://www.ruby-forum.com/t/incorrect-response-header-with-functional-test/90093)

<div class="topic-metadata">

**Author:** [@jason](https://www.ruby-forum.com/u/jason)\
**Replies:** 0\
**Last updated:** [March 26, 2007, 12:59am UTC](https://www.ruby-forum.com/t/incorrect-response-header-with-functional-test/90093 "2007-03-26T00:59:28Z")

</div>

I’m testing a controller by doing an ajax post to create an entry, then a normal get to see that entry show up on a page. After the get the @response.body is correct, but @response.headers still says the content type…

---

## [Find in activerecord array](https://www.ruby-forum.com/t/find-in-activerecord-array/90073)

<div class="topic-metadata">

**Author:** [@bitterbal](https://www.ruby-forum.com/u/bitterbal)\
**Replies:** 1\
**Last updated:** [March 25, 2007, 10:23pm UTC](https://www.ruby-forum.com/t/find-in-activerecord-array/90073 "2007-03-25T22:23:12Z")

</div>

Hi, I have a table with products. I would like to run some searches on this table but do not want to query the sql database everytime. This causes too many select queries because I want to do many searches on a singl…

---

## [Threaded forum](https://www.ruby-forum.com/t/threaded-forum/90027)

<div class="topic-metadata">

**Author:** [@eleo](https://www.ruby-forum.com/u/eleo)\
**Replies:** 5\
**Last updated:** [March 25, 2007, 10:18pm UTC](https://www.ruby-forum.com/t/threaded-forum/90027 "2007-03-25T22:18:09Z")

</div>

I’m having trouble sensibly designing a forum-type application with real threads. Whereas most forums have flat threads, my threads are actually “threaded” if you get what I mean, ie they are displayed in a fashion s…

---

## [Submitting wrong ajax form](https://www.ruby-forum.com/t/submitting-wrong-ajax-form/90081)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 0\
**Last updated:** [March 25, 2007, 9:58pm UTC](https://www.ruby-forum.com/t/submitting-wrong-ajax-form/90081 "2007-03-25T21:58:10Z")

</div>

Hey, I am having a strange issue in Ruby on Rails, on a page set up like the following: \[Form to add an item - when added, rails re-renders list below me\] \[Item 1 \[edit/delete\]\] \[Item 2 \[edit/delete\]\] When they cli…

---

## [.rjs template newbie help](https://www.ruby-forum.com/t/rjs-template-newbie-help/90017)

<div class="topic-metadata">

**Author:** [@azgar](https://www.ruby-forum.com/u/azgar)\
**Replies:** 3\
**Last updated:** [March 25, 2007, 9:25pm UTC](https://www.ruby-forum.com/t/rjs-template-newbie-help/90017 "2007-03-25T21:25:47Z")

</div>

Hi everyone I’m very new to Ruby on Rails and have just gotten a slideshow type application working. In one div there are all the images in the database and when you click it an AJAX call is made that makes the image …

---

## [DRY - with modules, render\_component or..?](https://www.ruby-forum.com/t/dry-with-modules-render-component-or/89837)

<div class="topic-metadata">

**Author:** [@costi](https://www.ruby-forum.com/u/costi)\
**Replies:** 4\
**Last updated:** [March 25, 2007, 9:25pm UTC](https://www.ruby-forum.com/t/dry-with-modules-render-component-or/89837 "2007-03-25T21:25:04Z")

</div>

I have an B2B application where a pretty complex order form needs to be submitted and edited on the admin controller, buyer controller and seller controller with some small differences. How do I make available the edi…

---

## [How can I make date\_select return to default value?](https://www.ruby-forum.com/t/how-can-i-make-date-select-return-to-default-value/90036)

<div class="topic-metadata">

**Author:** [@jko170](https://www.ruby-forum.com/u/jko170)\
**Replies:** 1\
**Last updated:** [March 25, 2007, 9:19pm UTC](https://www.ruby-forum.com/t/how-can-i-make-date-select-return-to-default-value/90036 "2007-03-25T21:19:06Z")

</div>

I have an \_edit and \_new partial that has the same text fields. When I edit an object via ajax by rendering the edit partial, the date\_select becomes the objects date. After the object is saved (updated) the \_new part…

---

## [\[ANN\] model\_auto\_completer 1.1](https://www.ruby-forum.com/t/ann-model-auto-completer-1-1/90078)

<div class="topic-metadata">

**Author:** [@fxn](https://www.ruby-forum.com/u/fxn)\
**Replies:** 0\
**Last updated:** [March 25, 2007, 8:49pm UTC](https://www.ruby-forum.com/t/ann-model-auto-completer-1-1/90078 "2007-03-25T20:49:01Z")

</div>

Just a brief note to comment there’s a new minor release of model\_auto\_completer: http://agilewebdevelopment.com/plugins/model\_auto\_completer What’s new: A wrapper of :after\_update\_element is provided, which among ot…

---

## [How to connect mysql whit Ruby](https://www.ruby-forum.com/t/how-to-connect-mysql-whit-ruby/90043)

<div class="topic-metadata">

**Author:** [@marco](https://www.ruby-forum.com/u/marco)\
**Replies:** 3\
**Last updated:** [March 25, 2007, 8:12pm UTC](https://www.ruby-forum.com/t/how-to-connect-mysql-whit-ruby/90043 "2007-03-25T20:12:57Z")

</div>

Hi ! I am a newbie ! I want to use scaffold ! I dont know if I undestand everything right ! create table in mysql (I use mysql query browser) set config/database.yml adapter: mysql database: hms host: 127.…

---

## [Meta programming question for Ruby gurus](https://www.ruby-forum.com/t/meta-programming-question-for-ruby-gurus/90037)

<div class="topic-metadata">

**Author:** [@dorelal](https://www.ruby-forum.com/u/dorelal)\
**Replies:** 5\
**Last updated:** [March 25, 2007, 7:36pm UTC](https://www.ruby-forum.com/t/meta-programming-question-for-ruby-gurus/90037 "2007-03-25T19:36:52Z")

</div>

@person.foo # method name is foo @person.baaz # method name is baaz I have a need to pass the name of the attribute and not the value of the attribute def process(input) puts input end process(@…

---

## [Engines friendly framework from scratch](https://www.ruby-forum.com/t/engines-friendly-framework-from-scratch/90070)

<div class="topic-metadata">

**Author:** [@dracos](https://www.ruby-forum.com/u/dracos)\
**Replies:** 0\
**Last updated:** [March 25, 2007, 7:31pm UTC](https://www.ruby-forum.com/t/engines-friendly-framework-from-scratch/90070 "2007-03-25T19:31:52Z")

</div>

Hi, I’ve been thinking about web frameworks because I will write a small one in JavaScript to share code between client and server. I would like to be able layer an application like engines allow in Rails. What would…

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

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