[Rails] D3.js, Rails-5 Machine Learning Stock Market App For Your Laptop

2016-05-21 Thread Dan Bikle
like Logistic Regression works better than Naive Bayes.Rails 5 is new so I wanted to wrestle with it a bit.If you study spy611.com you will find instructions on how to deploy it to your laptop.Holler if questions: bikle101 at gmail- Dan Bikle* -- You received this message because you are subscr

[Rails] Re: Need help upgrading to Rails 5

2015-12-30 Thread Dan Cromer
I was able to fix this. The problem was that I did not generate my new rails project using the Rails 5 generator. Instead, when I did rails _5.0.0.beta1_ new myapp Everything worked On Wednesday, 30 December 2015 01:36:42 UTC-8, Dan Cromer wrote: > > I'm experiencing the same pr

[Rails] Re: Need help upgrading to Rails 5

2015-12-30 Thread Dan Cromer
I'm experiencing the same problem. I'm not trying to upgrade an app, though, I'm only trying to play with a new rails app from the ground up, just to try out some of the new features. Have you been able to figure out what the problem is? On Wednesday, 23 December 2015 06:55:59 UTC-8, Johan And

[Rails] Ruby on Rails features questionnaire

2015-07-21 Thread Dan Cancro
x27;ve addressed this. It would be nice to get 2-3 responses, but that should be enough. Click to do questionnaire <http://www.dancancro.com/technology-questionnaires/> Thank you, Dan -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk&

[Rails] Re: Live fuzzy search from database table

2015-03-05 Thread Dan Rees-Jones
Soulmate is pretty good. There's a tutorial here that is pretty easy to get started with: http://josephndungu.com/tutorials/fast-autocomplete-search-terms-rails Also have a look at Searchkick . On Tuesday, March 3, 201

[Rails] Re: Moving from Engineyard to Amazon's OpsWorks

2015-01-17 Thread Dan Aronson
Tim, Did you ever do that. Anything to report? --dan On Tuesday, February 4, 2014 at 11:56:04 AM UTC-8, Tim Swetonic wrote: > > Hello all, > > We're considering moving our Rails app from Engineyard to Amazon's > OpsWorks. We should have a considerable savings doing

[Rails] Re: Ruby on Rails syntax

2014-07-30 Thread Dan Boyle
Thanks very much. On Wednesday, July 30, 2014 5:52:41 PM UTC-4, Dan Boyle wrote: > > Hello, > > I am very new to Ruby on Rails. I am working my way through the guides at > rubyonrails.org. It isn't going very quickly but I am determined to make > it work. &

[Rails] Ruby on Rails syntax

2014-07-30 Thread Dan Boyle
edded ruby. What is the difference between these two forms of embedded code. <%= ... some code ... %> and <% ... some code ... %> Some lines have the equal sign in it and most of them don't. I just want to know what the rule is for using either. Thanks. Dan --

[Rails] Syntax question.

2014-07-30 Thread Dan Boyle
Hello, I am new to Rails and work my way through the guides at R -- 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+unsubscr...@googlegrou

Re: [Rails] What would be the best way for a rails project to receive real time stock quotes?

2014-05-16 Thread Dan Brooking
https://www.ruby-toolbox.com/search?utf8=✓&q=real+time+stock looks to have some potential options. On Tue, May 13, 2014 at 10:05 AM, Walter Lee Davis wrote: > > On May 13, 2014, at 10:01 AM, Richard Garcia wrote: > > > Id like to be able to get multiple stocks depending on which ones the > > use

[Rails] What Gives? If Rails is so good why is it so hard to install it?

2013-12-25 Thread Dan Boyle
is telling me? It says it isn't found and that it does exist. Huh? Why is this so difficult? Any insights to help me get my head around all of this would be most welcomed. Dan -- You received this message because you are subscribed to the Google Groups "Ruby on Ra

[Rails] Problem with Filling Tables.

2013-09-02 Thread Dan Distraff
I have an application that has models for beer styles. Every beer style will have a name and description. It will also contain a list of beer models. Every beer model will contain a name. I want my application to fill in the list of styles with some default data. #Beer migration file: class Cr

[Rails] Re: Unable to do rake command

2013-09-02 Thread Dan Distraff
Yes, it worked! You are a life-saver. -- Posted via http://www.ruby-forum.com/. -- 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+unsubs

[Rails] Re: Unable to do rake command

2013-09-01 Thread Dan Distraff
Update: I tried rvm use 2.0.0 and it worked. Now when I did which rake I get /home//.rvm/gems/ruby-2.0.0-p247@global/bin/rake When I tried rake db:migrate I get: Could not find coffee-script-source-1.6.3 in any of the sources Run `bundle install` to install missing gems. So right now I am tryi

[Rails] Re: Unable to do rake command

2013-09-01 Thread Dan Distraff
Jordon Bedwell wrote in post #1120296: > On Sun, Sep 1, 2013 at 4:54 PM, Dan Distraff > wrote: >> Previously I have been trying to install ruby and rails and used apt-get >> at one point. I did install previous versions of ruby and rails by >> mistake which I had to cor

[Rails] Unable to do rake command

2013-09-01 Thread Dan Distraff
Previously I have been trying to install ruby and rails and used apt-get at one point. I did install previous versions of ruby and rails by mistake which I had to correct. Now I used rvm to install ruby 2.0.0 and rails 4.0.0 but when I try to run the rake command I get: /usr/bin/env: ruby1.9.1:

[Rails] Where is the code that lets you override the templates that the generators use?

2013-08-29 Thread Dan Oved
In the rails documentation, it states that: In Rails 3.0 and above, generators don't just look in the source root for templates, they also search for templates in other paths. And one of them is lib/templates. Since we want to customize Rails::Generators::HelperGenerator, we can do that by simp

[Rails] Added new Rails controller using “generate controller” but can't load page

2013-08-13 Thread Dan D.
I have a Rails app that has only consisted of backend code so far (a little custom workflow engine, Redis, foreman, etc). Today I tried to add the first controller to the application, but I can't get the new controller to load. I used: rails generate controller CollectedData new --no-test-fr

[Rails] Trying to get my head around engines (I think)

2013-05-07 Thread Dan Meyers
I've noticed that there is certain base functionality that I always want in my Rails apps, and I end up reinventing the wheel for every app I write. The authentication can be provided by something like Devise (though i'll need to see if I can get it set up to do AD auth) but I also have a User<->Gr

[Rails] Delete original input file after delayed_paperclip processing

2013-04-30 Thread Dan Sadaka
ocess gets handed over to delayed_paperclip, I do not know how to access the pathname of the original file once processing is complete? Is paperclip storing the pathname in a property somewhere? TIA, Dan -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subsc

[Rails] Help with Custom Preprocessor Gem

2013-01-08 Thread Dan Mehr
e published the code to: https://github.com/dmehr/hogan_mustache.git Thanks. -Dan -- Posted via http://www.ruby-forum.com/. -- 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 rubyonrails-

Re: [Rails] override initialize on ActiveRecord?

2012-12-21 Thread Dan Brooking
That's what I ended up doing. On Friday, December 21, 2012, Dheeraj Kumar wrote: > Can't you use an after_initialize callback? > > -- > Dheeraj Kumar > > On Saturday 22 December 2012 at 4:07 AM, Dan Brooking wrote: > > lol, so basically that means for me, the

Re: [Rails] Re: override initialize on ActiveRecord?

2012-12-21 Thread Dan Brooking
lol, so basically that means for me, the answer is no :) On Fri, Dec 21, 2012 at 2:05 PM, Crispin Schäffler < crispinschaeff...@gmail.com> wrote: > You are fine as long as you know what you do. > > Am Freitag, 21. Dezember 2012 17:01:51 UTC+1 schrieb Dan Brooking: > >>

Re: [Rails] why do I have to refer to my attr_accessible as self.varname?

2012-12-21 Thread Dan Brooking
fore_save would be ok I guess. Is there typically a standard way of doing things? On Fri, Dec 21, 2012 at 4:36 PM, Norbert Melzer wrote: > I would use a before_save or what it is called if I were you. > Am 21.12.2012 19:40 schrieb "Walter Lee Davis" : > > >> On D

Re: [Rails] why do I have to refer to my attr_accessible as self.varname?

2012-12-21 Thread Dan Brooking
ses the method name of title which hasn't been initailized in my assignment above? On Fri, Dec 21, 2012 at 12:43 PM, Walter Lee Davis wrote: > > On Dec 21, 2012, at 12:37 PM, Dan Brooking wrote: > > > I posted a previous message about overriding initialize... because I was > having

[Rails] why do I have to refer to my attr_accessible as self.varname?

2012-12-21 Thread Dan Brooking
I posted a previous message about overriding initialize... because I was having issues setting some of the parameters. I have a Page model that has: attr_accessible :url, :title, :doc, :domain and it's called via: Page.new(:url => 'http://www.yahoo.com') Since I'm only passing in the url to n

[Rails] override initialize on ActiveRecord?

2012-12-21 Thread Dan Brooking
Quick question... your answer will determine whether I have follow up questions or not. Is it ok to override initialize on an ActiveRecord model? I've read some thing that say it's ok, some that say it's not... just wanted to get a general consensus. Thanks Dan -- You receiv

Re: [Rails] initialization of new model objects in Rails

2012-12-19 Thread Dan Brooking
s what you have so I'll play around with it some. Thanks a bunch! On Wed, Dec 19, 2012 at 5:38 PM, Walter Lee Davis wrote: > > On Dec 19, 2012, at 4:46 PM, Dan Brooking wrote: > > > Hey guys... having an issue that hopefully someone can help with. > > > > I ha

[Rails] initialization of new model objects in Rails

2012-12-19 Thread Dan Brooking
Hey guys... having an issue that hopefully someone can help with. I have a ActiveRecord model called WebPage, it has two fields - url and title. I want the title to be determined by parsing the html (I'm using Nokogiri) - and this is where I'm having issues. My code looks something like: clas

Re: [Rails] Associations in models - am I doing it wrong?

2012-12-09 Thread Dan Brooking
ember 2012 20:25, Dan Brooking wrote: > > One of my modesl looks like this: > > > > class UnprocessedPage < ActiveRecord::Base > > has_one :user > > attr_accessible :url, :user_id > > end > > > > Do I need :user_id? Or is it implied via

[Rails] Associations in models - am I doing it wrong?

2012-12-09 Thread Dan Brooking
One of my modesl looks like this: class UnprocessedPage < ActiveRecord::Base has_one :user attr_accessible :url, :user_id end Do I need :user_id? Or is it implied via "has_one :user"? This is working as is.. but when I look for examples of other things, I never see any attributes wit

Re: [Rails] Calling multiple ERB files for different models from single ERB?

2012-12-08 Thread Dan Brooking
(and they appeared great at the time). On Sat, Dec 8, 2012 at 11:27 AM, Colin Law wrote: > On 8 December 2012 15:48, Dan Brooking wrote: > > No I haven't... I'll give that a look. I'm really diving head first into > > this reading things as I encounter issues. &

Re: [Rails] Calling multiple ERB files for different models from single ERB?

2012-12-08 Thread Dan Brooking
No I haven't... I'll give that a look. I'm really diving head first into this reading things as I encounter issues. I'll give it a read. Thanks!! On Sat, Dec 8, 2012 at 10:45 AM, Walter Lee Davis wrote: > > On Dec 8, 2012, at 10:39 AM, Dan Brooking wrote: > &

[Rails] Calling multiple ERB files for different models from single ERB?

2012-12-08 Thread Dan Brooking
I imagine this is a pretty common thing so I'm assuming there is a "rails" way to do this. I have an index page for my app and when a user logs in, I am querying various models to get lists of the objects associated with a user. I want to display this stuff on the main page of the app, kind of

[Rails] Creating associations via scaffolding?

2012-12-05 Thread Dan Brooking
l for both Artist an Song and the add in the column and index for artist_id to Song? Thanks Dan -- 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 rubyonrails-talk@googlegroups.com. To unsubs

[Rails] Creating associations via scaffolding?

2012-12-05 Thread Dan Brooking
l for both Artist an Song and the add in the column and index for artist_id to Song? Thanks Dan -- 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 rubyonrails-talk@googlegroups.com. To unsubs

Re: [Rails] Issues with rails resourceful routes

2012-11-22 Thread Dan Brooking
and that is working. On a side note - is either one considered to be a better way to do it? Or just two different ways of solving the same problem? Is there a length limit to URL params that I might run into? > On Thu, Nov 22, 2012 at 7:25 AM, Dan Brooking wrote: >> Fairly new

Re: [Rails] Issues with rails resourceful routes

2012-11-22 Thread Dan Brooking
he URL as > a query string? > > On Thu, Nov 22, 2012 at 6:58 AM, Dan Brooking wrote: >> I'm not sure where my issue is - if it's in my routes file (maybe I need to >> be more specific) or if it's the format of the URL. >> >> I am working on a screen

[Rails] Issues with rails resourceful routes

2012-11-22 Thread Dan Brooking
I'm not sure where my issue is - if it's in my routes file (maybe I need to be more specific) or if it's the format of the URL. I am working on a screen scraping project just for fun. It is designed where the URL of the page you are on is passed into the Rails app, so if you are on htt

Re: [Rails] Re: CodeSchool weekend free

2012-05-19 Thread Dan Brooking
As a subscriber to Codeschool, I can vouch for them. Well worth your support past this free weekend. I think it's like $25/month... I know some people are tight on money but even for one month, you can power through things and offer some support. On Sat, May 19, 2012 at 8:22 AM, Vibhor wrote:

Re: [Rails] Spell checker for ror

2012-05-17 Thread Dan Brooking
Are you looking for something that will check the spelling of user input? On Thu, May 17, 2012 at 6:44 AM, Swati Verma wrote: > Please tell me good spell checker in rails. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To view t

Re: [Rails] Ruby Developers Wanted

2012-04-27 Thread Dan Richert
Swing by the Hilton :-) On Apr 25, 2012 12:31 PM, "Lynn C." wrote: > Looking for Ruby on Rails Developer in Austin, TX. Great opportunity, > contact me at camp...@gmail.com or 512-450-6593. > > Thanks > Lynn > > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message becau

Re: [Rails] year too big to marshal: 1865 UTC

2012-03-22 Thread Dan Milne
On 23/03/2012, at 2:04 PM, Hassan Schroeder wrote: > On Thu, Mar 22, 2012 at 7:11 PM, dkam wrote: > >> The issue seems to be caused by the published_on column, which is a MySQL >> datetime column and supports dates between '1000-01-01 00:00:00' and >> '-12-31 23:59:59'. However Rails app

[Rails] webDav net_dav gem get problem

2012-02-16 Thread Dan Franko
I'm using the net_dav gem from https://github.com/devrandom/net_dav and I'm having a problem pulling back files. Basically, I'm able to connect and doing a dav.get("/") will return the html of the page, but if I try to get a specific file like dav.get("/share.txt") I get a 404 not found erro

[Rails] Multiple Before Filters

2012-01-19 Thread Dan King
I've added two before filters in one of my controllers like so: before_filter :filter_one before_filter :filter_two The first filter (:filter_one) always fires, but the second filter (:filter_two) never does. Anyone know how to make both filters always fire? Thanks. -Dan -- Posted via

[Rails] EJS File Load Error on Rails 3.1

2012-01-04 Thread Dan King
Hi, Does anyone know why I'm getting the following load error: no such file to load -- ejs (in /home/dan/Projects/faculty/app/assets/templates/home/index.jst.ejs) The index.jst.ejs file does exist and is located exactly where the error message states. I've appended 'app/assets/t

[Rails] Devise + RubyCAS Client

2011-12-08 Thread Dan King
Anyone know how to combine Devise with RubyCAS client to authenticate against a Jasig CAS server? Thanks. -Dan -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group,

[Rails] Re: Re: Grails to Ruby on Rails

2011-12-08 Thread Dan King
Msan Msan wrote in post #1035622: > What is the js framework you are using? Backbone.js (see http://documentcloud.github.com/backbone/) > I read something about sproutcore, do you know? I've tried sproutcore and while it's nice, I prefer Backbone and Knockout. -- Posted via http://www.ruby-for

[Rails] Re: Grails to Ruby on Rails

2011-12-07 Thread Dan King
e JS framework with Rails is easier. I can and currently am using Grails to support the JS framework, but it requires a bit more work. As the application progresses the additional work will add up and so I'm considering moving to Rails. The determining factor is how well I can get Rails to work wi

[Rails] Grails to Ruby on Rails

2011-12-05 Thread Dan King
ave access to SpringSecurityService which gives me access to user information -- i.e. id, name, etc. -- as well as CAS information. How can I achieve this in Rails? Thanks. -Dan -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Grou

[Rails] Posting photos to Twitter

2011-11-23 Thread Dan Sadaka
t has already done this. Thanks in advance, Dan -- Posted via http://www.ruby-forum.com/. -- 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 rubyonrails-talk@googlegroups.com. To unsubscribe from t

[Rails] Posting to TwitPic without ruby-twitpic gem

2011-11-22 Thread Dan Sadaka
uires Nestful and ROAuth) especially since I'm already using Omniauth, Twitter and Event Machine. Is anyone posting photos to Twitter (via TwitPic or other) the gems I'm already using? TIA, Dan -- Posted via http://www.ruby-forum.com/. -- You received this message because you are su

[Rails] Can't get form to render.

2011-11-10 Thread Dan S.
Hi All, I cant for the life of me work out why the form isn't rendering... I have attached an image of the file without the rendered form. I've attached all the code from the controller, route, and views html file thingy, and the master html file thingy as well... You can probably tell I am a com

[Rails] Re: Rails 3 routes with same name, different param name based on constraint

2011-10-06 Thread Dan Sadaka
Kleber Shimabuku wrote in post #1025300: > Hi, > > What about to create a default route and just let the manage with the > controller? > > Is it too wrong? I want the parameter name to correctly identify the source of the image so the controller knows where to get it. thx, D -- Posted via http

[Rails] Rails 3 routes with same name, different param name based on constraint

2011-10-05 Thread Dan Sadaka
oto.id}" it works. But, again, I want to be able to use photo_url(photo.id) Can I do that? TIA, Dan -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group

[Rails] Re: TCPServer in 1.9.2

2011-09-08 Thread Dan
On Sep 8, 2:48 pm, zxcv wrote: ... > > require "socket" > myserver = TCPserver.new('localhost', 0) > It's TCPServer not TCPserver - note capital "S" Dan Nachbar -- You received this message because you are subscribed to the Google Groups &quo

[Rails] Re: How to iterate an array of hashes and return the interested array

2011-09-05 Thread Dan Claudiu Pop
I already parsed the json call. The idea is that i want to access a certain hash within :item => [] or return the slug value for title => "xyz" On Sep 5, 7:39 pm, Everaldo Gomes wrote: > Take a look at this,http://developer.yahoo.com/ruby/ruby-json.html > > > > > > > > On Mon, Sep 5, 2011 at 1:35

[Rails] How to iterate an array of hashes and return the interested array

2011-09-05 Thread Dan Claudiu Pop
lue from the second hash for title key. Can you provide some guidelines ? Thank you, Dan -- 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 rubyonrails-talk@googlegroups.com. To unsubscribe from th

[Rails] goldsmiths ma/msc in creating social media: a hacktivist approach

2011-07-28 Thread dan mcquillan
media software. we see rails as one of the core technologies for this. happy to field questions directly dan -- 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 rubyonrails-talk@googlegrou

[Rails] Re: Rails 3 save parent model and association if nested attributes validation fails for uniqueness

2011-04-08 Thread Dan
Hi, I am also facing the same problem. Unfortunately googling around, I see recommendations of using the method find_or_create_by. But what if I'm using nested attributes to save? Any advise? On Feb 24, 1:56 pm, Butu wrote: > Hi, > > Song > has_and_belongs_to_many :people > accepts_nested_attrib

[Rails] error: 'Access denied for user 'root'@'localhost' '

2011-04-02 Thread Dan Vig
You left the password empty in your yml file but your local mysql you must have specified a password for root. So you need to plug that password in your password option in your yml file. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To

[Rails] Unable to Seed Data for Authlogic

2011-04-02 Thread Dan King
When I run rake db:seed in my Rails 3 application I get the following error; anyone know how to resolve it? rake aborted! undefined method 'find_or_create_by_first_name_and_last_name_and_role_and_email_and_password_and_password_confirmation' Below are my create_users.rb,user.rb, and seeds.rb file

[Rails] Handling routing errors & unknown actions in Rails 3

2011-03-29 Thread Dan King
would re-direct to the home page in case of 'unknown action' or 'routing error' issues. However, in spite of having the catch-all statement, I still get the aforementioned error pages rather than being re-directed to the home page. Anyone know why the re-direction is not occ

[Rails] Conflict between ruby & jruby bundle install

2011-03-25 Thread Dan King
ed to build gem native extension. (Gem::Installer::ExtensionBuildError) In my path variable, I have ruby before jruby, so why is jruby being run? How can I resolve this issue? Thanks. -Dan -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to th

[Rails] Client side routine for user definable color scheme

2011-03-10 Thread Dan Sadaka
of a cool (probably Javascript/jQuery based) set of scripts that will help me out in this endeavor? TIA, Dan -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send

[Rails] Re: Nested forms validation problem

2011-03-03 Thread Dan Th
OK so I have had a bit of a breakthrough - the form works great when the association is changed to has_many rather than has_one What do I need to change to get this working for a has_one association? Thanks in advance! -- Posted via http://www.ruby-forum.com/. -- You received this message be

[Rails] Nested forms validation problem

2011-03-02 Thread Dan Thompson
Hi All, I'm trying to learn Ruby on Rails and have got an issue with the validation of a nested form. I think I have got it setup correctly as it appears to be saving the data as expected, but it is not wrapping the CSS class (field_with_errors) to the fields, and if data is entered into the neste

[Rails] link_to a method that outputs to a popup

2011-02-13 Thread Dan Sadaka
> "data-popup" %> Has anyone done this? If so, I am anxiously awaiting your reply... THANK YOU IN ADVANCE, Dan -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post t

Re: [Rails] Instal MySQL gem problem

2011-01-30 Thread dan
André Freitas 2011?1?31? 2:06 Hi dear members, I'm having a problem in installing Mysql Gem on cPanel. I searched the web for a solution, but I didn't get relevant solutions to solve this issue. The problem picture is in this document http://bit.ly/dM3VM

[Rails] how to solve this problems gracefully

2011-01-28 Thread dan
hey guys,i follow the Ruby On Rails Guides,but i didn't see the query about the guide,so i have a question: name and title are attrs in posts,i need to find records by query name and title with any of them are none-empty so should i need to detect the name or title such as: if name!=nil and titl

[Rails] Re: RoR Tutorial : clear password field

2011-01-12 Thread Dan L.
e it in 'def new' because you aren't calling that method, which is also why you have to set @title = "Sign up" again. Hope that helps, Dan Luchi d...@danluchi.com -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to th

[Rails] Spree drag and drop: not recognizing JS

2010-12-23 Thread Dan Sadaka
call to / products/add_to_cart.js. So, rails is recognizing JS when done from a remote form but not by passing the .js extension. What do I need to do to get it to recognize this? Or, is there a better way? TIA, Dan -- Posted via http://www.ruby-forum.com/. -- You received this message becau

[Rails] Re: Please help with installing mysql gem to linux machine w/ xampp

2010-12-22 Thread Dan W.
Solved! via: http://www.dolicapax.org/?p=11 -- Posted via http://www.ruby-forum.com/. -- 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 rubyonrails-t...@googlegroups.com. To unsubscribe from this group

[Rails] Please help with installing mysql gem to linux machine w/ xampp

2010-12-22 Thread Dan W.
ation options: --with-opt-dir --without-opt-dir --with-opt-include etc, etc... What should I check? Thanks in advance, Dan -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To pos

[Rails] using rails_upgrade on windows

2010-10-30 Thread Dan Sadaka
e task. I also found that I should update to 2.3.5 first so I tried that. More problems. Is there a way I can manually install the rails_upgrade in the rails 3 environment (not using the script/plugin)? It says it should run in rails 3. TIA, Dan -- Posted via http://www.ruby-forum.com/

[Rails] Re: Re: Stopping Nginx

2010-07-16 Thread Dan Lenz
Dan Lenz wrote: > Hello together, > > in CentOs i have to send a "kill -9 2134". The last number is nginx's > process id. > > Maybe that helps someone. also tried in a ubuntu vm a second ago. also works this way here... so it should also work in debia

[Rails] Re: Re: Stopping Nginx

2010-07-16 Thread Dan Lenz
Hello together, in CentOs i have to send a "kill -9 2134". The last number is nginx's process id. Maybe that helps someone. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this gro

[Rails] Re: rails example projects

2010-05-21 Thread dan
rails mentors has not provided any leads to work with someone id like to reopen the question again: are there any example sites on github to study as best practices? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group,

[Rails] Re: using searchlogic to retrieve ids, then rebuild object?

2010-05-20 Thread dan
fixed changed my :grouped named_scope to distinct: named_scope :distinct, :select => "distinct locations.*" -- 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 rubyonrails-t...@googlegroups.com. To unsub

[Rails] Re: using searchlogic to retrieve ids, then rebuild object?

2010-05-20 Thread dan
#model location.rb named_scope :grouped, :select => 'locations.id', :group => 'locations.id' has_many :criterias, :through => :locations_criterias #controller locations_controller.rb # i havent even gotten to the paginate part yet @locations = Location.criterias_name_or_name_like(@query).grouped #

[Rails] using searchlogic to retrieve ids, then rebuild object?

2010-05-20 Thread dan
im giving searchlogic a try to combine named scopes easily only issue i have is it doesnt return distinct results ive worked around this with a named scope of grouped which selects only the id and groups by the id once ive got the ids, how can i quickly rebuild the object...find(:id=>[...@ids]...or

[Rails] Re: different ruby versions...different results

2010-05-12 Thread dan
so i went and followed hivelogic instructions on how to upgrade ruby: http://hivelogic.com/articles/compiling-ruby-rubygems-and-rails-on-snow-leopard and it went well...meaning which ruby returns /usr/local/bin/ruby except ruby -v still returns 1.8.7 where sudo ruby -v returns 1.9.1 thats kinda w

[Rails] different ruby versions...different results

2010-05-11 Thread dan
i just got a new mbp and started transferring some projects over. when starting to use geokit on it, geocode_ip_address worked but not on the imac. differences are imac is running ruby 1.9.1p376 and mbp is running ruby 1.8.7. is there something in that difference that would cause geocode ip address

[Rails] Re: rails example projects

2010-05-10 Thread dan
i usually learn by thrashing around trying everything under the sun until it works then try to repeat the process while whittling it down to bare essentials needless to say, its not efficient i did not know of rails mentors, so thanks for that! -- You received this message because you are subscr

[Rails] rails example projects

2010-05-10 Thread dan
a few months ago someone recommended grabbing gemcutter from github to review for best practices techniques. anyone know of some other quality sites that are on github as an example of best practices? just a noob trying to learn... -- You received this message because you are subscribed to the G

[Rails] Re: api.rubyonrails.org site is taken over by a domain squatter

2010-04-20 Thread dan
is there a direct ip for ruby rails site? -- 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 rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@

[Rails] Re: What characters need to be escaped?

2010-04-19 Thread dan
im curious about this also due to letting users enter some html data, but not harmful scripts -- 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 rubyonrails-t...@googlegroups.com. To unsubscribe from this

[Rails] creating custom form error handling

2010-04-19 Thread dan
im tracking events which have a few groups of related data, like dates, times and tickets. the issue im running into is when multiple forms make up one piece of validation: ex: if this is checked, these fields need to be present and one needs to be greater than the other... if one of these things i

[Rails] Re: display optional db data

2010-04-15 Thread dan
anyone have a good example of how best to move this logic to a helper? -- 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 rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to

[Rails] Re: display optional db data

2010-04-15 Thread dan
if thing.foo is a date, price, url or something else that requires formatting, it requires more than =thing.foo and since you cant format nil, a test needs to be performed before trying to format said data my views are getting littered with these tests and formats, sometimes there nested: is there

[Rails] Re: display optional db data

2010-04-15 Thread dan
could someone perhaps advise on how to move some of this logic from view to model? like 'get_price_info' and it returns the properly formatted string or nothing? or should these tests be performed in the view? -- You received this message because you are subscribed to the Google Groups "Ruby on

[Rails] display optional db data

2010-04-14 Thread Dan Marks
ive got a few models that may or may not have some data: urls / phone numbers / dates / times / etc whats the best way to test and format this data for displaying on a webpage? the way im thinking of doing it would be a few lines of code to: - test if not null - format properly - display in proper

[Rails] Re: accepts_nested_attributes + polymorphic association

2010-04-12 Thread Dan Marks
i was so wrapped up in the polymorphic + nested attributes, i forgot :dependent => :destroy on the model i was having issues with doh! -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post t

[Rails] accepts_nested_attributes + polymorphic association

2010-04-10 Thread Dan Marks
im having an issue where my my polymorphic associations arent being deleted when using accepts nested attributes there are other accepts_nested_attributes being used and they are deleting fine, just the polymorphic association before i go down the path of intense thrashing at this...is this a known

[Rails] super newbie here, how to post xml REST data?

2010-04-03 Thread dan
I have created the simplest rails app using the apple tutorial: http://developer.apple.com/tools/developonrailsleopard.html. Ok actually I only got halfway through because I really only wanted to try out the basic REST services. Long story short I setup a couple tables and now I'm trying to use P

[Rails] Re: mysql server has gone away?

2010-04-03 Thread Dan Michaelson
Resurrecting an old but helpful thread just to note for future Googlers that vanek's below solution works in a pinch (even if it might not be the most efficient)-- except "if e.to_s =~/away/" doesn't catch all possible exceptions that can raised by the db connection your forked process closed u

[Rails] Re: getting data from a through table

2010-03-19 Thread dan
thanks for the suggestions attributes is a self inherited table so i need to get them i order of top level and down this is part of my current solution has_many :objects_attributes do def top_level all(:joins => :attribute, :conditions => "attributes.parent_id is null") end def

[Rails] getting data from a through table

2010-03-18 Thread dan
im using has_many through and the through table has some data i want but i cant seem to access it using straight rails class AttributeObjects < ActiveRecord::Base belongs_to :attributes belongs_to :objects end class Attributes < ActiveRecord::Base has_many :attribute_objects has_many :ob

[Rails] Re: Passing a block to gsub

2010-03-17 Thread Dan Paul
Well, I finally figured it out, might as well post it just in case anyone else is trying to do the same thing. Below is the code. # converts @ signs into product links and category links def product_description(product) product.description.gsub(/@(\w+)/m) do |w| if #{$1} =~ /p(.*)/ wp

[Rails] Passing a block to gsub

2010-03-16 Thread Dan Paul
Hello, So I have a product description field and in that product description field every time I have the @ symbol followed by a product id the following method will replace the @ sign with the products permalink in a format. The code below works. def product_description(product) product.d

  1   2   3   >