search for: loudthinking

Displaying 20 results from an estimated 163 matches for "loudthinking".

2006 Aug 08
3
problem inserting parameters in link_to_remote
I want a page that lets users add members to a group from a longer list, or remove members from that group. I can use Ajax to transfer a name from the long list to the group, or drop an existing name from the group. But. If I add a person to the group, and try to remove without refresh, it doesn''t work. My link is formed by <%= link_to_remote ''add'', :url => {
2006 Jan 25
11
Schemas and Migrations
Hello- I''m new to the ruby-based schemas and migrations. As I''m looking over examples and such online, I see that many of them don''t make use of schema-enforced attributes. For example, instead of: t.column "post_id", :integer, :default => 0, :null => false They do: t.column "post_id", :integer So I''m wondering -- is this
2006 Aug 08
8
RESTful Rails Plugin
I am following the instructions on how to use RESTful Rails plugin found at http://www.xml.com/pub/a/2006/04/19/rest-on-rails.html?page=3. When I run the rake test:functionals I get the following error message: rake aborted! undefined method `first'' for :book:Symbol (See full trace by running task with --trace) How can I fix this problem? I am using Rails 1.1.4 version. TIA
2006 Jan 16
3
37s style modularization ?
Hello all, I remember and have lost a link to the blog on hints about 37s modularization of basecamp, backpack, etc. Anyone remeber this and can remind me of the link? Thanks ! -- ------------------------------ Forget the icing. Bake the cake! - the epicentered developer ------------------------------ Peter Fitzgibbons -------------- next part -------------- An HTML attachment was
2007 Sep 17
2
Ruby/Rails newb here. I need help getting started.
I''m trying to follow the videos over on http://www.loudthinking.com/arc/000328.html. The first bit of it was fine, but then it says to type "ruby script \new_controller Hello index". My scripts folder doesn''t contain anything even similar to "new_controller". According to the generated "index.html" page, it says "Us...
2006 May 07
3
Needle + Rails - IoC
Hi, I''m looking for past efforts to integrate Rails and Needle. I am thinking of doing it myself but would be interested in seeing what others have done before. If there are examples of other IoC frameworks being used with Ruby I''d be interested in hearing about them too. I find IoC to be a helpful concept in general and, having glanced at a few existing Rails app.s, I
2006 Dec 07
6
form_tag not producing output
I''ve got two servers, both with Rails 1.1.6 on them. I''m trying to remove some of the newly-deprecated stuff in my app, and I''ve run into a problem. My login page used to look like this: <div title="Account login" id="loginform" class="form"> <h1>Please Sign In</h1> <%= start_form_tag :action =>
2006 Apr 03
11
View source after AJAX update?
Does anyone know how to view the new source in IE after an AJAX update? When I "view -> source" I get the original page source, not the page source as updated. Thanks in advance, Bill -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060403/e8d96b2e/attachment.html
2005 Mar 04
3
optimization
Ok, so, I''ve written my first app in rails. It''s pretty nifty. Only one problem. Slower than you could possibly comprehend. Processing PersonController#show (for 67.138.254.231 at Thu Mar 03 21:04:16 Eastern Standard Time 2005) Parameters: {:id=>"1", :controller=>"person", :action=>"show"} [4;35mPerson Load (0.219000) [0;37mSELECT
2006 Apr 06
3
Rails 1.1.1: Fixing a slew of minors (but you must still freeze Typo)
...at this information is spread far and wide, it''ll rest on your shoulders to make sure you''re frozen and stay cool. If you still haven''t upgraded to Rails 1.1, checkout the original announcement for a run-through of all the features. -- David Heinemeier Hansson http://www.loudthinking.com -- Broadcasting Brain http://www.basecamphq.com -- Online project management http://www.backpackit.com -- Personal information manager http://www.rubyonrails.com -- Web-application framework
2005 Mar 08
19
find_by_sql ON STEROID possible?
find_by_sql BREAKS THE OOP BEAUTY and perhaps we can solve that. NAMING CONVENTIONS can perhaps make find_by_sql much more clever. lets imagine that relation: publishers <- books <-> authors_books <-> authors -> universities (can''t find something else than university for that last association :) ) imagine we want to fetch every book and every associated
2006 Jul 21
2
New Generator: hasmanythrough
To the aide of anyone whose had to create new models, migrations and unit tests for the common many-to-many relationship, using "has_many :through" (that''s almost everyone). I''ve created a new generator that generates two model classes, plus a many-to-many relationship class, e.g. User, Group, plus the Membership model between them. It also generates the migrations
2004 Dec 24
2
Net::STMP FatalError
I have a module that sends email to the members that have subscribed to my site. When it runs through and sends them all emails, it crashes with certain emails with: 550 <email-x+rxnKfQbAxWk0Htik3J/w@public.gmane.org>: Recipient address rejected: User unknown in virtual alias table This is on the other end right? And even so, is there a way to suppress it?
2006 Jan 08
8
RaislsEdge - where to get latest javascripts ?
To play with RJS I just made a "rake freeze edge". But this copies only the libs into vendor/rails and any attempt of "rake update_javascripts" fails. But all the he required javascripts are there, at: BASEPATH/vendor/rails/actionpack/lib/action_view/helpers/javascripts/ Except of prototype, they seem to have no version number, so I am asking whether I should take those
2006 Mar 14
3
Check whether externam URL is valid?
...true on success? (btw: does anyone of a tentative release date for Rails1.1? I''ve been slobbering all over my RailsRecipes book and I can''t wait! Also, Scott Raymond''s compiled a list of awesome stuff that''ll be incorporated into the next release. . . link on LoudThinking.Com) Lots of Thanks, Gustav gustav@hamburgerrobot.com -- Posted via http://www.ruby-forum.com/.
2004 Dec 07
30
Bind Variables in Active Record
OK, I have some basic functionality to support bind variables, it appears to work with the ''old'' %s style too. I''ve altered sanitize_conditions in activerecord/lib/active_record/base.rb to check whether bind variables are in the statement (/\?/). If they are, replace all the ?s to escaped values from the arguments array. else santize and expand. There are a few
2006 May 04
3
Rubyonrails.org Website Blocked
Hi Everyone, This is basically an FYI because I don''t think there is much that can be done about it. I work at a DoD lab and up until very recently I had no problems at all getting to rubyonrails.org. All week long I have not been able to visit the site and I finally gave up and submitted a trouble call to our network help desk. I was told that the site was in a class B range
2006 Jan 09
4
Problem with habtm and resulting SQL insert
Cheers, I have a problem with 1.0 and a habtm relationship between User and Article. I want to save all articles that users read. I have these models: class User < ActiveRecord::Base has_and_belongs_to_many :read_articles, :class_name => "Article", :join_table => "read_articles" ... end class Article < ActiveRecord::Base has_and_belongs_to_many :readers,
2006 Jun 28
2
respond_to and Accept headers
After reading: <http://www.loudthinking.com/arc/000572.html> I''m trying to experiment with respond_to in order to not repeat myself and create atom feeds out of a "browse" view. In application controller I created a before filter that checks for the extension of the current url and changes the accept header: [c...
2005 Dec 21
3
Patch Cycle
Hello, I submitted a patch <http://dev.rubyonrails.org/ticket/3287> ( http://dev.rubyonrails.org/ticket/3287) a couple of days ago. The patch adds some methods into and changes the existing methods in the CaptureHelper module. It should not, as I can see, affect any existing Rails implementations. I added the relevant unit tests and all but one of the tests pass. The test that fails failed