search for: bosko

Displaying 20 results from an estimated 30 matches for "bosko".

2006 May 10
4
validates_uniqueness_of and create atomicity
...queness? I had imagined it would do something "clever" like attempt the insert, trap an exception if it occurs, and attempt to subsequently verify if the exception is the result of a violation of the uniqueness condition specified. But clearly this is not what is happening. Regards, -- Bosko Milekic <bosko.milekic@gmail.com>
2006 May 11
9
acts_as_commentable plugin
I''ve just about finished up work on a plugin similar to acts_as_taggable, but for comments instead which would allow you to attach comments (possibly even a threaded discussion if conbined with acts_as_tree) to any object. Is there anyone that would be interested in it? I don''t want to go throug the trouble of finding some way to distribute it unless I know that there is a
2006 May 10
7
has_many :through scope on join attribute
Hi I have a has_many :through. It''s a basic mapping of Project id .... User id .... TeamMembers project_id user_id role What I would like to do is have different roles so I can have in the project model has_many :core_members, :through => :team_members, :source => :user but I would like to limit this to only those with the "core" role in the team members table for
2006 Jun 05
7
Is HABTM Dying?
For a while, I''ve been getting that HMT is replacing HABTM. It appears that HMT can do all of what HABTM can do and more. The question is: Should I stop using HABTM? Let''s take a simple case: A case has many categories For a given category, there are certain valid statuses Category has_and_belongs_to_many :statuses Status has_and_belongs_to_many :categories Question: Is
2009 Mar 28
2
Git and vendor/rails
This is really a git question but the problem is with rails using git and others may have come across the problem. I have a branch on my application''s git repository with edge rails as a subproject checked out into vendor/rails. this allows me to keep my application edge-compliant by checking out the branch (which creates the rails folder in vendor), pulling the latest edge rails and
2006 Aug 18
9
Rails is doing what I want - but I don''t understand how.
Hi guys, I have the strangest thing happening. The funny part is its doing exactly what I want to do, I just don''t understand how. Basically here is my model. class Role < ActiveRecord::Base has_and_belongs_to_many :users has_and_belongs_to_many :rights def self.names names = Array.new() for role in Role.find :all names << role.name end return
2006 Nov 22
3
RESTful web service design question
I''m working on a Rails app that needs to expose a RESTful web service. I''m curious to know some of the best practices as it relates to RESTful API design. Let''s say I have a set of related objects on the server side. I''ll use the venerable subscribers, subscriptions and magazines example to lay it out. class Subscriber < AR has_many :subscriptions
2006 May 11
2
Login Generator and Salter
okay, I''m using login generator. And when I log in alwase get failed. So I looked at my log, I gatherd infomation that says on creation the salted pass was: 2b8b06e5a650a4b97f146e6b5ae7ab82c43707e on login the salted pass is: 2b8b06e5a650a4b97f146e6b5ae7ab82c43707e and in my DB it is: 2054d52ca901ff70b5a334cb3e13d8c67940c3f3 So in my DB it change why? -- Posted via
2006 Sep 08
1
has_many relationship extensions and scoping rules
Hi all ! Is this supposed to work ? class Email < ActiveRecord::Base has_many :to, :class_name => 'Recipient', :conditions => "recipients.source = 'to'" do def create!(*args) with_scope(:create => {:source => 'to'}) do super end end def build(*args) with_scope(:create => {:source => 'to'}) do
2007 Feb 07
2
form_for onsubmit
Is there a reason I can''t find any information on using the onsubmit attribute with form_for? I''d hate to *gasp* hardcode the form tag in. chad --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2013 May 09
0
Rmre 0.0.7 released
...s_many relationship ({Gui Weinmann}[https://github.com/alphabet]) * Changed readme file to use mysql2 gem in samples ({Ketan Deshmukh}[https://github.com/ketan21]) * Experimental support for copying databases through db_copy binary or by using Rmre::Migrator class GitHub: http://github.com/bosko/rmre Issues: http://github.com/bosko/rmre/issues -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocF...
2006 May 10
4
Single Table Inheritance problem
I have two tables I am using single table inheritance with: Page and Item. "Page" has many "Items"; "Item" belongs to "Page". Item Model: class Item < ActiveRecord::Base end class Article < Item belongs_to :page end Page Model: class Page < ActiveRecord::Base end class Issue < Page has_many :articles end In my controller, when I
2007 Feb 25
9
Ferret 0.11.0-rc1
Hey folks, Sorry for cross posting like this but this is an important announcement for all Ferret users. ** Description ** Firstly for those who don''t know, Ferret is a full-text search library which makes adding search to your application a breeze. It''s much faster than MySQL full-text search as well most other search libraries out there. It allows you to do Boolean (+ruby +
2011 Mar 20
10
Unable to install mysql2 gem on windows 7
I am getting the following error message while installing, let me know if any one needs some more details. I followed instruction from "https://github.com/oneclick/rubyinstaller/wiki/Development-Kit". I am using ruby 1.9.2p136 (2010-12-25) [i386-mingw32]. E:\work_desk\trunk>gem install mysql2 -v 0.2.4 Temporarily enhancing PATH to include DevKit... Building native extensions. This
2006 Aug 04
4
REST
I''ve been looking into RESTful approaches lately. Everything I know my dog, Lelu, taught me. REST (REpresentational State Transfer) is an architectural technique for networked applications first described by Roy Fielding in his dissertation at UC Irvine-- excellent work, especially considering the tempting proximity of Newport Beach. As Lelu described it to me, REST strives
2003 Jul 18
2
pf
ei tuka imam edin pf conf obache pravi mnogo nomera, kato se pusne parvoto koeto e dropva paketi, timeoutva po serverite i t.n.. i speed-a e mnogo baven, vijte ako nqkoi moje da otkrie generalna greshka da reply :) vapreki che ne e freebsd-specific :P ne sym go pisal az a i ne sam mnogo mnogo zapoznat s pf zatova ako nqkoi moje da pomogne e dobre doshyl :) btw moje i neshto ot tia opcii kato set
2010 May 10
7
NilClass passed to partial view
Hi, I have a simple program that tries to do something really basic. First, I have a company Model : ------------------------------------- class Company < ActiveRecord::Base has_one :billingAddress, :foreign_key=>"id", :class_name=>"Address" end Then I have the address Model : -------------------------------------- class Address< ActiveRecord::Base belongs_to
1999 Dec 24
1
Problem with 1.2.1pre19
Hello to all There is some very strange problem in 1.2.1pre19. I can not even log in, I'm always getting message "Permission denied, please try again." Seems like problem in auth-passwd.c or something. I tried to mix pre18 & pre19, but... ;) Bye
2000 May 23
1
further problems Re: scp not found with solaris 8/2.1.0p2
Thanks to Richard June, John Horne and Bosko Radivojevic, who pointed out that I probably need to set the configure-time option --with-default-path, so I did this (rather than make symlink messes, which I'd prefer to avoid) : 1489 ./configure --with-default-path=/bin:/usr/bin:/opt/local/bin --prefix=/opt/local --with-random=/dev/random...
1999 Nov 09
0
Nasty ping with pattern '+++ATH0' - how to stop?
...ings of ping -p option. This little patch (in attachment) will enable logging via syslogd(8). Messages are logged with 'warrning' priority, and consist of PID, UID, pattern, and pinged target. Patch is made for netkit-base-0.10, a part of Slackware, and other distributions too. Sincerely, Bosko [mod: Logging at the ISP will not help people who have a decent machine/modem from pinging others. People who are annoyed by others shutting down their link can specify "escape 41 61" to have ppp escape all A's before transmission. (Untested: my link didn't hangup when I tried it...