similar to: NOOB: ratings/voting mixin or code example?

Displaying 20 results from an estimated 1000 matches similar to: "NOOB: ratings/voting mixin or code example?"

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 Mar 15
1
dynamic events calendar
does anyone know of any available dynamic events calendar plugin/engine/tutorial? i''m a designer just getting started with any real programming and would love any help anyone could provide pointing me in the right direction. thanks bunches, Anthony -- Posted via http://www.ruby-forum.com/.
2006 May 23
9
Shameless plug of my web 2.0 app
Apologies if this is out of place. I just wanted to mention to the list that I''ve completed my first Rails app and wanted to show it to you guys. The site is The Best Stuff in the World! which you can reach here: http://www.thebeststuffintheworld.com/ Any thoughts would be great, I can be reached at adrian@mindjar.com. I''ve been lurking here for a little while, and well,
2006 Nov 14
11
RESTful mixin, mixin repo?
Hi, I just put together a little mixin to provide pseudo-RESTful services in camping apps. Basically, it looks for a hidden _verb field in form posts, and sets the @method to the supplied value (e.g. put or delete - which browsers don''t support). This lets you define put and delete methods in your controllers. Groovy. Code: http://pastie.caboo.se/22613 Is there any permanent repo of
2007 Apr 13
0
mixin behavior
Hi, all, I need to DRY up some code in a few models. My first inclination, having come from the Java world, was to go with an abstract class. After a bit of reading, I then decided to follow the mixin route instead. Now I''m running into trouble, most likely from a few basic misunderstandings. There are three models I will be using to average and count rating data by executing a
2006 Jan 21
4
acts_as_taggable clouds?
what is the easiest/established way to make a tag cloud using the acts_as_taggable plugin? any examples would be greatly appreciated! -A -- Posted via http://www.ruby-forum.com/.
2006 Feb 27
4
Belgian Ruby on Rails Site
Hello, I recently started http://www.onrails.be Onrails.be is a Belgian Ruby on Rails site (in Dutch). At the moment however, the site is powered by Textpattern (PHP CMS). I already knew that, and I''m just getting to know Rails myself. If some Dutch people visit this forum: //message is written in Dutch from this point -> Wat vinden jullie ervan? Is de content goed? Zijn de
2007 Nov 01
8
Specifying mixins
Hi folks, Can anyone share some accumulated wisdom about the best way to spec mixins in general, and (Jamis Buck-style) ActiveRecord "concerns" in particular? The standard situation here is that there''s a bunch of functionality, related by concept if not by implementation, that one wants to inherit in many different classes (e.g. ActiveRecord models) without having to
2006 Apr 12
2
wiki.OnRails.com.ar Argentine Comunity Started
We are in beta now. http://wiki.onrails.com.ar Any question contact me pedro.visintin at gmail -- Posted via http://www.ruby-forum.com/.
2006 May 10
1
model mixin module madness
If I have several models which exhibit the same functionality, it seems makes sense to create a mixin, ''include'' it in each model and save myself some work and repeated code. Where can I define a module which will be available to all models? I can''t seem to find a documented place for them. Alternatively, is there a Rails-standard way of achieving the effect? Ben
2006 Feb 22
5
Auditing mixin for model classes. Small problem
I want to include common auditing functionality in my models. This involves storing the changes made to a model in a seperate table : I have created the functions in an Audit module : module Audit before_update :before_changes after_update :after_changes def before_changes old=self.class.find(id).attributes @changes=[] attributes.each do |key, val| if val != old[key]
2006 Apr 14
2
Rails 1.1.2 is working on shared hosting that has rails 1.0
After many hours I got working It is in spanish but you can copy paste the code. http://wiki.onrails.com.ar/onrailscomarwiki/show/Instalacion+de+Rails+y+Gems+en+un+hosting+compartido P http://wiki.onrails.com.ar -- Posted via http://www.ruby-forum.com/.
2006 Jan 18
6
next rails release?
when is the next release of rails expected to drop? i''m looking forward to the multiple habtm associations working correctly, among a bunch of other fixes... just curious! -A -- Posted via http://www.ruby-forum.com/.
2006 May 19
0
Works in model but not in mixin
Disclaimer: RoR newbie. Using the acts_as_taggable plugin. As an exercise I wanted to switch from the destructive TAG_WITH method to adding tags while preserving the existing ones. On the surface this seemed easy enough and eventually I got it working. However, the following method: def add_tags(list) Tag.transaction do Tag.parse(list).each do |name| if
2006 Apr 13
1
Best way to debug environment.rb and boot.rb
Im learning and trying to see what happened wiht references and files loadeds during dispatch.rb environment.rb -> boot.rb Which is the best way to debugging? I need to find where will obtain references. I know that I can use logger in views but not when booting I guess. Im on a shared hosting, I cannot debug with webrick. Thanks P http://wiki.onrails.com.ar -- Posted via
2006 Jan 15
6
PROPOSAL: Validations as Mixin
It seems to me that Validations are quite useful for many objects, even ones having nothing to do with ActiveRecord. Common examples are Contact Us forms, multi-step forms, web service paramater validations, etc. I took a look at the source for Validations, and it seems that it is very independent from ActiveRecord. I caught only three depenedencies: 1. validates_numericy --> depends on
2006 Jun 21
6
vertical menus
Hello all, Not a directly related question to scriptaculous or prototype, but I am looking for a good, dynamic vertical javascript menu. I''ve done some searching and there are a lot of menu implementations out there. I''m looking for something more or less free, but will pay/donate a small fee towards something worth while. I figured I''d ask here to help filter down
2006 Jan 23
3
prototype.js: enumerable mixin for hash broken
Hello everyone. I am not sure if this is the right place to post, please redirect me if there is a mailinglist more specifically dealing with prototype.js. After playing around with the very inspiring prototype library I have found a rather annoying thing, that makes the usefulness of the Enumerable mixin for Hashes questionable, if I am not totally wrong (again :-). Here an example:
2006 Mar 23
2
rails 1.1 and mysql errors
Hi, I just upgraded to rails 1.1 this morning and i am getting a variety of errors from tests that were passing effortlessly on the previous edge release (i froze several weeks ago, so I not sure what version that was). Has anyone else experienced these types errors with the new rails: I have several errors that are grouped around create and destroy commands the errors are similar, first the
2006 Apr 18
4
Mixin variables
I''ve created an access control module that I''m including in several different controllers. Everything works fine, but I want to allow each controller to override the default login page with something like this: set_login_pages :secure => ''my_login'' In my module, I''ve set up the set_login_pages method like this: def self.included(base)