# Rails

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

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

---

## [How i can create site map](https://www.ruby-forum.com/t/how-i-can-create-site-map/92235)

<div class="topic-metadata">

**Author:** [@thameem](https://www.ruby-forum.com/u/thameem)\
**Replies:** 0\
**Last updated:** [April 17, 2007, 11:24am UTC](https://www.ruby-forum.com/t/how-i-can-create-site-map/92235 "2007-04-17T11:24:30Z")

</div>

hi flocks…, i am a newbie to rails plz help me…!! How i can create the site map and menu page…??? Thanks

---

## [Verify a statement about AR Base delete vs. destroy](https://www.ruby-forum.com/t/verify-a-statement-about-ar-base-delete-vs-destroy/92178)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 1\
**Last updated:** [April 17, 2007, 11:05am UTC](https://www.ruby-forum.com/t/verify-a-statement-about-ar-base-delete-vs-destroy/92178 "2007-04-17T11:05:22Z")

</div>

If I call the delete(id) method on a AR Base descendant, should I expect the automatic deletion of child records specified via has\_many :children, :dependent =\> :delete\_all to occur or not? Thanks, Wes

---

## [Need help iterating over attributes of a Active record objec](https://www.ruby-forum.com/t/need-help-iterating-over-attributes-of-a-active-record-objec/92229)

<div class="topic-metadata">

**Author:** [@GuSSSSni\_Hilmarsson](https://www.ruby-forum.com/u/GuSSSSni_Hilmarsson)\
**Replies:** 2\
**Last updated:** [April 17, 2007, 11:01am UTC](https://www.ruby-forum.com/t/need-help-iterating-over-attributes-of-a-active-record-objec/92229 "2007-04-17T11:01:45Z")

</div>

Hi all… I need help with a little ruby code. I am trying to output every attribute of an actice record object something like: \<% for product in @products %\> \<% for each product.attribute |attribute| %\> \<% …

---

## [Help iterating over attributes of an AR object](https://www.ruby-forum.com/t/help-iterating-over-attributes-of-an-ar-object/92230)

<div class="topic-metadata">

**Author:** [@GuSSSSni\_Hilmarsson](https://www.ruby-forum.com/u/GuSSSSni_Hilmarsson)\
**Replies:** 0\
**Last updated:** [April 17, 2007, 10:39am UTC](https://www.ruby-forum.com/t/help-iterating-over-attributes-of-an-ar-object/92230 "2007-04-17T10:39:43Z")

</div>

Hi all… I need help with a little ruby code. I am trying to output every attribute of an active record object something like: \<% for product in @products %\> \<% for each product.attributes |attribute| %\> \<%= prod…

---

## [Upload image](https://www.ruby-forum.com/t/upload-image/92228)

<div class="topic-metadata">

**Author:** [@mluired](https://www.ruby-forum.com/u/mluired)\
**Replies:** 0\
**Last updated:** [April 17, 2007, 9:44am UTC](https://www.ruby-forum.com/t/upload-image/92228 "2007-04-17T09:44:23Z")

</div>

My problem is because of the following message : undefined method \`original\_filename’ for “Arellano.pdf”:String controller : params\[:vestuario\]\[:nombre\] = sanitize\_filename(params\[:vestuario\]\[:nombre\]) params\[:vestu…

---

## [How can i found log file of mongrel?](https://www.ruby-forum.com/t/how-can-i-found-log-file-of-mongrel/92218)

<div class="topic-metadata">

**Author:** [@feng](https://www.ruby-forum.com/u/feng)\
**Replies:** 2\
**Last updated:** [April 17, 2007, 8:11am UTC](https://www.ruby-forum.com/t/how-can-i-found-log-file-of-mongrel/92218 "2007-04-17T08:11:10Z")

</div>

dear all, I run a mongrel as my RoR web server. But if I want to see some log file, ex: error.log, access.log. Where can I find them ? thanks -feng

---

## [Tomcat and Rails](https://www.ruby-forum.com/t/tomcat-and-rails/92210)

<div class="topic-metadata">

**Author:** [@Zirael](https://www.ruby-forum.com/u/Zirael)\
**Replies:** 4\
**Last updated:** [April 17, 2007, 7:50am UTC](https://www.ruby-forum.com/t/tomcat-and-rails/92210 "2007-04-17T07:50:30Z")

</div>

I developed jsp application on Tomcat, now I decided to change this app to Rails. I couldn’t do this at ones so in the beginning I want to serve in rails only some part of my system. What do you think about that? Is …

---

## [Widgets](https://www.ruby-forum.com/t/widgets/92221)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [April 17, 2007, 7:28am UTC](https://www.ruby-forum.com/t/widgets/92221 "2007-04-17T07:28:29Z")

</div>

http://www.teenwag.com/widget

---

## [Need help in Routing](https://www.ruby-forum.com/t/need-help-in-routing/92220)

<div class="topic-metadata">

**Author:** [@thameem](https://www.ruby-forum.com/u/thameem)\
**Replies:** 1\
**Last updated:** [April 17, 2007, 7:23am UTC](https://www.ruby-forum.com/t/need-help-in-routing/92220 "2007-04-17T07:23:53Z")

</div>

hi all, i have 2 controllers: 1) Login 2) admin When i am logging in my application i want to navigate it into admin controller, Can anybody here help me…,??

---

## [Set\_primary\_key issue](https://www.ruby-forum.com/t/set-primary-key-issue/92219)

<div class="topic-metadata">

**Author:** [@jefflin](https://www.ruby-forum.com/u/jefflin)\
**Replies:** 0\
**Last updated:** [April 17, 2007, 6:52am UTC](https://www.ruby-forum.com/t/set-primary-key-issue/92219 "2007-04-17T06:52:26Z")

</div>

Hi: I am new to the ruby and rails. What I am tried to do is to create a scaffold based on an existing table in a MS SQL Server database. Before I used the set\_primary\_key method, edit and show does not work in the g…

---

## [\[Announcement\] erubycon :: Enterprise Ruby Conference in Col](https://www.ruby-forum.com/t/announcement-erubycon-enterprise-ruby-conference-in-col/92202)

<div class="topic-metadata">

**Author:** [@moontan](https://www.ruby-forum.com/u/moontan)\
**Replies:** 1\
**Last updated:** [April 17, 2007, 5:41am UTC](https://www.ruby-forum.com/t/announcement-erubycon-enterprise-ruby-conference-in-col/92202 "2007-04-17T05:41:12Z")

</div>

I know there can be a lot of clutter on the list. Please overlook this if you are uninterested. Please tell other people if a conference on ruby in the enterprise does interest you. thanks. ken erubycon, July 16-…

---

## [Why using ajax just stop processing javascript](https://www.ruby-forum.com/t/why-using-ajax-just-stop-processing-javascript/92214)

<div class="topic-metadata">

**Author:** [@Trans](https://www.ruby-forum.com/u/Trans)\
**Replies:** 0\
**Last updated:** [April 17, 2007, 5:41am UTC](https://www.ruby-forum.com/t/why-using-ajax-just-stop-processing-javascript/92214 "2007-04-17T05:41:12Z")

</div>

Hi– I’m very frustrated as I have now spent 4 hours on this and have gotten no where. Here’s the snippet from the top of index.rhtml: new Ajax.Request('/allocations/schedule\_data', { method:'get', re…

---

## [ImageScience](https://www.ruby-forum.com/t/imagescience/91153)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [April 17, 2007, 5:23am UTC](https://www.ruby-forum.com/t/imagescience/91153 "2007-04-17T05:23:02Z")

</div>

I’m trying to install Image Science on my Mac (according to the instructions on http://seattlerb.rubyforge.org/ImageScience.html) so I can use attachment\_fu for image resizing. However the commands beginning with ‘sud…

---

## [Manual for PDF::Writer and the railspdf plugin](https://www.ruby-forum.com/t/manual-for-pdf-writer-and-the-railspdf-plugin/92203)

<div class="topic-metadata">

**Author:** [@ptremblett](https://www.ruby-forum.com/u/ptremblett)\
**Replies:** 7\
**Last updated:** [April 17, 2007, 4:58am UTC](https://www.ruby-forum.com/t/manual-for-pdf-writer-and-the-railspdf-plugin/92203 "2007-04-17T04:58:11Z")

</div>

Hi, Can someone help me please? I am a noob to both Ruby and Rails. I have downloaded and installed PDF::Writer and the railspdf plugin. I need more documentation, The PDF::Writer readme says to generate the manual u…

---

## [Anyway to get \<\< working with has\_many through in Rails 1.2?](https://www.ruby-forum.com/t/anyway-to-get-working-with-has-many-through-in-rails-1-2/92157)

<div class="topic-metadata">

**Author:** [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Replies:** 1\
**Last updated:** [April 17, 2007, 4:38am UTC](https://www.ruby-forum.com/t/anyway-to-get-working-with-has-many-through-in-rails-1-2/92157 "2007-04-17T04:38:28Z")

</div>

Is there any way to get the edge rails feature that allows you to do use \<\< to add an object to a relationship, just like in the HABTM. I know Josh S. talked about about how someone released a fix for it, but it di…

---

## [File\_column on dreamhost](https://www.ruby-forum.com/t/file-column-on-dreamhost/92209)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [April 17, 2007, 4:19am UTC](https://www.ruby-forum.com/t/file-column-on-dreamhost/92209 "2007-04-17T04:19:09Z")

</div>

I am having trouble displaying an image after it is uploaded using file\_column on Dreamhost. If I tell .htaccess to let the URL’s to the file\_column folders the image will display, but I can no longer upload an image…

---

## [backgrounDrb 0.2.1 seemed to cause site inaccessible](https://www.ruby-forum.com/t/backgroundrb-0-2-1-seemed-to-cause-site-inaccessible/92164)

<div class="topic-metadata">

**Author:** [@neng](https://www.ruby-forum.com/u/neng)\
**Replies:** 2\
**Last updated:** [April 17, 2007, 3:09am UTC](https://www.ruby-forum.com/t/backgroundrb-0-2-1-seemed-to-cause-site-inaccessible/92164 "2007-04-17T03:09:05Z")

</div>

Hi All, This is the first time I post to this group. I don’t know how much info I should provide so that you can help us to debug. I just put what I thougth would be relevant. If you need more info, please let me kno…

---

## [Can Rails 1.1.6 and 1.2 coexist on the same server?](https://www.ruby-forum.com/t/can-rails-1-1-6-and-1-2-coexist-on-the-same-server/92184)

<div class="topic-metadata">

**Author:** [@Long](https://www.ruby-forum.com/u/Long)\
**Replies:** 3\
**Last updated:** [April 17, 2007, 2:03am UTC](https://www.ruby-forum.com/t/can-rails-1-1-6-and-1-2-coexist-on-the-same-server/92184 "2007-04-17T02:03:00Z")

</div>

So I am still on Rails 1.1.6 but want to start planning for migration to 1.2. Before I go and install 1.2 over my 1.1.6 environment I want to make sure things will not get messed up. It seems like I can select a Rai…

---

## [Plastic Surgery for RDOC](https://www.ruby-forum.com/t/plastic-surgery-for-rdoc/92163)

<div class="topic-metadata">

**Author:** [@pimpmaster](https://www.ruby-forum.com/u/pimpmaster)\
**Replies:** 5\
**Last updated:** [April 17, 2007, 1:44am UTC](https://www.ruby-forum.com/t/plastic-surgery-for-rdoc/92163 "2007-04-17T01:44:59Z")

</div>

I dont know about you guys, but personally I think the standard Rails documentation leaves much to be desired. The blue header, the vanilla code examples… the whole iframes thing. You can tell it was designed by a pro…

---

## [Sendmail config](https://www.ruby-forum.com/t/sendmail-config/92061)

<div class="topic-metadata">

**Author:** [@taylorstrait](https://www.ruby-forum.com/u/taylorstrait)\
**Replies:** 2\
**Last updated:** [April 17, 2007, 1:41am UTC](https://www.ruby-forum.com/t/sendmail-config/92061 "2007-04-17T01:41:59Z")

</div>

Linux rookie here. To send mail from my rails app, is all I need: sendmail user name/pw For example, here is my config: mail server config config.action\_mailer.delivery\_method = :smtp config.action\_mailer.server\_s…

---

## [Best way to check if record exists? count with limit 1?](https://www.ruby-forum.com/t/best-way-to-check-if-record-exists-count-with-limit-1/92107)

<div class="topic-metadata">

**Author:** [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Replies:** 9\
**Last updated:** [April 17, 2007, 12:46am UTC](https://www.ruby-forum.com/t/best-way-to-check-if-record-exists-count-with-limit-1/92107 "2007-04-17T00:46:56Z")

</div>

I have a check between friends that is happening on each listing. Right now I do @c.friends.find(:first, :conditions=\> \[“id=?”,users\]) This seems kind of overkill. For something like this, would you guys recommend: @…

---

## [3 models in 1 template](https://www.ruby-forum.com/t/3-models-in-1-template/92069)

<div class="topic-metadata">

**Author:** [@raven13](https://www.ruby-forum.com/u/raven13)\
**Replies:** 6\
**Last updated:** [April 17, 2007, 12:22am UTC](https://www.ruby-forum.com/t/3-models-in-1-template/92069 "2007-04-17T00:22:54Z")

</div>

hello, I’d like to get user data in one template. The relations are: user has\_one user\_adress user has\_one user\_account The following template doesn’t save any (valid) data. I think the submit button doesn’t work. …

---

## [After loading model, can it be again accessed without SQL](https://www.ruby-forum.com/t/after-loading-model-can-it-be-again-accessed-without-sql/92154)

<div class="topic-metadata">

**Author:** [@mercurykjb](https://www.ruby-forum.com/u/mercurykjb)\
**Replies:** 3\
**Last updated:** [April 17, 2007, 12:08am UTC](https://www.ruby-forum.com/t/after-loading-model-can-it-be-again-accessed-without-sql/92154 "2007-04-17T00:08:53Z")

</div>

Quick question: 1 User -\> many Accounts If I eager load the user with: my\_user = User.find(:first, include =\> \[:accounts\]) How can I then use criteria to work with the “accounts” without making another query to the …

---

## [Insert multiple rows in single query wrapped in Rails magic?](https://www.ruby-forum.com/t/insert-multiple-rows-in-single-query-wrapped-in-rails-magic/92197)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [April 17, 2007, 12:07am UTC](https://www.ruby-forum.com/t/insert-multiple-rows-in-single-query-wrapped-in-rails-magic/92197 "2007-04-17T00:07:41Z")

</div>

Hello all, I’m trying to create a number of records in a single table using only a single SQL query (to reduce otherwise sizeable communication overhead). I’m using Postgres, which, like some other databases, allows m…

---

## [Hiring Lead Programmer {Dynamic Imaging}](https://www.ruby-forum.com/t/hiring-lead-programmer-dynamic-imaging/92196)

<div class="topic-metadata">

**Author:** [@pinxi](https://www.ruby-forum.com/u/pinxi)\
**Replies:** 0\
**Last updated:** [April 17, 2007, 12:06am UTC](https://www.ruby-forum.com/t/hiring-lead-programmer-dynamic-imaging/92196 "2007-04-17T00:06:53Z")

</div>

We are seeking to hire a lead programmer to build a dynamic Web-based imaging module which will enable users to upload a digital image or photograph to the site and choose from thousands of combinations of mattes and …

---

## [Woooooooooooooooooow The Best Music Search Engine](https://www.ruby-forum.com/t/woooooooooooooooooow-the-best-music-search-engine/102750)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [April 16, 2007, 11:59pm UTC](https://www.ruby-forum.com/t/woooooooooooooooooow-the-best-music-search-engine/102750 "2007-04-16T23:59:50Z")

</div>

http://www.freemp3sky.com

---

## [Rails 1.2.2 and ranges in AR conditions clause](https://www.ruby-forum.com/t/rails-1-2-2-and-ranges-in-ar-conditions-clause/91973)

<div class="topic-metadata">

**Author:** [@Ed\_Howland](https://www.ruby-forum.com/u/Ed_Howland)\
**Replies:** 4\
**Last updated:** [April 16, 2007, 11:58pm UTC](https://www.ruby-forum.com/t/rails-1-2-2-and-ranges-in-ar-conditions-clause/91973 "2007-04-16T23:58:50Z")

</div>

Hi, According to Jamis’ blog post: You can do this in RoR 1.2.2: Student.find(:all, :conditions =\> { :grade =\> 9…12 }) which automatically get converted into: SELECT \* FROM students WHERE grade BETWEEN 9 AND 12 bu…

---

## [Default Year selection for date\_select?](https://www.ruby-forum.com/t/default-year-selection-for-date-select/92193)

<div class="topic-metadata">

**Author:** [@Pascal\_F](https://www.ruby-forum.com/u/Pascal_F)\
**Replies:** 0\
**Last updated:** [April 16, 2007, 11:54pm UTC](https://www.ruby-forum.com/t/default-year-selection-for-date-select/92193 "2007-04-16T23:54:50Z")

</div>

Hi, is it posible to tell rails to select a specific year/month/day when using a date\_select helper? as mentioned in at http://dev.rubyonrails.org/ticket/6124 things like :select\_year =\> 1960 wont work. Where woul…

---

## [Problem with Test Fixtures](https://www.ruby-forum.com/t/problem-with-test-fixtures/92183)

<div class="topic-metadata">

**Author:** [@Robin\_F](https://www.ruby-forum.com/u/Robin_F)\
**Replies:** 2\
**Last updated:** [April 16, 2007, 11:45pm UTC](https://www.ruby-forum.com/t/problem-with-test-fixtures/92183 "2007-04-16T23:45:49Z")

</div>

Hi All, I’m currently working on an Admin Controller that displays a list of topics and questions. Users are required to login to add topics/ questions. The login functionality works fine in practice - all actions …

---

## [Authorization with single table inheritance?](https://www.ruby-forum.com/t/authorization-with-single-table-inheritance/92179)

<div class="topic-metadata">

**Author:** [@Invincible\_C](https://www.ruby-forum.com/u/Invincible_C)\
**Replies:** 1\
**Last updated:** [April 16, 2007, 11:36pm UTC](https://www.ruby-forum.com/t/authorization-with-single-table-inheritance/92179 "2007-04-16T23:36:49Z")

</div>

Hi, I am trying to use Authorization plugin for providing access control for my application.Application has 2 types of users, admins and end-users both being maintained in a single table with calles users and with th…

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

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