[Rails] Re: Updating the sessions table

2010-11-13 Thread andrew.ohns...@gmail.com
ontinued follow up on this! On Nov 12, 4:54 pm, Brian Troutwine wrote: > On Fri, Nov 12, 2010 at 4:34 PM, andrew.ohns...@gmail.com > > > > > > wrote: > > On Nov 12, 2:27 am, Brian Troutwine wrote: > >> You have a very interesting problem! > > > Thank

[Rails] Re: Updating the sessions table

2010-11-12 Thread andrew.ohns...@gmail.com
On Nov 12, 2:27 am, Brian Troutwine wrote: > You have a very interesting problem! Thanks... I think... > On Thu, Nov 11, 2010 at 7:09 PM, andrew.ohns...@gmail.com > > wrote: > > Hi everyone, > > > I've got a problem that has me stumped. > > > I'v

[Rails] Updating the sessions table

2010-11-11 Thread andrew.ohns...@gmail.com
Hi everyone, I've got a problem that has me stumped. I've got an application running rails 2.3.8, ruby 1.8.7. I'm using the Activerecord Session store with MySQL. On my development site, the session table's updated_at column has its timestamp updated on every request. On my production site the

[Rails] Truncate function and html tags

2009-03-02 Thread andrew.ohns...@gmail.com
I have a text field in the db for the body of user posts. Users submit the posts using the tinymce editor, which allows certain html tags. The posts are stored in the db with allowed html tags directly in the post, so I could have something like: This post will try to eliminate the confusion re

[Rails] Re: Tag clouds

2009-02-04 Thread andrew.ohns...@gmail.com
Is there any way? Of course. You can write the code yourself to handle the recording of tags, the storage and assignment of tags, the counting and ranking of tags, and the styling to create a tag cloud, along with all the associated db migrations, helper methods, etc. Or you could use the code

[Rails] Re: [FEEDBACK] on new site

2009-02-03 Thread andrew.ohns...@gmail.com
On Feb 3, 11:29 am, bill walton wrote: > Do you plan to write up your experiences with the platform?  I'm sure > I'm not the only one who'd be interested. +1. We've considered EC2 for an app we are currently using a dedicated server for. I would be interested in some of the cost particulars

[Rails] Re: Tag clouds

2009-01-30 Thread andrew.ohns...@gmail.com
Try the acts_as_taggable_on plugin/gem and the associtated tag_cloud helper. Acts_as_taggable_on at github: http://github.com/mbleigh/acts-as-taggable-on/tree/master (sparse) documentation on the tag_cloud helper: http://dev.af83.com/ruby/playing-with-acts-as-taggable-on/2008/02/25/ I haven'

[Rails] Re: how to prevent a newline after a button_to

2009-01-29 Thread andrew.ohns...@gmail.com
On Jan 29, 4:27 am, bingo bob wrote: > How do you prevent a newline after a button_to. > > I thought <%= button_to blabla -%> was meant to do it, but it didn't I > think I got it generated tags around the button code. > > How do you do it? > This is something that gets tossed around from time

[Rails] Best Practices for Rails Web Application Testing?

2009-01-29 Thread andrew.ohns...@gmail.com
Hi all, I am going to paint a probably familiar scene. My first rails project was a supposedly simple web application, which has now been under development for 2 years, has expanded to about 12 models, and is a full blown web application. As a newbie to ruby and rails, I paid exactly zero atten