similar to: collection.each { |x| puts x} in rhtml?

Displaying 20 results from an estimated 1000 matches similar to: "collection.each { |x| puts x} in rhtml?"

2006 May 05
4
STI and HABTM
Hey gang, How does STI work with HABTM? For instance...let''s say I have the following models ----- Category < ActiveRecord::Base Item < ActiveRecord::Base Product < Item Deal < Item ----- Each product or deal can have categories. Would I then setup Item with has_and_belongs_to_many :categories, then create a table categories_items ??? Is there a better way to do it?
2006 Aug 12
5
Rmagick not handling GIF files properly...
Tracked down the source of my problem... It seems that Rmagick isn''t properly cropping/resizing GIF or PNG images when uploaded via file_column. I can upload JPG files just fine. Originally I had installed ImageMagick via Debian''s apt-get and built the rmagick gem using "gem install rmagick". This wasn''t working so I uninstalled ImageMagick and tried to
2006 Aug 09
3
file_column and versions acting up...about to spit blood and kill people. please help.
Hey railsers...anyone run into this problem? I''m developing an app which I''m deploying with Capistrano. That being said, I''ve stuck all the file_column goodies in public/system/... During my deployment script I chmod -R that directory and everything in it to make sure www-data (the apache user/group) has access to it. In development mode on my Macbook I can upload
2006 Jun 22
3
Importing images with file_column over http?
I haven''t cracked the source of file_column just yet - but has anyone worked out a way to snag images via URL instead of a file upload? Optimally I''d like to have my clients be able to upload a file, or enter in a URL to store as file on the system. Any/all help would be cool. -- seth at subimage interactive http://www.subimage.com/sublog/ -------------- next part
2006 Jul 26
7
RHTML in database?
Hi, is it possible to store RHTML templates or partials in database? thanks, Bojan Mihelac -- Bojan Mihelac Informatika Mihelac, Bojan Mihelac s.p. | www.informatikamihelac.com -> tools, scripts, tricks from our code lab: http://source.mihelac.org
2006 Jan 20
3
Anyone running a business hosting plan @ textdrive?
I currently run a handfull of sites on a MediaTemple VPS - which is blazing fast and very cheap for what I get. BUT installing rails and mysql v4 was a major pain in my ass, along with other things. I''m considering switching to a Textdrive business hosting plan but wanted to get some feedback from list members first. I pay about $200 a month quarterly for my MediaTemple service.
2006 Apr 09
2
Substruct v0.6
I just put the finishing touches on Substruct v0.06. As always, you can check out a demo over at http://substruct.subimage.com/ What''s new? Version 0.6 --------------------------------------- Added: - Tagging for products - Maintenance of product tags - Automatic image thumbnail / small size creation via RMagick Updated: - Better shopping cart experience with AJAX cart
2006 Mar 16
10
Substruct Open Source E-Commerce Platform
Finally it''s here :) The Rails app to do battle with the likes of Miva Merchant and OS Commerce! I''m releasing Substruct 0.051 into the wild. More information here: http://dev.subimage.com/projects/substruct Please check it out! I''d love to hear all of your thoughts - and I''m looking for contributors! -- seth at subimage interactive
2006 Apr 14
7
Support for Comet?
So someone finally named server-push through HTTP-keepalive "Comet" It''s also been implemented in a very nice Java/Javascript library called DWR. http://ajaxian.com/archives/dwr-20-reverse-ajax Has there been any discussion by "the core" about adding this to Rails 1.2? :) -- seth at subimage interactive http://www.subimage.com/sublog/ -------------- next part
2006 Feb 19
16
Open source rails e-commerce engine?
I''m pinging the list to see if anyone is working on an open-source e-commerce engine based on Rails yet - something like OSCommerice I guess. Anyone? Is there interest out there for such a thing? I have such a product which has been extracted from real world code. It currently runs 3 production rails sites in various shapes and forms, implemented as a rails engine. Basic feature list: -
2006 May 22
3
STI, HABTM & counter_cache
Hello world... I have an interesting issue that the online docs aren''t helping me with. In my app I have 4 models Item < ActiveRecord Deal < Item Product < Item Category < ActiveRecord Item has_and_belongs_to_many :categories... On each category record I''d like to maintain a product_count and deal_count to increase performance. This doesn''t appear
2006 Apr 11
8
Ruby 1.8.4, Rails 1.1 and Rmagick?
Someone mentioned that Rmagick doesn''t work properly on this setup (Ruby 1.8.4, Rails 1.1) Is this true? -- seth at subimage interactive http://www.subimage.com/sublog/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060411/432e8113/attachment.html
2006 May 30
2
ActiveMerchant
Is anyone using ActiveMerchant currently? I''ve seen it recommended on this list several times, but it seems kind of buggy and incomplete and I''m having trouble getting it to work. >From the example at http://home.leetsoft.com/am/, I''ve tried: gateway = ActiveMerchant::Base.gateway(:authorized_net) response = gateway.capture(1000, creditcard) ..but it
2006 Jun 28
5
Funky character display in rails / mysql
I''m getting complaints from one of my customers that characters in their text are getting mangled. This happens when they paste data into my textboxes in rails from MS word in particluar. Quotes are turning into question marks, etc. Anyone have a fix / workaround for this? -- seth at subimage interactive http://www.subimage.com/sublog/ -------------- next part -------------- An HTML
2006 May 28
9
Railsmanual.org
Did anyone else catch the redesign? I don''t know who''s responsible, but it''s lookin better! Good job... -- seth at subimage interactive http://www.subimage.com/sublog/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060528/f9f92618/attachment.html
2006 May 29
1
Substruct 0.7 now here!!!
I''ve just pushed the latest version of Substruct, everyone''s favorite CMS/E-commerce project out the door. http://dev.subimage.com/projects/substruct/ is the home page if you''re unfamiliar with it. The release is available here: http://subimage.com/files/substruct-0.7.tar.gz And install instructions here:
2006 May 30
2
SSL certificate and rails...
Newbie Q: Building a webstore and need to have SLL-encryption on the checkout pages... I have no previous experience with SSL. I understand that I need a SSL-certificate. I''m planning on purchasing the cert from RapidSSL, but to do that I need to generate a CSR (Certificate Signing Request). How do I do that? How do I install the certificate on the server? Are there any guides on
2006 Jul 16
1
Mongrel starting problem on new Debian box
Hello world, I''m having some problems setting up a new Debian deployment box...just installed the rails stack, mongrel, etc... When I go to start mongrel I''m getting a weird error I can''t figure out. Some help please? -> mongrel_rails start ** Starting Mongrel listening at 0.0.0.0:3000
2007 Apr 03
3
Mongrels dying on FreeBSD 5.5-STABLE......why why why?
Yo Zed and everyone else, I''m having a major problem I''m hoping someone can help with. I''ve been running mongrel clusters for a few months with no problems on a couple of my boxes. They both run Debian... I recently moved one of my older Rails apps on a FreeBSD 5.5 box to mongrel as well. Everything runs quickly and wonderfully - when it''s running! My problem
2007 Apr 18
2
Datagrid with dhtmlxGrid
Hello i am trying to replace a desktop invoice system to a RoR sytem. The system just use the keyboard, i mean all is codebar, and enter, enter, enter....so on :P, well the thing is that i have been trying a lot of ways, but i haven''t get any exit. The way i am getting more close of what i want is with the dhtmlxGrid, but hte problems is how i integrate this widget with the