# Rails

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

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

---

## [Dot Matrix Printer](https://www.ruby-forum.com/t/dot-matrix-printer/155119)

<div class="topic-metadata">

**Author:** [@mjayakumar2k6](https://www.ruby-forum.com/u/mjayakumar2k6)\
**Replies:** 0\
**Last updated:** [December 8, 2008, 11:35am UTC](https://www.ruby-forum.com/t/dot-matrix-printer/155119 "2008-12-08T11:35:16Z")

</div>

Hi, Anybody have done a report for dot matrix printer. "Tell me any reference" if you.know? Thanks in Advance, JK

---

## [To get the id value from parent table to child table](https://www.ruby-forum.com/t/to-get-the-id-value-from-parent-table-to-child-table/197223)

<div class="topic-metadata">

**Author:** [@rbalaji](https://www.ruby-forum.com/u/rbalaji)\
**Replies:** 0\
**Last updated:** [December 8, 2008, 10:53am UTC](https://www.ruby-forum.com/t/to-get-the-id-value-from-parent-table-to-child-table/197223 "2008-12-08T10:53:56Z")

</div>

Hi Im using 5 tables and one parent table and 4 child tables To get the id value from parent table to child table.To store the values in databases and display the bugs parent table id is compare to child table is re…

---

## [How to upload file by ajax](https://www.ruby-forum.com/t/how-to-upload-file-by-ajax/155112)

<div class="topic-metadata">

**Author:** [@nuugii](https://www.ruby-forum.com/u/nuugii)\
**Replies:** 1\
**Last updated:** [December 8, 2008, 9:55am UTC](https://www.ruby-forum.com/t/how-to-upload-file-by-ajax/155112 "2008-12-08T09:55:51Z")

</div>

Hey’ How to upload file with ajax in ROR? My code not working :frowning: View file : \<% form\_remote\_tag(:url =\> { :controller =\> ‘Upload’, :action =\> ‘uploadFile’}, :update =\> “result”, :position =\> :bottom :html…

---

## [Searching using ajax:](https://www.ruby-forum.com/t/searching-using-ajax/155115)

<div class="topic-metadata">

**Author:** [@sreekanth.G](https://www.ruby-forum.com/u/sreekanth.G)\
**Replies:** 0\
**Last updated:** [December 8, 2008, 9:44am UTC](https://www.ruby-forum.com/t/searching-using-ajax/155115 "2008-12-08T09:44:07Z")

</div>

hi i have a table called Streams with columns name,resolution,codecname,framerate. i have tags to the table entries if streams.like 1920x1080,aac,mpeg2… now i have to search the table entries for tag entered in the se…

---

## [An error of gem install](https://www.ruby-forum.com/t/an-error-of-gem-install/155110)

<div class="topic-metadata">

**Author:** [@youhaodeyi](https://www.ruby-forum.com/u/youhaodeyi)\
**Replies:** 0\
**Last updated:** [December 8, 2008, 9:16am UTC](https://www.ruby-forum.com/t/an-error-of-gem-install/155110 "2008-12-08T09:16:10Z")

</div>

I worked on gem 0.9.4 in Fedora9 and when I run gem install \*\* I will get this error: ERROR: While executing gem … (NoMethodError) undefined method \`\[\]=’ for #Gem::ConfigFile:0xb7eaa3dc Does anyone know this issue? …

---

## [To get the id value from parent table to child table](https://www.ruby-forum.com/t/to-get-the-id-value-from-parent-table-to-child-table/155111)

<div class="topic-metadata">

**Author:** [@rbalaji](https://www.ruby-forum.com/u/rbalaji)\
**Replies:** 0\
**Last updated:** [December 8, 2008, 9:14am UTC](https://www.ruby-forum.com/t/to-get-the-id-value-from-parent-table-to-child-table/155111 "2008-12-08T09:14:50Z")

</div>

Hi Im using 5 tables and one parent table and 4 child tables To get the id value from parent table to child table.To store the values in databases and display the bugs parent table id is compare to child table is re…

---

## [How to test a generator for a plugin](https://www.ruby-forum.com/t/how-to-test-a-generator-for-a-plugin/155104)

<div class="topic-metadata">

**Author:** [@student](https://www.ruby-forum.com/u/student)\
**Replies:** 0\
**Last updated:** [December 8, 2008, 6:55am UTC](https://www.ruby-forum.com/t/how-to-test-a-generator-for-a-plugin/155104 "2008-12-08T06:55:33Z")

</div>

I’m adding a generator to a popular plugin, and the core team has sensibly requested that I submit tests for the generator. Unfortunately, there seems to be a lot of code tied to railties in the rails generator tests.…

---

## [Does passing the params collection to a model break mvc?](https://www.ruby-forum.com/t/does-passing-the-params-collection-to-a-model-break-mvc/154957)

<div class="topic-metadata">

**Author:** [@blinking\_bear](https://www.ruby-forum.com/u/blinking_bear)\
**Replies:** 3\
**Last updated:** [December 8, 2008, 6:11am UTC](https://www.ruby-forum.com/t/does-passing-the-params-collection-to-a-model-break-mvc/154957 "2008-12-08T06:11:09Z")

</div>

I want to pass the params collection from the controller to the model to parse filtering and sorting conditions. Does having a method in the model that takes the params from the controller break MVC?

---

## ['Admin::UsersHelper' is already used problem](https://www.ruby-forum.com/t/admin-usershelper-is-already-used-problem/150384)

<div class="topic-metadata">

**Author:** [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Replies:** 11\
**Last updated:** [December 8, 2008, 3:14am UTC](https://www.ruby-forum.com/t/admin-usershelper-is-already-used-problem/150384 "2008-12-08T03:14:39Z")

</div>

Hi, I’m getting the next error: The name ‘Admin::UsersHelper’ is either already used in your application or reserved by Ruby on Rails. When trying to run: ruby script/generate controller Admin::Users I’ve done some…

---

## [Instant Messaging](https://www.ruby-forum.com/t/instant-messaging/155053)

<div class="topic-metadata">

**Author:** [@tashfeen.ekram](https://www.ruby-forum.com/u/tashfeen.ekram)\
**Replies:** 2\
**Last updated:** [December 8, 2008, 1:25am UTC](https://www.ruby-forum.com/t/instant-messaging/155053 "2008-12-08T01:25:20Z")

</div>

i am building an app that will need the ability of insant messaging within browser similar to google talk. here is a nice plugin i found: http://blog.blippr.com/post/51345818/dead-simple-instant-messaging-in-rails-app…

---

## [Mongrel doesn't expose it's ports](https://www.ruby-forum.com/t/mongrel-doesnt-expose-its-ports/132325)

<div class="topic-metadata">

**Author:** [@tbobker](https://www.ruby-forum.com/u/tbobker)\
**Replies:** 10\
**Last updated:** [December 8, 2008, 12:26am UTC](https://www.ruby-forum.com/t/mongrel-doesnt-expose-its-ports/132325 "2008-12-08T00:26:44Z")

</div>

Here is my mongrel\_cluster.yml cwd: /var/www/apps/MyApplication log\_file: log/mongrel.log port: “8000” environment: production address: 127.0.0.1 pid\_file: tmp/pids/mongrel.pid servers: 2 Now I type: mongrel\_r…

---

## [Termios in RoR](https://www.ruby-forum.com/t/termios-in-ror/155099)

<div class="topic-metadata">

**Author:** [@Miquel\_O](https://www.ruby-forum.com/u/Miquel_O)\
**Replies:** 0\
**Last updated:** [December 8, 2008, 12:25am UTC](https://www.ruby-forum.com/t/termios-in-ror/155099 "2008-12-08T00:25:43Z")

</div>

Hi there I’m trying to deploy my first RoR application in a little domestic server. I’m following the Agile Web D. with Rails book chapter #27 (Deployment and Production) and I’m experiencing problems installing the …

---

## [Sum enumeration with LIMIT](https://www.ruby-forum.com/t/sum-enumeration-with-limit/155091)

<div class="topic-metadata">

**Author:** [@yajiri](https://www.ruby-forum.com/u/yajiri)\
**Replies:** 3\
**Last updated:** [December 8, 2008, 12:07am UTC](https://www.ruby-forum.com/t/sum-enumeration-with-limit/155091 "2008-12-08T00:07:33Z")

</div>

Hi everyone. I’m trying to SUM the places of the first 5 finishers in a Cross Country running event. In a Cross Country race the team score is based upon the sum of the top 5 runners on your team. The lowest team s…

---

## [Strange 500 Error with namespace::controller#action appearing in reload only](https://www.ruby-forum.com/t/strange-500-error-with-namespace-controller-action-appearing-in-reload-only/155089)

<div class="topic-metadata">

**Author:** [@Nik\_B](https://www.ruby-forum.com/u/Nik_B)\
**Replies:** 2\
**Last updated:** [December 7, 2008, 8:18pm UTC](https://www.ruby-forum.com/t/strange-500-error-with-namespace-controller-action-appearing-in-reload-only/155089 "2008-12-07T20:18:49Z")

</div>

The portion of the log linked below is two requests directly out of the log file for the same action. The first request was from me putting the address in the browser directly (but can be duplicated by linking to the …

---

## [Sqlite3 has gone](https://www.ruby-forum.com/t/sqlite3-has-gone/153736)

<div class="topic-metadata">

**Author:** [@Jej](https://www.ruby-forum.com/u/Jej)\
**Replies:** 8\
**Last updated:** [December 7, 2008, 8:11pm UTC](https://www.ruby-forum.com/t/sqlite3-has-gone/153736 "2008-12-07T20:11:12Z")

</div>

Hi all, I’m struggling since hours with sqlite3. Maybe I’m wrong to post here, as I feel the problem is not directly related to rails. After a “gem clean” this morning, mongrel doesn’t want to start anymore: /Librar…

---

## [\[Bug\] !nil returns false for partial instance variable in specific conditions](https://www.ruby-forum.com/t/bug-nil-returns-false-for-partial-instance-variable-in-specific-conditions/155061)

<div class="topic-metadata">

**Author:** [@vikrant](https://www.ruby-forum.com/u/vikrant)\
**Replies:** 3\
**Last updated:** [December 7, 2008, 6:35pm UTC](https://www.ruby-forum.com/t/bug-nil-returns-false-for-partial-instance-variable-in-specific-conditions/155061 "2008-12-07T18:35:29Z")

</div>

Hi, If we call a partial with a name such that there also exists a instance variable with the same name (ex: @identity) in the controller then passing :object =\> nil to render() and calling (! identity).inspect in ‘\_…

---

## [Boolean button helper](https://www.ruby-forum.com/t/boolean-button-helper/155085)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [December 7, 2008, 6:09pm UTC](https://www.ruby-forum.com/t/boolean-button-helper/155085 "2008-12-07T18:09:05Z")

</div>

I don’t have a blog, but wanted to share this little bit of code with other semi-beginners like myself who are still learning to take advantage of rails features. Selecting an attribute with a boolean switch is a comm…

---

## [How to describe self join in a model](https://www.ruby-forum.com/t/how-to-describe-self-join-in-a-model/155071)

<div class="topic-metadata">

**Author:** [@ali](https://www.ruby-forum.com/u/ali)\
**Replies:** 1\
**Last updated:** [December 7, 2008, 4:51pm UTC](https://www.ruby-forum.com/t/how-to-describe-self-join-in-a-model/155071 "2008-12-07T16:51:07Z")

</div>

Hi , I am new to rails, and i need to know one thing, i have a table called Categories and i want to self join it in such a way , that one category could be a parent of many categories, but could be child of only one…

---

## [New database integration with Rails](https://www.ruby-forum.com/t/new-database-integration-with-rails/155082)

<div class="topic-metadata">

**Author:** [@ollie](https://www.ruby-forum.com/u/ollie)\
**Replies:** 2\
**Last updated:** [December 7, 2008, 4:24pm UTC](https://www.ruby-forum.com/t/new-database-integration-with-rails/155082 "2008-12-07T16:24:08Z")

</div>

What would be involved in adding a new Database implementation to Rails? We have a JDBC implementation that connects to a new Daabase type that we want to use behind Rails. I assume we need to build a “Migration” clas…

---

## [Printing with rails](https://www.ruby-forum.com/t/printing-with-rails/155048)

<div class="topic-metadata">

**Author:** [@Jaikishan\_J](https://www.ruby-forum.com/u/Jaikishan_J)\
**Replies:** 3\
**Last updated:** [December 7, 2008, 4:00pm UTC](https://www.ruby-forum.com/t/printing-with-rails/155048 "2008-12-07T16:00:02Z")

</div>

Hello, I have a button which when clicks sends exam\_id to server. The method queries results of all the students who has appeared in this exam (No. of student \> 30). I want to now print this data at client side. I am …

---

## [How to delete Next and Previous from will\_paginate](https://www.ruby-forum.com/t/how-to-delete-next-and-previous-from-will-paginate/155075)

<div class="topic-metadata">

**Author:** [@shuaib85](https://www.ruby-forum.com/u/shuaib85)\
**Replies:** 1\
**Last updated:** [December 7, 2008, 3:24pm UTC](https://www.ruby-forum.com/t/how-to-delete-next-and-previous-from-will-paginate/155075 "2008-12-07T15:24:52Z")

</div>

Hi there I am using will paginate in several scenarios. I want to delete the next and previous from it. Is there a way?

---

## [Any idea](https://www.ruby-forum.com/t/any-idea/155067)

<div class="topic-metadata">

**Author:** [@raj\_vuppala](https://www.ruby-forum.com/u/raj_vuppala)\
**Replies:** 1\
**Last updated:** [December 7, 2008, 3:16pm UTC](https://www.ruby-forum.com/t/any-idea/155067 "2008-12-07T15:16:40Z")

</div>

hi this is raj, i want to create search in my application. Any ideas or any links that help me to create appreciable. Thanks

---

## [How can I use rails in my public\_html](https://www.ruby-forum.com/t/how-can-i-use-rails-in-my-public-html/155012)

<div class="topic-metadata">

**Author:** [@tristan](https://www.ruby-forum.com/u/tristan)\
**Replies:** 3\
**Last updated:** [December 7, 2008, 2:18pm UTC](https://www.ruby-forum.com/t/how-can-i-use-rails-in-my-public-html/155012 "2008-12-07T14:18:02Z")

</div>

I have no root permission on the server, only a public\_html in my $HOME. The http server is not apache; it only support cgi script. Can I use rails in my public\_html?

---

## [Grouped Graph In Scruffy](https://www.ruby-forum.com/t/grouped-graph-in-scruffy/155069)

<div class="topic-metadata">

**Author:** [@atul](https://www.ruby-forum.com/u/atul)\
**Replies:** 0\
**Last updated:** [December 7, 2008, 12:29pm UTC](https://www.ruby-forum.com/t/grouped-graph-in-scruffy/155069 "2008-12-07T12:29:31Z")

</div>

Is there any way to create Grouped Graph using scruffy in Rails…in my application i have to create grouped graph along with other stacked graph.

---

## [Find active record condition of not equal](https://www.ruby-forum.com/t/find-active-record-condition-of-not-equal/155066)

<div class="topic-metadata">

**Author:** [@tyanlion](https://www.ruby-forum.com/u/tyanlion)\
**Replies:** 4\
**Last updated:** [December 7, 2008, 10:52am UTC](https://www.ruby-forum.com/t/find-active-record-condition-of-not-equal/155066 "2008-12-07T10:52:20Z")

</div>

Hi, I have tried creating a not equal condition in the find statment but it just outputs an empty array. model.find(:first, :conditions =\> \[" id = ? AND market = ? AND promotion \<\> ? " , id , name, “y”\],:order =\> ‘id…

---

## [Single Text\_Area for multiple records](https://www.ruby-forum.com/t/single-text-area-for-multiple-records/153990)

<div class="topic-metadata">

**Author:** [@smfrick](https://www.ruby-forum.com/u/smfrick)\
**Replies:** 3\
**Last updated:** [December 7, 2008, 10:48am UTC](https://www.ruby-forum.com/t/single-text-area-for-multiple-records/153990 "2008-12-07T10:48:14Z")

</div>

I have an application I’ve developed where there is a record of data which is entered line by line, I’ve got that working fine. The form now only has one field, because that’s all the data which is required. I would…

---

## [Search implimentation for tags](https://www.ruby-forum.com/t/search-implimentation-for-tags/154939)

<div class="topic-metadata">

**Author:** [@srikanth](https://www.ruby-forum.com/u/srikanth)\
**Replies:** 2\
**Last updated:** [December 7, 2008, 10:46am UTC](https://www.ruby-forum.com/t/search-implimentation-for-tags/154939 "2008-12-07T10:46:28Z")

</div>

hi, i am implementing a search box from index page,search box allow s the tag name to be searched and it should display the results on the other page. if enter a tag name in search box once i press the search button …

---

## [From within a View, how can I render the text output from a separate controller action?](https://www.ruby-forum.com/t/from-within-a-view-how-can-i-render-the-text-output-from-a-separate-controller-action/154989)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 3\
**Last updated:** [December 7, 2008, 5:47am UTC](https://www.ruby-forum.com/t/from-within-a-view-how-can-i-render-the-text-output-from-a-separate-controller-action/154989 "2008-12-07T05:47:44Z")

</div>

Hi, Question = From within a View, how can I render the text output from a separate controller action??? (call it graph/get\_data) So it’s not a partial, as what I want to do is make a separate call to get the data t…

---

## [Multiple database connections](https://www.ruby-forum.com/t/multiple-database-connections/154918)

<div class="topic-metadata">

**Author:** [@Mukund](https://www.ruby-forum.com/u/Mukund)\
**Replies:** 1\
**Last updated:** [December 7, 2008, 4:51am UTC](https://www.ruby-forum.com/t/multiple-database-connections/154918 "2008-12-07T04:51:04Z")

</div>

For multiple database connections, is it better to have a mixin included into the model that does a establish connection on included event or is it better to have an abstract class that establishes the connnection an…

---

## [Memoization on freeze](https://www.ruby-forum.com/t/memoization-on-freeze/155044)

<div class="topic-metadata">

**Author:** [@random52k](https://www.ruby-forum.com/u/random52k)\
**Replies:** 1\
**Last updated:** [December 7, 2008, 4:31am UTC](https://www.ruby-forum.com/t/memoization-on-freeze/155044 "2008-12-07T04:31:46Z")

</div>

Hey alI, I like the new support for memoizable methods in Rails 2.2. However, I’m running into a problem that’s making it hard to use in my case. My ActiveRecord model has a method that does a lot of data crunching, …

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

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