similar to: strange behavior of acts_as_taggable

Displaying 20 results from an estimated 200 matches similar to: "strange behavior of acts_as_taggable"

2005 Oct 21
0
[RFC] Multi-language rails
I''ve started working on rails translations and localization. My first notes are at http://wiki.rubyonrails.com/rails/pages/RailsLocalization First doubt: ri18n uses functions like _(), _i(), or n_() to mark translatable strings. We need to mark some of these in ActiveRecord and maybe another components of the framework. Since the translation framework is initialized by railties, this
2005 Oct 15
14
OT: Anyone Using a Time Logger?
I have multiple projects and it''s important for me to track time by client and by project. There''s a Windows application that allows me to do this, but I''m looking for a cross-platform solution. I looked at ConsultComm but it wouldn''t install on my Mac. Rather than rewriting what seems like a commonly-required app, I wondered if anyone else had something they
2006 Nov 28
1
link_to and url_for in ActionMailer
I am new to ActionMailer and having a problem. I want to be able to send a notification e-mail when a new item is added to a list. Sending an e-mail to the right people on creation is working fine. However, I want to include in the e-mail a link to the application so that users can click on the link in the e-mail and immediately be taken to the show view for the new item. When I add a link_to
2006 Dec 15
3
Problem Joining an XP CPU to Samba Domain
Hello, I have an XP (SP2) CPU that has just been reloaded with the OS (hard drive was reformatted). The NIC works and I can access the Internet with no problem. When I join the CPU to the domain (there are many other CPUs already on this domain), it joins. After the mandatory reboot, if I try to log in using a domain account, I get an error saying the username and password are incorrect. I
2006 Aug 25
1
Reload instance data on instantiate
I''m working on a website which interacts with Amazon web services. I have an Item class which is a cache for amazon items. I''d like to have the class instances to refresh data every day (Time.now - item.last_updated > 1.day) but not sure how. I''ve tried with class Item < ActiveRecord::Base # ... private def instantiate(record) super
2005 Sep 06
9
acts_as_taggable v4 - Tag Counting Anyone?
There´s already a new version of the acts_as_taggable mixin available and look what it is capable of now: # Gets the top 10 tags for all photos Photo.tags_count :limit => 10 # => { ''beer'' => 68, ''wine'' => 37, ''vodka'' => ''22'', ... } # Gets the tags count that are greater than 30 Photo.tags_count :count =>
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 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 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
2010 Jun 29
16
problem finding find current page
I have this bit of code in my email.controller user = @current_user story = @current_story recipient = story.user It doesn''t work because @current_story isn''t defined. How can I find the current page to make this work? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
2005 Jun 27
9
FK constraints overrated?
Hello folks, I use to think that a relational databases without foreign keys constraints enforced strictly by the RDBMS were no good, piece of crap, data junk. However, I''ve also learned the hard way that FKs constraints imposes serious difficulties when moving data around, specially between different DBs, or for loading test data or for upgrading DBs schemas, or for porting DBs
2011 Jan 15
3
respond_with javascript
My ajax stopped working when I switched to using respond_with. For my Votes, I have the create action and the corresponding create.js.erb, and respond_to :html, :js, :xml in the controller. Heres the log when I try and create a vote: Started POST "/stories/3-asdfasdf1111/votes" for 127.0.0.1 at Fri Jan 14 20:46:36 -0800 2011 Processing by VotesController#create as */* Parameters:
2004 Dec 15
4
AR db adapter for a RDF database (ATT: DHH)
Hi people, As I stated in a earlier message, I am using Rails on my masters degree and soon I will have to port my application from a relational database (MySql) to a RDF semantic database called Sesame. At first, I thought that I could get away with most of the porting only by writing a decent database adapter, but then, examining AR closer, I could see that it has some strong dependencies
2008 Jan 23
11
Rails 2.0.2 + RJS
Hi I had ajax commenting on my app, which worked perfectly on Rails v1.2.6, but does not work the same in Rails 2.02. Basically the comment gets added, but the visual effects do not work (ie lines 2 + 3 of create.rjs) create.js page.insert_html :bottom, ''comments'', :partial => ''comment'' page.visual_effect :appear, "comment_#{@comment.id}"
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
2010 Aug 06
4
Object/Record foreign key IDs set to zero
Hello, Hope no one minds me just jumping in here with a question. I''m completely new to Ruby on Rails. I''ve been reading "Simply Rails 2", and following their examples. I reached a point where the unit tests were unexpectedly failing. Upon investigation, I discovered that when Rails loads the fixtures, the foreign keys aren''t being populated with the foreign
2002 Sep 07
1
rcopy.pl an Perl script for rsync (with XML config)
Hello all, I have been working on a Perl script called "rcopy.pl" that basically allows you to configure rsync via an XML file. It's very easy to use. And it's very usable at this point. FEATURES: * allows you to create your own set of rules to backup a system (synchronize) -- a la 'rdist' * you can have multiple servers and user accounts for different sources in one
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
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