All Ruby on Rails Discoveries

Show:


acts_as_taggable_on_steroids and spaces in tags... in Extending ...



wow i can't remember how i did it. but no the spaces issue still exists in production. i should check on that. I just ask users to use underscores. since it's only one person, she doesn't mind. or which issue is messing you up?

2 decimal places in Planning : Application Theory & Strategy



There is a money gem you can use for this type of thing: http://rubyforge.org/projects/money/

gem for webmail connection contact grabber in Extending Rails ...



Woot, thanks for sharing the link :).

Sending HABTM children to a partial in Programming Rails ...



look into rendering a collection. Code : ruby - fold - unfold. <%= render :partial => 'round', :collection => @game.rounds %>. This will render the "_round.html.erb" partial for each round in @games.rounds, In the partial you can refer ...

Poll RSS feed? in Programming Rails : Other Rails Programming



I use wget or curl to call a URL. That way, you don't have a dependency on a script, which is not hard, but I often find it's just one more chance for brittleness. Just use you standard Rails controller and you're done.

Dynamic Image Sizing/Caching? in Planning : Application Theory ...



If you are using attachment_fu, S3 Storage is built in, otherwise there is a Ruby AWS Gem that is really quite simple. My inclination would be to create the thumbnail you need on upload, but keep the original. ...

change data type with a migration? in Programming Rails : Other ...



Is it possible to change a column's data type with migrations? After the fact I realized i am using float data when I really need decimal. I'd like to not drop my column (and lose my data). Any possibilities?

Ruby on Rails 8 days in



I do think I will be using Ruby on Rails a good deal in the future. I have been working on a web site for my dad http://www.billingsleyconsultants.com which currently is just html, css and javascript but which I think I will need to add ...

2 decimal places in Planning : Application Theory & Strategy



Is there an ruby or rails helper that will take a number and break it limit it to just 2 places after the decimal? So that I get numbers like 2.45 or 10.34 or 100.44 (like dollars) ...

Re: Passenger (mod_rails) for Ruby on Rails



Post Reply? I did the switch for a site I have under a sub domain and it can't find the images or CSS. Everything else is working. Typically I set up the sub domain name as a symbolic link to the public directory of my rails app. ...

change data type with a migration? in Programming Rails : Other ...



Give this a shot:. Code : - fold - unfold. change_column(table_name, column_name, type, options = {}); # EX: change_column(:suppliers, :name, :string, :limit => 80); change_column(:accounts, :description, :text) ...

Need help writing a class to interface with an existing API in ...



Hi all, I need some guidance writing a class to interface with an existing API (cpanel - http://www.cpanel.net/plugins/xmlapi/) - as far as I'm aware there isn't a plugin / gem out there that will do this for me yet. ...

Re: Passenger (mod_rails) for Ruby on Rails



Post Reply? Looks like I'm working now. In the web Panel, I set the web directory to the absolute path of the public directory of my rails application. Thanks. :-) Just giving it a quick drive around the block, it appears to be faster. ...

map.connetct syntax error, general 2.0 question in Programming ...



Hello, I don't know if you're still building the railsspace example, but I am with the latest rails version. For the routes.rb file, you should change: map.connect ", :controller => "site" to... map.root :controller => "site" ...

Web Programmer (MVC, Ruby, Ruby on Rails) / The Killswitch ...



Web design agency is seeking Ruby on Rails developers for on-site work in Chicago IL and Austin, TX. Medical benefits paid as well as options for 401k. We are looking for long term employees who want to do cutting edge Ruby work for ...

Ruby on Rails presents WeddingPresents



My friend James, has created a unique wedding registry site written in Ruby on Rails. It took him no time at all and leaves us with a cool site that allows the couple to pick whatever presents they want without signing up to a ...

COMMENT: Kenny on Twitter Said To Be Abandoning Ruby on Rails



Name: Kenny: Entry: Twitter Said To Be Abandoning Ruby on Rails: Comment:

I meant “Traffic wise OR not its…”

Stupid django. :)



Scripting Gurus Debate Dynamic Languages | ADT Magazine




Scripting Gurus Debate Dynamic Languages
ADT Magazine - 13 hours ago
... when we already have such popular dynamic scripters as Python, Ruby on Rails and PHP, did the world need Sun's new scripting language, JavaFX Script? ...


Extracting Line Number of Error in Code in Programming Rails ...



Hello, I am putting together a table to log all exceptions. I've overridden the rescue_action_in_public method and am using the exception parameter being passed. My question is if there is an easy way to grab the line number in the code ...

How can I get all the products for a parent category? in ...



So I have the following tables: products categories -- Has a parent_id field for use by sub-categories category_products -- Joins product id's to category row id's What I ultimately want to do is get all the products for a parent (main ...