similar to: Code Shopping in Rails

Displaying 20 results from an estimated 2000 matches similar to: "Code Shopping in Rails"

2006 Jan 08
6
Persistent session cookies?
It seems Rails sessions by default only last, well, a browsing session. If the Rails app keeps track of logged-in state by sessions, that state doesn''t survive restarting the browser. How best to change this behaviour, to make the session cookie live forever, or at least beyond browser restarts? It was suggested to me on IRC to combine sessions with code to generate a unique id and
2006 Jan 11
2
Book Gap(s)?
As a long-time author of computer books, fairly experienced MVC/OO thinker/coder, and recent Rails convert, it is probably not surprising that my midnight ruminations occasionally lead me to wonder if a Rails book might not be an interesting undertaking. But I know there are some great titles out there already and undoubtedly dozens more in the works. I''m interested in writing
2006 Jan 12
10
Take Rails Studio Workshop?
In two weeks, Dave Thomas will be in Pasadena doing a three-day Rails workshop. I''m about to sign up for it. I figure three intense days with Dave and a few dozen other Rails developers will produce huge learning leaps for me. Then it occurred to me that it might be useful to ask the list if anyone has attended one of these workshops before and, if so, how valuable you found
2006 Jan 05
2
Agile Depot Tutorial Help
anyone can explain me why in the Agile Depot Tutorial application they use i.product_id to find if a product already exist in the cart, because the cart contains items, each of them references a product. I tried i.product_id like in the tutorial and i.product.i all of these 2 notation works , but i find the second seems more clean??? isn''t it. Any explanation will be fine Regards
2006 Jan 24
7
formatting numbers with commas
I needed to format numbers with commas to make it more human readable. Here''s how I did it. def commify(number) c = { :value => "", :length => 0 } r = number.to_s.reverse.split("").inject(c) do |t, e| iv, il = t[:value], t[:length] iv += '','' if il % 3 == 0 && il != 0 { :value => iv + e, :length =>
2012 Mar 24
1
Smalltalk binding to R
Hi - any person interested in building a binding between Smalltalk and R, please contact myself or Hernan. This could be done as the Google Summer of Code (GSoC). http://www.google-melange.com/gsoc/homepage/google/gsoc2012 http://gsoc2012.esug.org/projects/r-statistics For those who don't know Smalltalk it is an Object Oriented language that was created back in the '80s in the Xerox
2005 Oct 19
2
[R-gui] R GUI considerations (was: R, Wine, and multi-threadedness)
>>>>> "K" == Kasper Daniel Hansen <khansen at stat.Berkeley.EDU> writes: K> On Oct 19, 2005, at 3:43 PM, Jeffrey J. Hallman wrote: K> <SNIP> >> Think about it. Once you have a basic math package that can handle >> matrix >> programming and various mathematical functions, building the various >> statistical modeling
2006 Jun 24
32
Why is there no Smalltalk-like IDE for Ruby?
I posted this to comp.lang.ruby and comp.lang.smalltalk, and my blog. I will likely get destroyed, but it will be worth it if at least one nugget of information helps the Ruby IDE makers. ----------------------------------------- Hi all -- I shout my question to the entire Ruby + Smalltalk community: Smalltalk has had amazing IDEs for decades, why not Ruby? Smalltalkers, Ruby needs your help!
2006 Jan 03
18
Trying to do a simple thing ...
Hi ! I was talking to a seasider and he asked me if it was easy to do the following thing using rails : 1) ask a number to the user 2) ask a second number 3) give the addition of the two number and a link to be able to replay All these things have to be done in one controller and one action, there is no need for verification and other stuff. I tried but I''ve got some problems
2006 Jan 05
6
Inheritance Question
Hi, My application has a table of People that has information about them, and I want to have a subset of those people as Users - people that can login to the application. What is the best way to do this? Add columns to People that only Users would use? I''ve read the threads on single table inheritance, but it seemed a little bit wasteful: 10,000 people vs 50 users For those more
2008 Feb 22
1
Calling R_PreserveObject from embedded R
Hello. This is my first post to the list, so first I'd like to thank everybody for making and mantaining such a great product as R. I'm writting a native binding to R from Dolphin Smalltalk. I've followed up the examples of the documentation showing how to run R embedded, and I got it partially working. However, I have a problem with the reference handling of the R objects.
2006 Jan 09
3
Include with two references of one model of the same table
Hey guys, I just came across this oddity, not sure what to make of it yet, but I think it might be incorrect behavior. When doing a @inst.find(:all, :include => ["hometeam", "awayteam"] ...) hometeam and awayteam are two references from a belongs_to that is of the same model and of the same table. I will get a pgerror stating that "matches", which is
2007 Jun 07
6
Problem with response.should render_template
Hello, I have problems with this spec controllers: http://pastie.caboo.se/68634 when I run: rake spec:controllers I get this error: ...............F...... 1) ''DocTypeController should update and redirect to show'' FAILED expected redirect to {:action=>"show", :id=>1}, got redirect to
2007 Jun 05
6
Help with spec controller
Hello, I haven''t been able to create a controller spec. You can see the code here: http://pastie.caboo.se/67980 The error message I''m getting is: Spec::Mocks::MockExpectationError in ''PersonController should tell the Person model to create a new person on POST to create'' Mock ''person'' received unexpected message :save with (no args)
2005 Nov 15
1
acts_as_paranoid --> undefined method `constrain' for class `Class'
Hi All, So I thought I had this acts_as_paranoid problem previously and fixed by going to rails 0.14.2, although I''m not 100% it was the same thing. I''m now on rails 0.14.3 and I''m getting: undefined method `constrain'' for class `Class'' for any model that includes acts_as_paranoid. My application trace is below. Has anyone else got this and know a
2005 Nov 03
12
Installation of plugins/gems/mix-ins confusion
I''m running 0.14.2 and am a little confused as to the best way to install mix-ins. I''m specifically using "acts_as_paranoid" as an example (as it is one of the simpler implementations). It is a gem and can be "installed" as a gem, but then what''s the best way to integrate it into my app (require_gem?). I''ve seen recommendations to require it
2006 Feb 20
1
Object finalization help
Heya guys, This one is bothering me as its evading my eye. I''m trying to set a callback on finalization of an object, ie: a finalizer set through a plugin to the model. Example In Plugin: def acts_as_goat class_eval do ObjectSpace.define_finalizer(self, lambda {self.conn.close} ) end end class UberGoat < ActiveRecord::Base acts_as_goat end Is this the correct way to set
2006 Feb 09
9
Looking for hosting advice
Hello everyone, I''ve got a Rails app that''s going to replace an in-house application, where the customers are used to having to deal with maintaining their own servers and data. As these are non-IT customers, maintaining servers and data is a long way from their core business and thus quite costly for them. I''m hoping to slice their costs by removing the requirement
2011 Nov 09
3
Mongo adapter
I have setup mongo database and want to know which one would be best adapter ( mongo_mapper , mongoid, dm-mongo-adapter ) in terms of Associations, include option for eager-loading . -- Regards Mukesh Paras Singh -- 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
2006 Jan 10
8
first ajax demo in Rails book - does it work for anyone?
Just tried the first AJAX example in the rails book (p.391-392, the ''word guessing'' thing), and the AJAX partial used seems to render as a full page. I''m not sure whether it''s a) a partial bug b) some interaction between ajax and partials c) a change since the book came out or d) pilot error I''ve checked the errata pages and it''s flagged up