search for: demetrius

Displaying 20 results from an estimated 20 matches for "demetrius".

2005 Sep 06
9
acts_as_taggable v4 - Tag Counting Anyone?
...eater than 30 Photo.tags_count :count => ''> 30'' # => { ''beer'' => 68, ''wine'' => 37 } More about it here: http://dema.ruby.com.br/articles/2005/09/06/tag-counting-anyone I promise this is the last release of the week. ;-) Cheers, Demetrius -- http://dema.ruby.com.br - Rails from a .NET perspective
2005 Sep 06
6
strange behavior of acts_as_taggable
I was testing my models with this new library and I got: >> s.tag "warp" ActiveRecord::StatementInvalid: ERROR: inserción o actualización en la tabla «tags_stories» viola la llave foránea «tags_stories_story_id_fkey» DETAIL: La llave (story_id)=(8) no está presente en la tabla «stories». : INSERT INTO tags_stories ("tag_id", "story_id") VALUES
2004 Dec 15
4
AR db adapter for a RDF database (ATT: DHH)
...d be the biggest challenges? What parts of AR would I have to adapt besides crafting a good db adapter? It is important to point out that I am not concerned with performance or any real world usage as it would serve only to demonstrate my application in a academic setting. Thank you very much, Demetrius
2005 May 01
5
Example using Builder::XmlMarkup and .rxml files?
Greetings, I''m a newby to both "R"s in RoR. I would like to use Builder::XmlMarkup to generate my pages. If there is a working downloadable example somewhere, that would probably be enough. Otherwise, here''s what I want to do: With the following controller: class AccountsController < ApplicationController layout ''accounts'' model :account
2005 Sep 03
13
acts_as_taggable v2 - Tagging on Steroids
Hi folks, Thanks to the community feedback on the 1st version, I''ve come up with a much improved version of the acts_as_taggable mixin. There´s some piece of the action here: http://dema.ruby.com.br/articles/2005/09/03/tagging-on-steroids-with-rails Cheers Dema -- http://dema.ruby.com.br - Rails from a .NET perspective
2005 Jun 27
9
FK constraints overrated?
...he right value. But, as I said before this doesn''t come for free. So, if we use a good relational data mapper such as ActiveRecord that handles all FK manipulation, and in its own way, enforces data integrity, are FK constraints worth the pain? What''s your take on that? rgds Demetrius http://dema.ruby.com.br/
2005 Aug 16
3
Rails Docs in CHM format
Hi Folks, For the Windows Railers, I''ve made the Rails docs available as a CHM file: http://dema.ruby.com.br/articles/2005/08/16/rails-docs-in-chm-format Cheers, Dema -- http://dema.ruby.com.br - Rails from a .NET perspective
2005 Jun 08
7
Rails/lighttpd: Changes to controller not being seen?
This is a weird one: My app works fine on our local box with webrick. After uploading to TxD server, the app starts behaving weirdly. I make some edits to one of the controllers and my changes don''t seem to be going through. So I go ahead and change the name of the controller file. The page loads without error. I figure maybe I''m in the wrong directory, so I change the
2006 Jan 03
1
RequireResourceHelper for JS and CSS
...include any javascript or CSS files whose name matches the current controller''s name. In addition, any file named like ''controller_name_action_name.css'' will also be included for specific actions (likewise for JS). It was inspired by a portion of code I saw from Demetrius Nunes. To use it, put the following in your application.rb: class ApplicationController < ActionController::Base helper ''require_resource'' end Then in my layout''s HTML "head" section: <%= stylesheet_auto_link_tags %> <%= javascript_auto_in...
2005 Jan 07
3
ruby on cygwin and mysql - problem connecting to db
Hi, I''m trying my hand at rails by working through the tutorial. I''m stuck on getting the rails app, running on webrick, to talk to mysql. I''m getting the "No such file or directory - /tmp/mysql.sock" message that I''ve seen that others sometimes encounter. Here''s my environment: Win2k w/ cygwin installed at c:\cygwin ruby installed via
2009 Nov 18
2
Composing Data from THREE models with Aggregation
Hello! I''m looking for assistance EXTENDING an example from the Agile Web Development With Rails book: Composing Data with Aggregation (page 324). I''m trying to map three columns to a single Ruby object. However, unlike the example in the Agile Web Development book, the three columns I want to map into one object come from THREE DIFFERENT models. I want to map the following
2006 Mar 17
0
validations using acts_as_taggable
Can anyone provide me an example of how they are displaying validation errors when saving a tag using Demetrius''s (not DHH''s) act_as_taggable plugin? For example, the tag model has a :validates_length_of :name, :in => 1..30, :too_long => "Tag name too long - max 30 characters", :too_short => "Tag must have a name" If a user inputs a tag longer than 30 charact...
2005 Dec 30
0
XP Apache FastCGI ok if RAILS_ENV="", crash when RAILS_ENV="production"
Dears, Thanks to Demetrius (dema.ruby.com.br, see Taming FastCGI) I''ve a running FastCGI Rails 1.0 environment with : - Win XP "Professional" (just brand name) - Apache 2.0.55 (msi) - Ruby for Apache 1.3.1 - Database backend is now Oracle 8.1 Everything run fine with default environment, I''m co...
2005 Aug 02
0
Re: RubyForIIS
...> This release is the first phase where setup is a manual process but at > least we do not need Apache anymore to get things going. A future > major release should include a rewrite engine and a setup wizard to > make setup just as easy as Rails itself. > > MySQL bindings from Demetrius Nunes are also included in the installer. > > Hope you guys find this helpful. > > Boris > >------------------------------------------------------------------------ > >_______________________________________________ >Rails mailing list >Rails-1W37MKcQCpIf0INCOvqR/iCwEA...
2009 Jun 08
0
Printing out Cucumber step definitions
...mplete silence, I''m back at blogging about Ruby and Rails-related stuff again. For a first post, I''m showing a rake task you can use if you want to print out Cucumber step definitions for your app, grouped by source file. It''s been really useful to me. Here: http://blog.demetriusnunes.com/past/2009/6/7/looks_like_i_am_blogging_again/ Cheers, Demetrius -- ____________________________ http://www.demetriusnunes.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"...
2005 May 23
16
Success - Rails, FastCGI, and IIS / Windows Server
About 17:00 localtime I managed to get fastcgi, Rails and IIS all happy together. Upon success I ripped off my clothes and ran through the village yelling "The future is now!". A PDP-11 geezer stuck his head out a window and said "The future isn''t what it used to be and keep yer shirt on". Modifications were required to dispatch.fcgi and request.rb. The following
2009 Mar 12
2
compiling ffmpeg with --enable-libspeex (was Re: from Adobe Flex / Flash Player 10 .flv Speex via Red5 to .wav PCM?)
I am having trouble compiling ffmpeg to support speex, which didn't work with the ubuntu libspeex-dev package, but looks like it might with the Speex version 1.2rc1 tarball from http://speex.org/downloads/ How do I tell ffmpeg's configure and/or make to use the 1.2rc1 version of libspeex in /usr/local/include instead of the older debian/ubuntu libspeex-dev package in /usr/include/speex?
2005 Feb 09
85
Introduce yourself and your project -- Round 2
...way or another. On the subject of public personal Rails projects I have Collaboa, which is a communitywikiforumthingie I''ve created for the swedish mac dev site http://cocoa.se. There is a Trac install available at http://collaboa.cocoa.se/trac if anyone wants to have a peek... ======= Demetrius Arraes Nunes Working on my masters degree in PUC-RJ, Brazil I also work on my own e-learning start-up company: Interface Ltd (http://www.interface-ti.com.br) (we use .NET there, for now... ;-) ) I live in Rio de Janeiro, Brazil My masters degree is about a web modeling technique called OOHDM (Objec...
2005 Aug 27
0
acs_as_taggable : easy tagging with Rails
Hi there, If you''re building a web application that uses tags, you might want to take a look here: http://dema.ruby.com.br/articles/2005/08/27/easy-tagging-with-rails Cheers, Dema -- http://dema.ruby.com.br - Rails from a .NET perspective
2005 Sep 13
5
acts_as_taggable 1.0.4 now gemified!
Hi Folks, The acts_as_taggable mixin is now available as a shiny gem. More details here: http://dema.ruby.com.br/articles/2005/09/13/acts-as-taggable-gemified This release features some cool additions as well. Cheers Dema -- http://dema.ruby.com.br - Rails from a .NET perspective