# Rails

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

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

---

## [Formatting a unix timestamp](https://www.ruby-forum.com/t/formatting-a-unix-timestamp/115324)

<div class="topic-metadata">

**Author:** [@silvertab](https://www.ruby-forum.com/u/silvertab)\
**Replies:** 1\
**Last updated:** [September 23, 2007, 10:57pm UTC](https://www.ruby-forum.com/t/formatting-a-unix-timestamp/115324 "2007-09-23T22:57:32Z")

</div>

I have a database with unix timestamps in it (saved as varchar)… Right now I’m using the following to format it (item table, created\_at field)…: Time.at(item.created\_at.to\_i).strftime("%Y-%m-%d %H:%M:%S") I was wonde…

---

## [Do fixture\_scenarios and RSpec peacibly coexist?](https://www.ruby-forum.com/t/do-fixture-scenarios-and-rspec-peacibly-coexist/115156)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 1\
**Last updated:** [September 23, 2007, 7:20pm UTC](https://www.ruby-forum.com/t/do-fixture-scenarios-and-rspec-peacibly-coexist/115156 "2007-09-23T19:20:50Z")

</div>

Railsters: I just installed fixture\_scenarios … http://fixture-scenarios.googlecode.com/svn/trunk/fixture\_scenarios …into a project with some RSpec specifications. They all went kablooey. I didn’t even create a scen…

---

## [Replace content in a div on prototype observe\_field update?](https://www.ruby-forum.com/t/replace-content-in-a-div-on-prototype-observe-field-update/115157)

<div class="topic-metadata">

**Author:** [@athem](https://www.ruby-forum.com/u/athem)\
**Replies:** 2\
**Last updated:** [September 23, 2007, 6:57pm UTC](https://www.ruby-forum.com/t/replace-content-in-a-div-on-prototype-observe-field-update/115157 "2007-09-23T18:57:46Z")

</div>

For: \<%= observe\_field :division\_filter\_id, :frequency =\> 0.5, :update =\> ‘ajaxJobListWrapper’, :url =\> {:action =\> ‘update\_job\_list’ }, :with =\> ‘division\_id’, :position =\> :top %\> where ajaxJobListWrapper is a d…

---

## [Theme manager](https://www.ruby-forum.com/t/theme-manager/115312)

<div class="topic-metadata">

**Author:** [@snaggy](https://www.ruby-forum.com/u/snaggy)\
**Replies:** 0\
**Last updated:** [September 23, 2007, 6:17pm UTC](https://www.ruby-forum.com/t/theme-manager/115312 "2007-09-23T18:17:42Z")

</div>

I’m building a little cms for my personal websites, and I need something to manage themes. I’ve been using theme\_support but it’s full of bug (routing etc) with the last few versions of rails. Any alternatives? Any pa…

---

## [Edge, cookie sessions and openid](https://www.ruby-forum.com/t/edge-cookie-sessions-and-openid/115311)

<div class="topic-metadata">

**Author:** [@patcito](https://www.ruby-forum.com/u/patcito)\
**Replies:** 0\
**Last updated:** [September 23, 2007, 6:17pm UTC](https://www.ruby-forum.com/t/edge-cookie-sessions-and-openid/115311 "2007-09-23T18:17:42Z")

</div>

hey all, Edge rails defaults to cookie-based sessions and I want to use them but does it play well with openid? the openid plugin suggests to use AR to store sessions instead. Is there a way to manage openid with coo…

---

## [Functional testing with act as authenticated](https://www.ruby-forum.com/t/functional-testing-with-act-as-authenticated/115293)

<div class="topic-metadata">

**Author:** [@Mozmonkey](https://www.ruby-forum.com/u/Mozmonkey)\
**Replies:** 2\
**Last updated:** [September 23, 2007, 4:56pm UTC](https://www.ruby-forum.com/t/functional-testing-with-act-as-authenticated/115293 "2007-09-23T16:56:37Z")

</div>

I’m trying to run some functional tests for actions that are behind authentication (via act as authenticated plugin), but am having problems getting “current\_user” set for the controller. Here’s the test code: def te…

---

## [Simple Migration Question: Specifying a key length](https://www.ruby-forum.com/t/simple-migration-question-specifying-a-key-length/115308)

<div class="topic-metadata">

**Author:** [@ben-v](https://www.ruby-forum.com/u/ben-v)\
**Replies:** 0\
**Last updated:** [September 23, 2007, 4:45pm UTC](https://www.ruby-forum.com/t/simple-migration-question-specifying-a-key-length/115308 "2007-09-23T16:45:18Z")

</div>

Is there any way to create a key length for a text index using add\_index? Whenever I tree and create a text-based, rather than integer based index, it aborts the rake because I did not specify a key length. I looked a…

---

## [Are the tutorials updated?](https://www.ruby-forum.com/t/are-the-tutorials-updated/115248)

<div class="topic-metadata">

**Author:** [@jim](https://www.ruby-forum.com/u/jim)\
**Replies:** 4\
**Last updated:** [September 23, 2007, 3:03pm UTC](https://www.ruby-forum.com/t/are-the-tutorials-updated/115248 "2007-09-23T15:03:27Z")

</div>

Hello, I’ve tried Rails in the past - I own the first edition of the Agile book. The tutorials on the rails home page don’t look to have been updated since then. Are there any tutorials showing the latest best practi…

---

## [Interest in Liquibase for Rails?](https://www.ruby-forum.com/t/interest-in-liquibase-for-rails/115303)

<div class="topic-metadata">

**Author:** [@psk](https://www.ruby-forum.com/u/psk)\
**Replies:** 0\
**Last updated:** [September 23, 2007, 2:42pm UTC](https://www.ruby-forum.com/t/interest-in-liquibase-for-rails/115303 "2007-09-23T14:42:33Z")

</div>

Nathan blogged about part of the problem with Active Recomend migrations: http://blog.liquibase.org/2007/06/problem-with-rails-active-migrations.html Liquibase is a java tool that tracks each change individually, but …

---

## [Paypal address problems with active\_merchant](https://www.ruby-forum.com/t/paypal-address-problems-with-active-merchant/115302)

<div class="topic-metadata">

**Author:** [@gga](https://www.ruby-forum.com/u/gga)\
**Replies:** 0\
**Last updated:** [September 23, 2007, 2:27pm UTC](https://www.ruby-forum.com/t/paypal-address-problems-with-active-merchant/115302 "2007-09-23T14:27:23Z")

</div>

Hi. New to rails and active\_merchant. I’m currently testing my shopping cart with paypal sandbox and it’s kind of working but not quite. Besides the credit card stuff, I’m also filling most parameters for buyer inf…

---

## [Count \<li\> items in div, RJS](https://www.ruby-forum.com/t/count-li-items-in-div-rjs/115172)

<div class="topic-metadata">

**Author:** [@demoversion](https://www.ruby-forum.com/u/demoversion)\
**Replies:** 5\
**Last updated:** [September 23, 2007, 12:29pm UTC](https://www.ruby-forum.com/t/count-li-items-in-div-rjs/115172 "2007-09-23T12:29:10Z")

</div>

Hello, How i can count items in div using RJS? one two three \<%= link\_to\_remote.......ADD %\> and in add action i want to add new li item with unique ID and get 's elements count? Thanks

---

## [Validating non ActiveRecord objects](https://www.ruby-forum.com/t/validating-non-activerecord-objects/115236)

<div class="topic-metadata">

**Author:** [@Sam\_Pierson](https://www.ruby-forum.com/u/Sam_Pierson)\
**Replies:** 1\
**Last updated:** [September 23, 2007, 9:46am UTC](https://www.ruby-forum.com/t/validating-non-activerecord-objects/115236 "2007-09-23T09:46:35Z")

</div>

I’ve seen a few semi-solutions to this issue but nothing recent and coherent. What is the best way to use the AR validation system on non-AR objects? Seems like this come up enough it should be a HowTo on the Rails si…

---

## [Custom update method problem](https://www.ruby-forum.com/t/custom-update-method-problem/115231)

<div class="topic-metadata">

**Author:** [@bob](https://www.ruby-forum.com/u/bob)\
**Replies:** 1\
**Last updated:** [September 23, 2007, 9:34am UTC](https://www.ruby-forum.com/t/custom-update-method-problem/115231 "2007-09-23T09:34:11Z")

</div>

I’ve got group of updates that I call in certain cases. They update data in different tables if specific conditions are met when a new row is saved to the “drive” (see below) database table. I suspect that I should ma…

---

## [Urgent requirements](https://www.ruby-forum.com/t/urgent-requirements/115290)

<div class="topic-metadata">

**Author:** [@sushma\_sinha](https://www.ruby-forum.com/u/sushma_sinha)\
**Replies:** 0\
**Last updated:** [September 23, 2007, 7:02am UTC](https://www.ruby-forum.com/t/urgent-requirements/115290 "2007-09-23T07:02:45Z")

</div>

Urgent requirements Pls sends your CV in www.allindiajobbank.com website. It is fast and gives U positive response. Pls pass this message to Ur friend also because vacancies are waiting. Java - Lead Software Engineer …

---

## [Interface for administration](https://www.ruby-forum.com/t/interface-for-administration/112704)

<div class="topic-metadata">

**Author:** [@Nicholas\_W](https://www.ruby-forum.com/u/Nicholas_W)\
**Replies:** 1\
**Last updated:** [September 23, 2007, 6:35am UTC](https://www.ruby-forum.com/t/interface-for-administration/112704 "2007-09-23T06:35:44Z")

</div>

Hi \*, I need to choose a platform for building the administrative part of http://www.zooppa.com Actually I like both streamlined and activescaffold, they seem both good. I’d like to ask to people using it which one i…

---

## [Active Scaffold + attachment](https://www.ruby-forum.com/t/active-scaffold-attachment/196449)

<div class="topic-metadata">

**Author:** [@demoversion](https://www.ruby-forum.com/u/demoversion)\
**Replies:** 1\
**Last updated:** [September 23, 2007, 6:34am UTC](https://www.ruby-forum.com/t/active-scaffold-attachment/196449 "2007-09-23T06:34:43Z")

</div>

Hi all, I need a help to solve problem with ActiveScaffold, Imagine that you have a list of companies, each company has a list of products. If Iâ€™m administrator of some company and I want to edit my products I also…

---

## [Globalized is too slow, need a solution](https://www.ruby-forum.com/t/globalized-is-too-slow-need-a-solution/114243)

<div class="topic-metadata">

**Author:** [@demoversion](https://www.ruby-forum.com/u/demoversion)\
**Replies:** 10\
**Last updated:** [September 23, 2007, 6:25am UTC](https://www.ruby-forum.com/t/globalized-is-too-slow-need-a-solution/114243 "2007-09-23T06:25:42Z")

</div>

hello, I need a help, or maybe advice how to localize my application. now i used Globalized, it’s works perfectly, BUT when i tried to localized my admin pages which used activescaffold it works very-very SLOW, chec…

---

## [Activescaffold, predefined values](https://www.ruby-forum.com/t/activescaffold-predefined-values/114241)

<div class="topic-metadata">

**Author:** [@demoversion](https://www.ruby-forum.com/u/demoversion)\
**Replies:** 1\
**Last updated:** [September 23, 2007, 6:22am UTC](https://www.ruby-forum.com/t/activescaffold-predefined-values/114241 "2007-09-23T06:22:42Z")

</div>

Hello, I used activescaffold, i want when i pressed CREATE button to display for exaple in textfield name a current user name. Thanks

---

## [ActiveScaffold Released](https://www.ruby-forum.com/t/activescaffold-released/103880)

<div class="topic-metadata">

**Author:** [@rrwhite](https://www.ruby-forum.com/u/rrwhite)\
**Replies:** 1\
**Last updated:** [September 23, 2007, 6:17am UTC](https://www.ruby-forum.com/t/activescaffold-released/103880 "2007-09-23T06:17:41Z")

</div>

I’m happy to announce that we released ActiveScaffold 1.0 today after 8 months of hard work on the plugin. In addition to announcing our launch, I did a writeup on where the project is going next (hint: think semantic…

---

## [Fckeditor cannot be installed via ruby script/plugin install](https://www.ruby-forum.com/t/fckeditor-cannot-be-installed-via-ruby-script-plugin-install/115289)

<div class="topic-metadata">

**Author:** [@CCH](https://www.ruby-forum.com/u/CCH)\
**Replies:** 0\
**Last updated:** [September 23, 2007, 6:11am UTC](https://www.ruby-forum.com/t/fckeditor-cannot-be-installed-via-ruby-script-plugin-install/115289 "2007-09-23T06:11:41Z")

</div>

Hi Scott Rutherford ruby script/plugin install svn://rubyforge.org//var/svn/fckeditorp/trunk/fckeditor does not install fckeditor at all. Downloaded your fckeditor/ajax scaffold demo and it looks great. Do you…

---

## [Rails vs. Turbogears](https://www.ruby-forum.com/t/rails-vs-turbogears/115221)

<div class="topic-metadata">

**Author:** [@stefankroes](https://www.ruby-forum.com/u/stefankroes)\
**Replies:** 4\
**Last updated:** [September 23, 2007, 5:20am UTC](https://www.ruby-forum.com/t/rails-vs-turbogears/115221 "2007-09-23T05:20:39Z")

</div>

Hi guys. My team is evaluating Turbogears versus Ruby on Rails for an upcoming project. I have this very strong feeling that we should go for Rails, but apparently I cannot word it well enough. I’ve been Googling for …

---

## [Issue with ht:t :source and foreign key](https://www.ruby-forum.com/t/issue-with-ht-t-source-and-foreign-key/115273)

<div class="topic-metadata">

**Author:** [@Koalemos](https://www.ruby-forum.com/u/Koalemos)\
**Replies:** 1\
**Last updated:** [September 23, 2007, 4:52am UTC](https://www.ruby-forum.com/t/issue-with-ht-t-source-and-foreign-key/115273 "2007-09-23T04:52:38Z")

</div>

I’m having an issue when trying to use my hm:t relation. For some reason it’s using the wrong foreign key in some situations but not all. The following is the error as well as the models in question. http://pastie.tex…

---

## [Job trend cross-over for Ruby/Rails and Java combo](https://www.ruby-forum.com/t/job-trend-cross-over-for-ruby-rails-and-java-combo/115269)

<div class="topic-metadata">

**Author:** [@asplake](https://www.ruby-forum.com/u/asplake)\
**Replies:** 1\
**Last updated:** [September 23, 2007, 4:38am UTC](https://www.ruby-forum.com/t/job-trend-cross-over-for-ruby-rails-and-java-combo/115269 "2007-09-23T04:38:37Z")

</div>

See the graph at http://tinyurl.com/35rnx4 For some time, I’ve been watching the three combinations ruby + rails, ruby + developer, java + hibernate + tomcat using the www.indeed.com job-trend grapher. They have (…

---

## [Re: Text messaging with Ruby on Rails](https://www.ruby-forum.com/t/re-text-messaging-with-ruby-on-rails/115198)

<div class="topic-metadata">

**Author:** [@mslagell](https://www.ruby-forum.com/u/mslagell)\
**Replies:** 4\
**Last updated:** [September 23, 2007, 4:35am UTC](https://www.ruby-forum.com/t/re-text-messaging-with-ruby-on-rails/115198 "2007-09-23T04:35:36Z")

</div>

I’m not sure how reliable it is but I think you can also send/receive SMS messages via email. ----- Original Message ---- From: Luke R. removed\_email\_address@domain.invalid To: Ruby on Rails: Talk removed\_email\_addre…

---

## [Deploying on a media temple (dv) server](https://www.ruby-forum.com/t/deploying-on-a-media-temple-dv-server/115282)

<div class="topic-metadata">

**Author:** [@vinnie](https://www.ruby-forum.com/u/vinnie)\
**Replies:** 1\
**Last updated:** [September 23, 2007, 3:05am UTC](https://www.ruby-forum.com/t/deploying-on-a-media-temple-dv-server/115282 "2007-09-23T03:05:28Z")

</div>

Does anyone have any experience with this or do they have any pointers? I have been trying to deploy a basic radiant install to a media temple (dv) account, Following the instructions here http://kb.mediatemple.net/…

---

## [Newbie: accessing form parameters in controller action?](https://www.ruby-forum.com/t/newbie-accessing-form-parameters-in-controller-action/115272)

<div class="topic-metadata">

**Author:** [@tharrisx](https://www.ruby-forum.com/u/tharrisx)\
**Replies:** 5\
**Last updated:** [September 23, 2007, 2:53am UTC](https://www.ruby-forum.com/t/newbie-accessing-form-parameters-in-controller-action/115272 "2007-09-23T02:53:04Z")

</div>

Newbie alert! I am saving a form, and in my save action in the controller, I can do logger.info(params) and see a string in the log like “commitSaveactionsavecontrollerfoofooattrib1value1attrib2value2…” which is all…

---

## [Application Trouble](https://www.ruby-forum.com/t/application-trouble/115280)

<div class="topic-metadata">

**Author:** [@MrSWatson](https://www.ruby-forum.com/u/MrSWatson)\
**Replies:** 4\
**Last updated:** [September 23, 2007, 2:42am UTC](https://www.ruby-forum.com/t/application-trouble/115280 "2007-09-23T02:42:27Z")

</div>

I cannot for any circumstances get my application to work. I have Ruby on Rails on Windows XP. It will NOT connect my database for some reason. I am using Instant Rails. I have Apache and MySQL turned on. What I have …

---

## [ArgumentError in has\_many :through](https://www.ruby-forum.com/t/argumenterror-in-has-many-through/115265)

<div class="topic-metadata">

**Author:** [@spike666](https://www.ruby-forum.com/u/spike666)\
**Replies:** 4\
**Last updated:** [September 23, 2007, 1:06am UTC](https://www.ruby-forum.com/t/argumenterror-in-has-many-through/115265 "2007-09-23T01:06:35Z")

</div>

I’ve got an application that I’m working on where I have a System model that I want to add to arbitrary logical Groups (a System can be part of multiple groups and a Group is made up of one or more Systems). I’ve got …

---

## [Shared rails app, svn, and local config? design question](https://www.ruby-forum.com/t/shared-rails-app-svn-and-local-config-design-question/115223)

<div class="topic-metadata">

**Author:** [@jrochkind](https://www.ruby-forum.com/u/jrochkind)\
**Replies:** 1\
**Last updated:** [September 23, 2007, 1:03am UTC](https://www.ruby-forum.com/t/shared-rails-app-svn-and-local-config-design-question/115223 "2007-09-23T01:03:30Z")

</div>

None of my questions seem to get any bits here, but let’s try another. :slight\_smile: I am working on a Rails app which we plan to distribute to lots of people. There will be a community of users. Many of these users …

---

## [Migration naming conventions](https://www.ruby-forum.com/t/migration-naming-conventions/115268)

<div class="topic-metadata">

**Author:** [@doug](https://www.ruby-forum.com/u/doug)\
**Replies:** 3\
**Last updated:** [September 23, 2007, 1:01am UTC](https://www.ruby-forum.com/t/migration-naming-conventions/115268 "2007-09-23T01:01:21Z")

</div>

I notice that when I generate a migration alone using the migration generator, the name of the resulting file is something like “db/ migrate/001\_members.rb” and that file contains a class named “Members”. However, i…

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

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