Guruza search results for ror http://guruza.com/searches/show/138 Questions recently submitted to Guruza that match the query: ror Fri, 05 Sep 2008 18:28:27 -0700 $0.00 - I am trying to use sqlite3 for my dev database with my Rails app (1.2rc2). I... http://guruza.com/question/482/reward-0.00 I am trying to use sqlite3 for my dev database with my Rails app (1.2rc2). I am on OS X so sqlite3 is installed by default (I even installed the lastest version with darwinport), and I have done gem install sqlite3-ruby. However, when I try to do anything that has to do with ActiveRecord, I get errors. Here's an example: >> Domain.new ActiveRecord::StatementInvalid: ActiveRecord::StatementInvalid from /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4.5848/lib/active_record/connection_adapters/sqlite_adapter.rb:273:in `table_structure' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1.5848/lib/active_support/core_ext/object/misc.rb:23:in `returning' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4.5848/lib/active_record/connection_adapters/sqlite_adapter.rb:272:in `table_structure' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4.5848/lib/active_record/connection_adapters/sqlite_adapter.rb:210:in `columns' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4.5848/lib/active_record/base.rb:760:in `columns' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4.5848/lib/active_record/base.rb:2048:in `attributes_from_column_definition_without_lock' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4.5848/lib/active_record/locking/optimistic.rb:45:in `attributes_from_column_definition' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4.5848/lib/active_record/base.rb:1490:in `initialize_without_callbacks' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4.5848/lib/active_record/callbacks.rb:225:in `initialize' from (irb):1 Any idea? EDIT: The funny thing is that I use sqlite3 and it works great with another project I started some time ago... Mon, 15 Jan 2007 07:58:30 -0800 $5.00 - I'm a newbie to RoR's and I'm having fun with it. My question has to do with ... http://guruza.com/question/437/reward-5.00 I'm a newbie to RoR's and I'm having fun with it. My question has to do with how to configure a RoR CMS that allows users to publish pages from the CMS to their hosted domain. I want users to be able to login to the CMS to enter their site content. When they create/update information for their site, their domain should be updated as well. NOTE: All users will share the same db tables for storing their information. Originally, I wanted to create static pages in the users domain directory because their pages wouldn't change that often. The static pages would be cached and changed when updated. Now I'm wondering if I should allow users sites to be dynamically generated. I'm not sure which approach would be better or easier to implement. I need to know how to setup or configure my CMS that allows a user to publish to their domain if I decide to publish flat pages to their domain. If I take the dynamic approach, I need to understand how to configure a users domain so that it logs into the database for th user and use their date and the templates that have selected for their web site. Although I'm new to RoR, I'm not new to programming and understand a little bit about servers. It's okay if you get technical. Tue, 31 Oct 2006 20:07:07 -0800 $1.00 - How soon can the fine makers behind Guruza take down Microsoft? http://guruza.com/question/434/reward-1.00 How soon can the fine makers behind Guruza take down Microsoft? Thu, 26 Oct 2006 21:41:43 -0700 $25.00 - In a RoR application I am making I have a sortable table made using a techniq... http://guruza.com/question/418/reward-25.00 In a RoR application I am making I have a sortable table made using a technique similar to this: http://dev.nozav.org/rails_ajax_table.html This is a two part question: Normally the table is 'unsorted' when you get to it even though the items are alreay in alphabetical order according to the first column. Because of this, the first time you click title to sort by name it appears to do nothing because it was going from 'unsorted' to 'sorted by name' and both are identical. On the first click it should go from 'sorted by name' to 'reverse sorted by name' and the sort_td_class_helper should have the 'sortdown' class applied to it when the page loads. **A solution would either include sample code or enough explanation that I can get it to work.** The other part of the question is how can I make the sorting case-insensive? **A solution would either include sample code or enough explanation that I can get it to work.** Thu, 21 Sep 2006 10:55:10 -0700 $50.00 - I'm building a RoR application that uses sever Ajax.Updater's that load parti... http://guruza.com/question/417/reward-50.00 I'm building a RoR application that uses sever Ajax.Updater's that load partials into DIVs on the page. Unfortunately is the user's session expires it loads the contents of '/user/login' into the DIV that was updated by the Ajax.Updater. Furthermore, this login for doesn't work like the one at '/user/login' **What is the best way around this problem?** A valid answer would include some sample code or a link to some. Ideally the solution would happen on the Rails side of things, but if there is an elegant solution in the form of modify the prototype.js I would accept that as well. Thu, 21 Sep 2006 10:45:19 -0700 $5.00 - My site spans ajax requests that take a while to execute on the server. Howe... http://guruza.com/question/360/reward-5.00 My site spans ajax requests that take a while to execute on the server. However, this request becomes invalid if the user makes another request before the first one is completed. In order to save server resources, I'd like to be able to kill the 1st server request when the second one is sent. I was thinking about polling the session to see if a certain criteria is met. If it is, I'd just abort the current call. How would I do that? I guess I'd have to launch a second thread when the ajax request starts (on the server side) and that thread would poll the session every 100ms or so. If the criteria is met, it would kill the request. I'd like to see a code example of this. Wed, 30 Aug 2006 00:25:10 -0700 $5.00 - I'm developing a new web games site - we're letting users upload Flash games ... http://guruza.com/question/302/reward-5.00 I'm developing a new web games site - we're letting users upload Flash games which will be wrapped with our chat client & other community features. I'm curious about integrating with IM clients. I like the way Guruza does it - what do you guys use? I'll be at the RoR meetup tonight so you can tell me in person. Tue, 08 Aug 2006 08:42:41 -0700 $5.00 - When i start WEBrick, it simply says "=> Booting WEBrick..." then returns... http://guruza.com/question/289/reward-5.00 When i start WEBrick, it simply says "=> Booting WEBrick..." then returns to command line. Any idea why? I am using OS X and Ruby 1.8.4. I tried reinstalling Ruby, didn't help. Here's what I get when I run script/console: LLoading development environment. /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require__': no such file to load -- lib/partial_classes/string.rb (MissingSourceFile) from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require' from ./script/../config/../config/environment.rb:51 from /usr/local/lib/ruby/1.8/irb/init.rb:252:in `load_modules' from /usr/local/lib/ruby/1.8/irb/init.rb:250:in `load_modules' from /usr/local/lib/ruby/1.8/irb/init.rb:21:in `setup' from /usr/local/lib/ruby/1.8/irb.rb:54:in `start' from /usr/local/bin/irb:13 Mon, 31 Jul 2006 09:34:08 -0700 $25.00 - What is the most important thing that we can do to improve Guruza? I will ... http://guruza.com/question/233/reward-25.00 What is the most important thing that we can do to improve Guruza? I will select the 5 "best" answers and then pick one at random for the reward! rich-collins-computer:~ rcollins$ irb irb(main):001:0> require 'rubygems' => true irb(main):002:0> require 'facet/array/at_rand' => true irb(main):003:0> "Dave | nerkles | AgeKay | Jake McArthur | funnyguilly | larry | jer | bryce".split(' | ').at_rand => "Dave" irb(main):004:0> Congrats Dave and thanks for all of the suggestions from everyone! Tue, 11 Jul 2006 16:32:22 -0700 $5.00 - When a user is browsing through a listing of a model, I'd like him to be able... http://guruza.com/question/229/reward-5.00 When a user is browsing through a listing of a model, I'd like him to be able to, say, click on a button/link that will open a form that will allow the user to add a comment on the current record. I have already installed the acts_as_commentable plugin, done the migration of the Comments table, added the acts_as_commentable directive to the class (say, the class name is Task). I have read the tutorial/instruction in the TechKnow Zenze web site, but it doesn't have enough details for me. I've got plenty of questions to ask to finish my project (I am a researcher and a newbie Ruby and RoR programmer). Sat, 08 Jul 2006 12:23:28 -0700 $50.00 - We need a performance monitoring solution that will tell us if something is a... http://guruza.com/question/224/reward-50.00 We need a performance monitoring solution that will tell us if something is amiss with the site. The answer that provides the most comprehensive discussion of various solutions and which one is recommended (and why) will win the reward. Wed, 05 Jul 2006 11:49:44 -0700