# Rails

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

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

---

## [How to access application\_helper methods in mailer templates](https://www.ruby-forum.com/t/how-to-access-application-helper-methods-in-mailer-templates/126073)

<div class="topic-metadata">

**Author:** [@anildigital](https://www.ruby-forum.com/u/anildigital)\
**Replies:** 2\
**Last updated:** [January 15, 2008, 5:57pm UTC](https://www.ruby-forum.com/t/how-to-access-application-helper-methods-in-mailer-templates/126073 "2008-01-15T17:57:39Z")

</div>

Hi, I am not able to access application\_helper methods in my mailer templates. It throws out error saying method not defined. I was assuming all templates under views should have access to application helper methods…

---

## [MySQL Losing Connection?](https://www.ruby-forum.com/t/mysql-losing-connection/82747)

<div class="topic-metadata">

**Author:** [@aliasxneo](https://www.ruby-forum.com/u/aliasxneo)\
**Replies:** 9\
**Last updated:** [January 15, 2008, 5:43pm UTC](https://www.ruby-forum.com/t/mysql-losing-connection/82747 "2008-01-15T17:43:31Z")

</div>

I recently have been reading a Ruby On Rails book and have created a basic application. I went to test it, loaded up the server, but the script ran into some errors. Everytime a query is sent it says that the MySQL co…

---

## [HABTM acting as list on Rails 2](https://www.ruby-forum.com/t/habtm-acting-as-list-on-rails-2/126129)

<div class="topic-metadata">

**Author:** [@enduro](https://www.ruby-forum.com/u/enduro)\
**Replies:** 0\
**Last updated:** [January 15, 2008, 5:38pm UTC](https://www.ruby-forum.com/t/habtm-acting-as-list-on-rails-2/126129 "2008-01-15T17:38:34Z")

</div>

Hi Fellow Railworkers Now that Rails 2 is the engine, is there an easier way to have a HABTM relation act\_as\_list? The solution outlined in the wiki is pretty ugly: http://wiki.rubyonrails.org/rails/pages/HowToUseAct…

---

## [Hashes](https://www.ruby-forum.com/t/hashes/126103)

<div class="topic-metadata">

**Author:** [@hiddenhippo](https://www.ruby-forum.com/u/hiddenhippo)\
**Replies:** 9\
**Last updated:** [January 15, 2008, 5:22pm UTC](https://www.ruby-forum.com/t/hashes/126103 "2008-01-15T17:22:51Z")

</div>

hopefully someone might be able to shed some light on this. I have a ruby test application which I’m fetching data from a database. I want to store the results into a hash based on the following principle; loop thro…

---

## [Svn repositories with multiple projects - best practice?](https://www.ruby-forum.com/t/svn-repositories-with-multiple-projects-best-practice/126119)

<div class="topic-metadata">

**Author:** [@blinking\_bear](https://www.ruby-forum.com/u/blinking_bear)\
**Replies:** 3\
**Last updated:** [January 15, 2008, 5:00pm UTC](https://www.ruby-forum.com/t/svn-repositories-with-multiple-projects-best-practice/126119 "2008-01-15T17:00:29Z")

</div>

Quick svn question - sorry this rails related. If I setup a repository once and then add multiple projects using ‘svn import’ is it correct that all the projects share they same revision numbers? Is this expected? I…

---

## [Functional testing with account\_location plugin](https://www.ruby-forum.com/t/functional-testing-with-account-location-plugin/126124)

<div class="topic-metadata">

**Author:** [@retcheto](https://www.ruby-forum.com/u/retcheto)\
**Replies:** 0\
**Last updated:** [January 15, 2008, 4:51pm UTC](https://www.ruby-forum.com/t/functional-testing-with-account-location-plugin/126124 "2008-01-15T16:51:29Z")

</div>

I’m using the account\_location plugin to let users create accounts (user.site.com) in routes.rb I have: map.connect ‘’, :controller =\> “site”, :conditions =\> { :subdomain =\> ‘www’ } map.connect ‘’, :controller =\> “a…

---

## [Rake db:migrate - where is my table?](https://www.ruby-forum.com/t/rake-db-migrate-where-is-my-table/124250)

<div class="topic-metadata">

**Author:** [@alfredojahn](https://www.ruby-forum.com/u/alfredojahn)\
**Replies:** 7\
**Last updated:** [January 15, 2008, 4:23pm UTC](https://www.ruby-forum.com/t/rake-db-migrate-where-is-my-table/124250 "2008-01-15T16:23:36Z")

</div>

Not sure if this is another rails 2.0 issue and the info in AWDWR 2nd ed, or not… (I’m new to Rails) I modified the 001\_create\_products.rb file and added the needed info to create 3 tables in a database that I create…

---

## [Text\_field\_with\_auto\_complete get number of suggests](https://www.ruby-forum.com/t/text-field-with-auto-complete-get-number-of-suggests/126120)

<div class="topic-metadata">

**Author:** [@stratboy](https://www.ruby-forum.com/u/stratboy)\
**Replies:** 0\
**Last updated:** [January 15, 2008, 4:20pm UTC](https://www.ruby-forum.com/t/text-field-with-auto-complete-get-number-of-suggests/126120 "2008-01-15T16:20:06Z")

</div>

I have implement a text\_field\_with\_auto\_complete in my form. Every times that is there the request to server to gets the suggests i want know if the number of these is 0. If there arent’s suggests for auto complete i …

---

## [Mobile Earning without Investment](https://www.ruby-forum.com/t/mobile-earning-without-investment/126114)

<div class="topic-metadata">

**Author:** [@Priyabrata\_Patra](https://www.ruby-forum.com/u/Priyabrata_Patra)\
**Replies:** 0\
**Last updated:** [January 15, 2008, 3:37pm UTC](https://www.ruby-forum.com/t/mobile-earning-without-investment/126114 "2008-01-15T15:37:17Z")

</div>

Hello, I found few genuine sites for earning through your mobile. http://www.sms2india.co.in/?user=patrapb http://www.youmint.com/network-patrapb mginger.com - This website is for sale! - mginger Resources and …

---

## [Rails plugins that use other plugins - why is does this seem impossible?](https://www.ruby-forum.com/t/rails-plugins-that-use-other-plugins-why-is-does-this-seem-impossible/126060)

<div class="topic-metadata">

**Author:** [@goodieboy](https://www.ruby-forum.com/u/goodieboy)\
**Replies:** 6\
**Last updated:** [January 15, 2008, 3:27pm UTC](https://www.ruby-forum.com/t/rails-plugins-that-use-other-plugins-why-is-does-this-seem-impossible/126060 "2008-01-15T15:27:53Z")

</div>

OK, probably the most frustrated I’ve ever been with Rails. If I don’t figure this out, I’m going to, um… try again tomorrow. I’m simply trying to create a plugin. I did the ./script/generate plugin MY\_NEW\_PLUGIN and …

---

## [Have "access management" plugin?](https://www.ruby-forum.com/t/have-access-management-plugin/126113)

<div class="topic-metadata">

**Author:** [@myst\_tt](https://www.ruby-forum.com/u/myst_tt)\
**Replies:** 0\
**Last updated:** [January 15, 2008, 2:49pm UTC](https://www.ruby-forum.com/t/have-access-management-plugin/126113 "2008-01-15T14:49:40Z")

</div>

Hi, everyone: I am now considering of the access function in my website app. For example, the normal user can only modify and destory his own comments, threads & uploaded attachments; user can choose hide his comment…

---

## [Can not save object](https://www.ruby-forum.com/t/can-not-save-object/126111)

<div class="topic-metadata">

**Author:** [@linus](https://www.ruby-forum.com/u/linus)\
**Replies:** 1\
**Last updated:** [January 15, 2008, 2:23pm UTC](https://www.ruby-forum.com/t/can-not-save-object/126111 "2008-01-15T14:23:08Z")

</div>

reload!; o=Order.find(2); o.exported!; puts Order.find(2).exported\_at =\> nil in order.rb: … def exported! res = false if self.exported\_at.nil? self.exported\_at = Time.now res = self.save else res = true end o…

---

## [Junebugwiki error on startup](https://www.ruby-forum.com/t/junebugwiki-error-on-startup/125992)

<div class="topic-metadata">

**Author:** [@n1c](https://www.ruby-forum.com/u/n1c)\
**Replies:** 5\
**Last updated:** [January 15, 2008, 2:06pm UTC](https://www.ruby-forum.com/t/junebugwiki-error-on-startup/125992 "2008-01-15T14:06:01Z")

</div>

Recently I had to restart my Junebug wiki and I’m receiving this error: /usr/lib/ruby/gems/1.8/gems/junebug-0.0.18/lib/junebug.rb:4: undefined method require\_gem' for main:Object (NoMethodError) from /usr/lib/ruby/gems…

---

## [Has\_many/belongs\_to relationship that doesn't use id](https://www.ruby-forum.com/t/has-many-belongs-to-relationship-that-doesnt-use-id/125630)

<div class="topic-metadata">

**Author:** [@Wildtangent](https://www.ruby-forum.com/u/Wildtangent)\
**Replies:** 3\
**Last updated:** [January 15, 2008, 1:45pm UTC](https://www.ruby-forum.com/t/has-many-belongs-to-relationship-that-doesnt-use-id/125630 "2008-01-15T13:45:00Z")

</div>

Hi, Banging by head against a wall here, and i’m sure this is easy I have a table called channel\_statistics and one called installations in both there is a column called node\_identifier I want to be able to do Chann…

---

## [About in place editing](https://www.ruby-forum.com/t/about-in-place-editing/126107)

<div class="topic-metadata">

**Author:** [@flyingzumwalt](https://www.ruby-forum.com/u/flyingzumwalt)\
**Replies:** 0\
**Last updated:** [January 15, 2008, 1:36pm UTC](https://www.ruby-forum.com/t/about-in-place-editing/126107 "2008-01-15T13:36:39Z")

</div>

Hi, I’m using the classic in\_place\_editing plugin now. Is it possible to update a column in a table at once? For example, I pick several records by checkbox and under all records there is a row which is empty. I can …

---

## [Html option in form\_for errors](https://www.ruby-forum.com/t/html-option-in-form-for-errors/126100)

<div class="topic-metadata">

**Author:** [@myst\_tt](https://www.ruby-forum.com/u/myst_tt)\
**Replies:** 2\
**Last updated:** [January 15, 2008, 1:20pm UTC](https://www.ruby-forum.com/t/html-option-in-form-for-errors/126100 "2008-01-15T13:20:18Z")

</div>

Hello, everyone: I tried the html option (multipart) to upload an image to server , but the form\_for always errors. If I remove the html option, it works. I have no idea the reason, looks like it is only a syntax err…

---

## [REST: Nesting map.resources and map.connect](https://www.ruby-forum.com/t/rest-nesting-map-resources-and-map-connect/126099)

<div class="topic-metadata">

**Author:** [@damaris](https://www.ruby-forum.com/u/damaris)\
**Replies:** 0\
**Last updated:** [January 15, 2008, 1:03pm UTC](https://www.ruby-forum.com/t/rest-nesting-map-resources-and-map-connect/126099 "2008-01-15T13:03:34Z")

</div>

Hi you all, I’m doing a REST app where some of the URLs are difficult to do it with map.resources, so I’ve still creating them with map.connect and named routes. So in routes.rb I have this: map.bugs\_by “bugs/by/:at…

---

## [Use link to post](https://www.ruby-forum.com/t/use-link-to-post/126071)

<div class="topic-metadata">

**Author:** [@fries88](https://www.ruby-forum.com/u/fries88)\
**Replies:** 6\
**Last updated:** [January 15, 2008, 12:54pm UTC](https://www.ruby-forum.com/t/use-link-to-post/126071 "2008-01-15T12:54:56Z")

</div>

Hi, I know I have been a little “long winded” but I really need to use link to do a post/submit. It is in one of the requirements of the project I am doing now. I have tried using \<%= link\_to\_function ‘Next’, “$(‘up…

---

## [Counter\_cache bug not resolved?](https://www.ruby-forum.com/t/counter-cache-bug-not-resolved/126092)

<div class="topic-metadata">

**Author:** [@jeanmartin](https://www.ruby-forum.com/u/jeanmartin)\
**Replies:** 2\
**Last updated:** [January 15, 2008, 12:44pm UTC](https://www.ruby-forum.com/t/counter-cache-bug-not-resolved/126092 "2008-01-15T12:44:57Z")

</div>

I’ve already filed a bug: http://dev.rubyonrails.org/ticket/10804 I’m still not sure if i’m missing something. When I update a child by setting the association method to nil, the counter of the parent does not get dec…

---

## [Remote file upload](https://www.ruby-forum.com/t/remote-file-upload/126089)

<div class="topic-metadata">

**Author:** [@Eivind\_LSSSSland-An](https://www.ruby-forum.com/u/Eivind_LSSSSland-An)\
**Replies:** 2\
**Last updated:** [January 15, 2008, 12:28pm UTC](https://www.ruby-forum.com/t/remote-file-upload/126089 "2008-01-15T12:28:25Z")

</div>

Hi, I have made simple file/document managent system with Ruby on Rails (2.0), and would like to simplify how the users upload files to the applicatation. I’m thinking of writing plugins to other applications, ie. a …

---

## [Newbie question about has\_and\_belongs\_to\_many and destroy](https://www.ruby-forum.com/t/newbie-question-about-has-and-belongs-to-many-and-destroy/126033)

<div class="topic-metadata">

**Author:** [@hazmatt](https://www.ruby-forum.com/u/hazmatt)\
**Replies:** 3\
**Last updated:** [January 15, 2008, 11:40am UTC](https://www.ruby-forum.com/t/newbie-question-about-has-and-belongs-to-many-and-destroy/126033 "2008-01-15T11:40:08Z")

</div>

Hi all. I think this must be a newbie moment, I really hope someone can help me out! :slight\_smile: I have a has\_and\_belongs\_to\_many relationship set up, all of which is working except for destroy! When I try to dele…

---

## [The connection was reset](https://www.ruby-forum.com/t/the-connection-was-reset/126090)

<div class="topic-metadata">

**Author:** [@mdebajo](https://www.ruby-forum.com/u/mdebajo)\
**Replies:** 0\
**Last updated:** [January 15, 2008, 11:36am UTC](https://www.ruby-forum.com/t/the-connection-was-reset/126090 "2008-01-15T11:36:01Z")

</div>

Hi! Firefox sometimes shows “The connection was reset. The connection to the server was reset while the page was loading.” while uploading files. Below are the details of the server. OS: Gentoo Webserver: nginx ( mo…

---

## [File upload problems when moving application to new server](https://www.ruby-forum.com/t/file-upload-problems-when-moving-application-to-new-server/124872)

<div class="topic-metadata">

**Author:** [@Eivind\_LSSSSland-An](https://www.ruby-forum.com/u/Eivind_LSSSSland-An)\
**Replies:** 1\
**Last updated:** [January 15, 2008, 11:27am UTC](https://www.ruby-forum.com/t/file-upload-problems-when-moving-application-to-new-server/124872 "2008-01-15T11:27:11Z")

</div>

I’m having some problems with file upload on my rails application. Everything works as expecteded, except file upload. I can upload some files (such as Word-documents), but others (such as InDesign- documents) results…

---

## [How can I get the date in UK format: 11th January 2008](https://www.ruby-forum.com/t/how-can-i-get-the-date-in-uk-format-11th-january-2008/125662)

<div class="topic-metadata">

**Author:** [@theogb](https://www.ruby-forum.com/u/theogb)\
**Replies:** 5\
**Last updated:** [January 15, 2008, 10:55am UTC](https://www.ruby-forum.com/t/how-can-i-get-the-date-in-uk-format-11th-january-2008/125662 "2008-01-15T10:55:26Z")

</div>

This sounds trivial but it’s annoying me. The UK format for a full date would be Friday 11th January 2008 or 11th January 2008. However, date.to\_s(:long) gives “January 11, 2008” Is there a way to get different dates…

---

## [Writing a Rails blog that supports Blogger API?](https://www.ruby-forum.com/t/writing-a-rails-blog-that-supports-blogger-api/126083)

<div class="topic-metadata">

**Author:** [@jeff](https://www.ruby-forum.com/u/jeff)\
**Replies:** 2\
**Last updated:** [January 15, 2008, 10:47am UTC](https://www.ruby-forum.com/t/writing-a-rails-blog-that-supports-blogger-api/126083 "2008-01-15T10:47:10Z")

</div>

Part of the current project that I’m working on is a blog, and one of the things I’d like to do is be able to post to the blog from other applications, using a common interface. Right now I use the program Windows Liv…

---

## [Anyone else frustrated with days\_in\_month?](https://www.ruby-forum.com/t/anyone-else-frustrated-with-days-in-month/126065)

<div class="topic-metadata">

**Author:** [@stimpy](https://www.ruby-forum.com/u/stimpy)\
**Replies:** 1\
**Last updated:** [January 15, 2008, 10:14am UTC](https://www.ruby-forum.com/t/anyone-else-frustrated-with-days-in-month/126065 "2008-01-15T10:14:57Z")

</div>

I posted a patch (my first) and I was looking for some kind of input on it from the community. http://dev.rubyonrails.org/ticket/10799 What did I do right? What did I do wrong? How much do you love it? – Ryan B. …

---

## [Cant install psql adapter for rails 2.0](https://www.ruby-forum.com/t/cant-install-psql-adapter-for-rails-2-0/126036)

<div class="topic-metadata">

**Author:** [@inriz](https://www.ruby-forum.com/u/inriz)\
**Replies:** 2\
**Last updated:** [January 15, 2008, 9:42am UTC](https://www.ruby-forum.com/t/cant-install-psql-adapter-for-rails-2-0/126036 "2008-01-15T09:42:31Z")

</div>

hello list, i set up a new rails instance with the new rails 2.0 lib. i installed rails 2.0 over my earlier version of rails where is add postgres support via gem install postgres so the error with postgres appears …

---

## [Howto get stuff to happen automatically?](https://www.ruby-forum.com/t/howto-get-stuff-to-happen-automatically/126066)

<div class="topic-metadata">

**Author:** [@galeal](https://www.ruby-forum.com/u/galeal)\
**Replies:** 6\
**Last updated:** [January 15, 2008, 6:23am UTC](https://www.ruby-forum.com/t/howto-get-stuff-to-happen-automatically/126066 "2008-01-15T06:23:52Z")

</div>

I’m trying to get certain emails sent at a certain datetime. So I have a column in my table called “due\_by”, as soon as it’s overdue is it possible to get an automatic email notification? How do people get stuff like …

---

## [Problem with Rails 2 and XML Builder](https://www.ruby-forum.com/t/problem-with-rails-2-and-xml-builder/126070)

<div class="topic-metadata">

**Author:** [@chirag](https://www.ruby-forum.com/u/chirag)\
**Replies:** 0\
**Last updated:** [January 15, 2008, 6:18am UTC](https://www.ruby-forum.com/t/problem-with-rails-2-and-xml-builder/126070 "2008-01-15T06:18:59Z")

</div>

I get the following error after converting to Rails 2 when trying to serve an XML file (xml.builder file) ActionController::MissingTemplate (Missing template chart/ refresh\_activity\_data.html.erb in view path /Users/m…

---

## [To edit a form with has\_many relation](https://www.ruby-forum.com/t/to-edit-a-form-with-has-many-relation/126064)

<div class="topic-metadata">

**Author:** [@suneeta](https://www.ruby-forum.com/u/suneeta)\
**Replies:** 0\
**Last updated:** [January 15, 2008, 5:12am UTC](https://www.ruby-forum.com/t/to-edit-a-form-with-has-many-relation/126064 "2008-01-15T05:12:54Z")

</div>

Hi… I have 2 tables contacts and contact\_addresses In the model contact.rb I wrote: has\_many :contact\_addresses and in contact\_address.rb belongs\_to :contact Each contact may have more than one address in contact\_a…

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

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