Re: [Rails] Rails conventions

2018-03-27 Thread Brian Postow
the book. On Tuesday, March 27, 2018 at 5:18:29 PM UTC-4, nanaya wrote: > > > > On Wed, Mar 28, 2018, at 04:39, Brian Postow wrote: > > The rails guides are not references. They're tutorials. > > > > An example of the thing I'm having trouble with: &g

Re: [Rails] Rails conventions

2018-03-27 Thread Brian Postow
rs to figure out how to get migrate to correctly do the things I needed, because it converted Camel to snake in ways that I didn't expect. On Tuesday, March 27, 2018 at 1:09:46 PM UTC-4, Hassan Schroeder wrote: > > On Tue, Mar 27, 2018 at 6:52 AM, Brian Postow > wrote: >

[Rails] Rails conventions

2018-03-27 Thread Brian Postow
Hello! I'm an experienced programmer, who's starting to use Ruby on Rails for the first time. I need some documentation that JUST explains how variable names are manipulated. Things I need to understand: - When Rails will automatically convert between CamelCase and snake_case (like Ho

[Rails] Caching and .includes()

2016-12-04 Thread Brian Christian
s. Again, is there a way to have the best of both worlds here? Thanks for any ideas and pointers people might have! Cheers, Brian -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop recei

[Rails] How to update Builder?

2016-06-24 Thread Brian Christian
process for making updates to Builder? Brian -- 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...@googlegroups.com. To po

Re: [Rails] Re: can rails be more friendly to windows user?

2015-05-20 Thread Brian Hogan
I teach Rails and have done so for nearly 8 years in workshops and classroom settings. The way to do this on Windows is to use RailsInstaller. http://railsinstaller.org/en It sets up everything you need, including Git and SSH keys. It supports Ruby 2.1 and Rails 4.1, but upgrading to Rails 4.2 is

[Rails] Ruby Developers needed in Kansas City for Direct Hire opportunity.

2015-05-14 Thread Brian Hunter
We are looking for developers who want the job of helping build applications using sweet thoughtful Ruby code. As a developer your job will be as a key team member on our small core team where you'll have a huge impact on all of our current and future projects. Part of your job will be invol

[Rails] JOBS in KC & Topka, KS

2015-04-24 Thread Brian Hunter
My name is Brian Hunter, a Sr. Technical Recruiter with Allied Global Services. Several of our client companies in the greater Kansas City area and in Topeka, KS are looking for some additional quality Ruby on Rails developers for some intriguing opportunities. Sorry, unable to provide

Re: [Rails] Rails CLI server bind host defaults to 127.0.0.1, is there a way to make it default to 0.0.0.0?

2015-04-15 Thread Brian Sammon
On Mon, 13 Apr 2015 12:54:42 -0700 Hassan Schroeder wrote: > On Mon, Apr 13, 2015 at 10:54 AM, Lee Olayvar wrote: > > > Generally i agree, but it's not really up for me to change. And regarding > > localhost being safe, it's actually (mostly) useless. The machines in > > question are not the lo

[Rails] configure an app to run on a different port (in development)

2015-04-08 Thread Brian Sammon
What's the common wisdom/best-practices regarding configuring an app to run on a different port while developing (say, 3001 instead of 3000)? I've been searching the web for this over the past few days, and I've found two kinds of solutions: The first (as seen a few places on StackOverflow) is so

[Rails] [Newbie] Help with Simple Association Question

2015-02-11 Thread Brian Scramlin
Greetings RoR Friends! I would SO APPRECIATE your help with a question. I have read the Rails Guides, Stack Overflow, and tutorials but still seem to fail at grasping some basic RoR Association Conventions. I will share with you the gist of the project layout and a picture of my models and asso

Re: [Rails] documentation of filter order

2015-01-29 Thread Brian Sammon
On Thu, 29 Jan 2015 15:54:54 + Colin Law wrote: > On 29 January 2015 at 15:46, Brian Sammon > wrote: > > Is there any good documentation of the controller callback order for > > rails? > > > > I'm not sure whether the before_action comes before the aroun

[Rails] documentation of filter order

2015-01-29 Thread Brian Sammon
Is there any good documentation of the controller callback order for rails? I'm not sure whether the before_action comes before the around_action, if it comes after, or maybe "it depends". The Action Controller guide doesn't really answer the question. -- You received this message because you a

[Rails] :to argument to match() -- how is it converted to class/method name

2014-10-27 Thread Brian Sammon
Is there any documentation for how the match command converts the ":to" argument to a class and method name? If I have match '', to: '#', via: :get How does it go from to , and more importantly, how do I go in the reverse direction? I can probably figure this out via trial-and-error,

[Rails] building join queries and using the association name in the where method

2014-10-21 Thread Brian Sammon
I'm just learning how to build join queries in ActiveRecord, and I've noticed the following: If I have class Person < ActiveRecord::Base has_many :meetings, class_name: 'Appointments' end I can't do Person.joins(:meetings).where({meetings: {status: 'cancelled'}}) I must do Pe

Re: [Rails] getting userID from session into newly created records

2014-10-20 Thread Brian Sammon
[I thought that I'd avoid the distraction of critiquing my app in general by only posting code relevant to my question, but whatever--there's good advice here from Jason] On Mon, 20 Oct 2014 13:58:29 -0400 Jason Fleetwood-Boldt wrote: > > I want all the tables, including the membership join tabl

[Rails] getting userID from session into newly created records

2014-10-20 Thread Brian Sammon
What's the current best practice for getting the userID from the sesson, and having it be part of every newly created/modified record? I have an app with a Club model and a People model, and a "membership" join table. class Club < ActiveRecord::Base has_many(:memberships) has_many

Re: [Rails] before_update callback is called when new record is created

2014-10-16 Thread Brian Sammon
On Thu, 16 Oct 2014 21:51:53 +0100 Colin Law wrote: > > Well, I've created an issue in the rails issue tracker. We shall see. > > Can you post a link please? https://github.com/rails/rails/issues/17289 -- You received this message because you are subscribed to the Google Groups "Ruby on Rai

Re: [Rails] before_update callback is called when new record is created

2014-10-16 Thread Brian Sammon
On Thu, 16 Oct 2014 20:56:28 +0100 Colin Law wrote: > Strictly it will be during event.save call (before the UPDATE). > Presumably it is adding the room that is triggering the problem. It > does look like a bug to me. Do you know whether it happened with > earlier versions of Rails? If not the

Re: [Rails] before_update callback is called when new record is created

2014-10-16 Thread Brian Sammon
On Thu, 16 Oct 2014 19:58:52 +0100 Colin Law wrote: > On 15 October 2014 22:01, Brian Sammon > wrote: > > All my tables/models have a "revision" field, and I have a > > before_update callback to increment the revision field. > > > > Among

Re: [Rails] before_update callback is called when new record is created

2014-10-16 Thread Brian Sammon
On Thu, 16 Oct 2014 09:58:16 -0400 Brian Sammon wrote: > > All my tables/models have a "revision" field, and I have a > > before_update callback to increment the revision field. > > > > Among my tables are: > > events > > rooms > &g

Re: [Rails] before_update callback is called when new record is created

2014-10-16 Thread Brian Sammon
Oh, yeah, and the standard details: Rails 4.1.6 MariaDB SuSE Linux On Wed, 15 Oct 2014 17:01:56 -0400 Brian Sammon wrote: > All my tables/models have a "revision" field, and I have a > before_update callback to increment the revision field. > > Among my tables are

[Rails] before_update callback is called when new record is created

2014-10-15 Thread Brian Sammon
All my tables/models have a "revision" field, and I have a before_update callback to increment the revision field. Among my tables are: events rooms events_rooms In my Event model, I have: has_many :eventRooms has_many(:rooms, :through => :eventRooms) When I create an event, assign a r

Re: [Rails] serving html pages with

2014-10-08 Thread Brian Sammon
On Wed, 8 Oct 2014 10:48:58 -0700 Hassan Schroeder wrote: > On Wed, Oct 8, 2014 at 10:03 AM, Brian Sammon > wrote: > > Im building a web app based on a web design consisting of .html > > and .js files created by our web designer. > > I would strongly recommend converti

Re: [Rails] building an app with someone else's web design

2014-10-08 Thread Brian Sammon
On Tue, 7 Oct 2014 19:46:51 -0400 Walter Lee Davis wrote: > > Does anyone have any pointers to good reading material (preferably > > online) for a situation like this? That is--building an app to serve > > website designed by someone else, where many of the files do not get > > processed by r

[Rails] serving html pages with

2014-10-08 Thread Brian Sammon
Im building a web app based on a web design consisting of .html and .js files created by our web designer. The html files that I received have

[Rails] building an app with someone else's web design

2014-10-07 Thread Brian Sammon
I'm building a backend for a web-design created by someone else (that I'm working with). I've been provided with a bunch of html files (most, but not necessarily all, to be converted to html.erb files), a bunch of .js files, a bunch of .css files and some other related files. I'm not particular

[Rails] Putting form_authenticity_token (csrf token) in a cookie instead of in meta tags?

2014-05-04 Thread Brian Morearty
son this wouldn't work? Thanks, Brian -- 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...@googlegroups.com. To

[Rails] Re: Invalid auth token on production site

2013-10-09 Thread Brian G.
Thanks for this, exactly what I did... -- 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] eclipse building project and takes for ever

2013-07-24 Thread brian sur
is there a setting I can set to stop eclipse from building all the time? A typical build for my small project takes like 4 hours. so I cant even work when it kicks off a build. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups

[Rails] Re: Re: Re: eclipse 3rdrail db migration wizard fails

2013-07-24 Thread brian sur
Colin Law wrote in post #1116409: > On 23 July 2013 20:42, brian sur wrote: >>> >>> What is autobuild? There is normally nothing to build on a Rails >>> project (at least in development mode). Just start the server and off >>> it goes. >>> >&g

[Rails] Re: Re: eclipse 3rdrail db migration wizard fails

2013-07-23 Thread brian sur
Colin Law wrote in post #1116406: > On 23 July 2013 20:32, brian sur wrote: >> >> I made some progress, I removed the 187 interpreter I then re-added it >> and my migration ran. However I had auto build checked and now its been >> building at 4% for 2 hours. I have r

[Rails] Re: eclipse 3rdrail db migration wizard fails

2013-07-23 Thread brian sur
Colin Law wrote in post #1116404: > On 23 July 2013 17:31, brian sur wrote: >> I have already specified "Generic Ruby" Located at: >> C:\Ruby200-x64\bin\ruby.exe >> >> I also tried "Generic Ruby" Located at: C:\Ruby187\bin\ruby.exe > > What do

[Rails] eclipse 3rdrail db migration wizard fails

2013-07-23 Thread brian sur
Hello, I am attempting to do a new db migration on an existing project however when I try to run the migration wizard it fails with the following error in my console window. >script/generate migration --force tests Unable to locate the Ruby interpreter. Please configure one via 'Window | Preferen

[Rails] Re: Apache shows contents of ruby script instead of actually executing it.

2012-12-22 Thread Brian A.
Ah, the loadmodule line was there but I had accidentally indented the PassengerRoot and PassengerRuby directives in httpd.conf. It's working now (well, almost, but fixing the other issues should be easy enough). -- Posted via http://www.ruby-forum.com/. -- You received this message because you

[Rails] Apache shows contents of ruby script instead of actually executing it.

2012-12-22 Thread Brian A.
I'm trying to configure Passenger to serve a RadiantCMS. I believe I've installed all the necessary gems and followed the configuration instructions from here http://library.linode.com/frameworks/ruby-on-rails-apache/debian-6-squeeze, but am still having some issues with the static page, where it d

[Rails] Rails Admin Site missing Index file - Advice Needed Please

2012-12-05 Thread Brian
usercontent.com/-QeUihVKYVso/UL9JhaRe14I/AQY/ilpA62ZQj60/s1600/Site+admin+screen.jpg> <https://lh5.googleusercontent.com/-x0AFs3ovhsE/UL9Jq02mZ8I/AQg/kRuDcsyMzBU/s1600/Error+after+searching+for+product.jpg> Thank you very much, Brian -- You received this message bec

[Rails] Re: ROR books seem to be out of date

2012-09-18 Thread brian brian
this is a common message Routing Error No route matches [GET] "/hello/world" > -- 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 this group, se

[Rails] Re: ROR books seem to be out of date

2012-09-18 Thread brian brian
routing errors all the time ,cant get past the welcome sign running on rails . in win7 and ubuntu systems latest gems and ruby of course . tried everything i can think of using all the books and online material. nothing past localhost:3000 seems to work ,i just get the routing error despite chec

[Rails] Re: ROR books seem to be out of date

2012-09-18 Thread brian brian
On Saturday, September 15, 2012 4:26:36 PM UTC+1, brian brian wrote: > > i am trying to get started on ROR but the texts all seem to be out of date > as regards samples that wont run on later IDEs such as aptana studio > ,rubymine and so on.github examples are also out of date

[Rails] Re: Creating a link_to from a collection_select

2012-09-17 Thread Brian Ekmark
Shameless bump ... can anyone help on this? On Thursday, September 13, 2012 9:32:34 AM UTC-5, Brian Ekmark wrote: > I want to be able to change one attribute of a link_to to be what is the > current selection of the collection_select. And needless to say I can't > quite

[Rails] ROR books seem to be out of date

2012-09-15 Thread brian brian
i am trying to get started on ROR but the texts all seem to be out of date as regards samples that wont run on later IDEs such as aptana studio ,rubymine and so on.github examples are also out of date and wont run. beginning Rails3 samples appear to also not able to run ,even using github exampl

[Rails] Creating a link_to from a collection_select

2012-09-13 Thread Brian Ekmark
gt; @task.id, :user_id => ## Current Selection of the collection_select ##, :action => 'assign_to_other' %> This action brings it across to another controller/model where I write the results to the task_queues database. Any insight or assistance in this would be greatly a

[Rails] Re: New to RoR: Need some assistance displaying data from multiple tables.

2012-09-07 Thread Brian Ekmark
sks = TaskOwner.where( :user_id => session[:user_id] ) end end On Thursday, September 6, 2012 12:52:11 AM UTC-5, uma mahesh varma Seeram wrote: > Hi, > > What will be the query that runs for above association ? > > Thank You, > Uma Mahesh. > > > On Wednesday, September 5, 2012

[Rails] Re: New to RoR: Need some assistance displaying data from multiple tables.

2012-09-05 Thread Brian Ekmark
Nevermind ... I figured it out. I was stopping too short into the methods. Instead of mytasks.title I should have been using mytasks.task.title This dug down in the the linked/joined table just fine. -Brian On Monday, August 27, 2012 1:39:04 PM UTC-5, Brian Ekmark wrote: > Greeti

[Rails] Re: New to RoR: Need some assistance displaying data from multiple tables.

2012-09-05 Thread Brian Ekmark
t if I change it to something like mytasks.title I get the following error: undefined method `title' for # So I guess I don't understand how display the contents still. Thanks, Brian On Tuesday, August 28, 2012 3:48:13 PM UTC-5, Thomas Chen wrote: > It looks like you

[Rails] code review for a new gem?

2012-08-28 Thread Brian Rue
ion handler - report exceptions, along with some information about the related request, to ratchet.io Thanks a bunch, Brian Rue -- 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@go

[Rails] New to RoR: Need some assistance displaying data from multiple tables.

2012-08-28 Thread Brian Ekmark
reference table, but I don't know how to extract the contents of the record: class HomeController < ApplicationController def index @mytasks = TaskOwner.where( :user_id => session[:user_id] ) end end Thank you in advance, Brian -- You received this message because

[Rails] Re: oauth for facebook and twitter

2012-05-28 Thread Brian
Hi Jose, I didn't trust myself to implement OAuth security, nor could I think of a good reason to re-invent the wheel, so I went with OmniAuth. Should handle facebook and twitter and I found it very easy to use. On Monday, May 28, 2012 11:18:53 AM UTC-4, Ruby-Forum.com

[Rails] Re: oauth for facebook and twitter

2012-05-28 Thread Brian
Hi Jose. I didn't trust myself to implement OAuth securely, nor could I think of a good reason to reinvent the wheel, so I went with OmniAuth. Should handle both twitter and facebook. On Monday, May 28, 2012 11:18:53 AM UTC-4, Ruby-Forum.com User wrote: > Hi, > > i

[Rails] Re: Errors and flash[:error]

2012-05-24 Thread Brian
On May 24, 10:18 am, "Miguel A." wrote: > > I provide a form, of sorts, for creating HABTM relationships between > > two other models. > > Not sure if I understand your issue, but I believe you are looking at > nested resources and nested forms. > Thanks Miguel, I realize my question wasn't clea

[Rails] Errors and flash[:error]

2012-05-24 Thread Brian
What is the relationship, if any, between the errors array for one of my models and flash[:error]? Are validation errors automatically added to the flash? Is there a helper I can use in my view to merge the results? Situation: I provide a form, of sorts, for creating HABTM relationships between t

[Rails] How to boot multiple Rails apps on Apache2 with a shared Passenger gem?

2012-05-07 Thread brian piercy
http://stackoverflow.com/q/10422047/280069?sem=2 -- 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 this group, send email to rubyonrails-talk+unsub

[Rails] Re: syntax error, unexpected tDOT3, expecting $end

2012-04-23 Thread Brian mr
ow hoe to access it? >> > Looks like Aardvark got devoured by Sitefinity - here's the archived > version: > > http://web.archive.org/web/20100811225616/http://aardvark-cms.googlecode.com/svn/trunk/build/rakefile.rb > > --Matt Jones Many Thanks Brian! -- Posted via http:/

[Rails] attr_accessible question

2012-04-21 Thread Brian H.
d(color_id: color.id, shape_id: shape.id) } If I leave these attributes accessible, am I leaving a security hole (where a user can alter a color_id or shape_id of an existing record without authorization)? Or is it sufficient that I've scoped the creation of a widget through a current_user?

[Rails] Re: syntax error, unexpected tDOT3, expecting $end

2012-04-16 Thread Brian mr
Hi Matt, I can't access the full rakefile at http://aardvark-cms.googlecode.com/svn/trunk/build/rakefile.rb do you know hoe to access it? Brent -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group

[Rails] Re: syntax error, unexpected tDOT3, expecting $end

2012-04-16 Thread Brian mr
Matt Jones wrote in post #1056520: > On Friday, 13 April 2012 16:09:44 UTC-4, Ruby-Forum.com User wrote: >> === >> require "rexml/document" >> ... >> > > This is not valid Ruby syntax - the author of the post you've sourced it

[Rails] syntax error, unexpected tDOT3, expecting $end

2012-04-13 Thread Brian mr
Hi, when I run the following code _ get this error C:\RakeTest>rake rake aborted! C:/RakeTest/rakefile.rb:2: syntax error, unexpected tDOT3, expecting $end any help would be greatly appreciated. Thanks,\Brian === requ

[Rails] Re: rails 3.1.0 server bombs - no javascript runtime. Ideas?

2011-09-06 Thread brian piercy
Dave, gem 'therubyracer' did the trick. Many thanks to you and everybody else on the thread. /Brian On Sep 6, 1:27 am, Dave Geller wrote: > gem 'therubyracer' -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" g

[Rails] rails 3.1.0 server bombs - no javascript runtime. Ideas?

2011-09-05 Thread brian piercy
Downloaded & installed RoR 3.1.0. On Windows, no problems. On Ubuntu, "rails server" bombs out with a missing Javascript runtime. I installed the execjs gem to remedy the problem - no luck. Ideas? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Ta

[Rails] Rails 3.0 Fleximage Error Errno::EACCES

2011-08-25 Thread Brian Rosedale
Hi, I'm using Fleximage on my website so users can upload avatars. I recently upgraded to Rails 3.0 and switched host to slicehost.com. I successfully installed imagemagick and the gems rmagick and fleximage. Everything seems to be working fine except when I try to edit my account and upload an av

[Rails] [JOB] Rails and Oracle Engineer w/Clearance in D.C. area

2011-08-17 Thread Brian Penrose
Please contact me if you hold an active clearance, have strong Oracle skills, familiar with RoR, and are interested in working in the DC area. -- 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

[Rails] Gem problems

2011-07-27 Thread Brian Jakovich
Trying to use cabybara and aws's ruby gem and I'm getting this error: *Bundler could not find compatible versions for gem "nokogiri": > In Gemfile: > aws-sdk depends on > nokogiri (~> 1.4.4) > > capybara depends on > nokogiri (1.5.0)* > Is there any way around this? Has anyo

[Rails] Re: upgrading to rails 3.

2011-07-27 Thread brian ..
Ruby Man wrote in post #989320: > Msan Msan wrote in post #937930: >> I've installed rails_upgrade plugin with ruby script/plugin install >> http://github.com/rails/rails_upgrade.git. >> Then if I run rake rails:upgrade:check it says >> rake aborted! >> no such file to load -- initializer >> >> Wha

Re: [Rails] Ruby on Rails using Cucumber

2011-07-26 Thread Brian Jakovich
base_title} | #{@title}" > end > end > end which gets the @title from the pages controller def contact > @title = "Contact" > end > On Tue, Jul 26, 2011 at 6:18 AM, Leonardo Mateo wrote: > On Mon, Jul 25, 2011 at 9:49 PM, Brian Jakovich >

[Rails] Ruby on Rails using Cucumber

2011-07-26 Thread Brian Jakovich
Hi Everyone, I've been working with cucumber trying to tests links using the scenario outline feature of cucumber. What I want to do is have it visit the starting_page and then click on the specified link. It should then check to make sure the title is correct on that page to ensure it's on the ex

[Rails] Urgent need for Ruby developers in DC

2011-07-21 Thread Brian Weiss
Bloomberg Government in Washington, DC is aggressively hiring Ruby developers. We offer a competitive salary, amazing benefits, and a really awesome project with long-term sustainability. Please contact me at bwrepo...@gmail.com with a resume if you're interested as soon as possible. -- You rec

[Rails] REMOVE ME

2011-06-02 Thread Brian
REMOVE ME -- 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 this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more optio

[Rails] Re: Newbie Method Error Question

2011-03-04 Thread Brian Ledsworth
ists def nav_show_lists @nav_lists = List.all end Brian -- 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. T

[Rails] Re: How to clear password field on ruby on rails

2011-03-04 Thread Brian Ledsworth
rmation = "" render "new" Brian -- 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 unsubscrib

[Rails] Re: group() and PostgreSQL strange behavior

2011-03-02 Thread Brian Ledsworth
Actually, as I think about it, you shouldn't have a Select * in a Group By? You should select the column(s) you want to aggregate. Check this out: http://stackoverflow.com/questions/1769361/postgresql-group-by-different-from-mysql -- Posted via http://www.ruby-forum.com/. -- You received thi

[Rails] Re: group() and PostgreSQL strange behavior

2011-03-02 Thread Brian Ledsworth
I checked my install and received the same results. Looks like a PostgreSQL syntax thing. I'm new to PostgreSQL and have not looked at group by SQL syntax. Off the top of my head, as a (non recommended) work around, you could insert a .select() with a column list, and it should work. That,

[Rails] Re: Main menu generated from database

2011-03-01 Thread Brian Ledsworth
I'd also recommend you cache the results so every page is not making a DB call every time. Brian -- 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] Real-time web traffic alert notifications (email or SMS) on the cheap?

2011-02-11 Thread Brian Morearty
more of a "you've been slashdotted" kind of thing where you can know in a few minutes. Thanks! And if no one knows about one maybe I'll write one myself. Brian -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Gro

[Rails] Best Practice

2011-01-05 Thread Brian Ablaza
I have an app that manages tapes. Each tape has a number (separate from the record ID in MySQL). When a tape is added, the number field can be filled in. But when the record is subsequently edited, the number should not be editable. Both the "new" and "edit" views include (render) the same form p

[Rails] Re: Overriding or aliasing name of column in legacy database using Rails/ActiveRecord

2010-12-28 Thread Brian
a, but had to ask) > > Any suggestions are greatly appreciated. If you are using ActiveRecord 3, try using safe_attributes gem I released recently. It will probably resolve your issue. If not, let me know. https://rubygems.org/gems/safe_attributes Brian -- You received this message b

[Rails] Re: Dreamhost Rails upgrade troubles

2010-12-22 Thread Brian Wolk
Thanks for the replies, everyone. I tried what Water suggested: $ rake rails:freeze:edge RELEASE=2.3.5 ..and I get this: (in /home//website) cd vendor Downloading Rails from http://dev.rubyonrails.org/archives/rails_2.3.5.zip rake aborted! Connection reset by peer If I manually navigate to t

[Rails] Re: Dreamhost Rails upgrade troubles

2010-12-22 Thread Brian Wolk
I guess what I'm asking is how do I freeze the Rails version to 2.3.3 (actually make that 2.3.5)? I've already followed the steps here: http://wiki.rubyonrails.org/getting-started/upgrading ..and gem installed 2.3.5, and then modified environment.rb, setting RAILS_GEM_VERSION = '2.3.5'. Then I

[Rails] Dreamhost Rails upgrade troubles

2010-12-22 Thread Brian Wolk
I am running a Ruby on Rails site in a shared hosting environment on Dreamhost (using Passenger), and recently they upgraded from Rails 2.3.x to Rails 3. It looks like this broke the site. Here is the URL: http://www.mycondonetwork.com You can see the Passenger error I'm getting. My ideal situat

[Rails] Store Locator

2010-12-20 Thread Brian Scott
Hello, Does anyone know a good article on building a store locator in Rails? -- 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.c

[Rails] mongrel_rails crashing on new RoR 3.0.3 app - Huh?

2010-12-19 Thread Brian P.
Just upgraded my laptop to RoR 3.0.3. (Ruby 1.9.2, Gems 1.3.7, Windows box.) It took a couple of attempts, but I got past the missing sqlite.dll error (which shouldn't be an issue IMO for new installs, but that's another post.) >>rails server fires up w/o problem. but >>mongrel_rails start comple

[Rails] Re: Multiple record update and validation

2010-12-16 Thread Brian Penrose
Colin Law wrote in post #968879: > On 16 December 2010 15:53, Brian Penrose wrote: >> end >> validates_presence_of :location >> >> Like I mentioned...the updates work fine, however when I try to edit >> records and leave location empty, it still attempts to save

[Rails] Multiple record update and validation

2010-12-16 Thread Brian Penrose
I have a form which is used to update multiple records (of the same model) at one time, which it successfully does, but when I try to add vaildation to the form, it seems to be ignored. Code from the update method of my controller: def update SurvCamera.transaction do SurvCamera.update(para

[Rails] validate_on_update not highlighting fields

2010-12-09 Thread Brian Penrose
I am using the following is a sample validate_on_update action in my model: validate_on_update if internet_access == "Y" if internet_use.blank? errors.add_to_base("Please describe your internet use.") end end end This successfully throws the validation error if internet access i

Re: [Rails] Cucumber+Capybara rails 3 issue (Don't know where exactly)

2010-11-30 Thread Brian Troutwine
On Tue, Nov 30, 2010 at 3:45 PM, yurokle wrote: > When I'm executing cucumber tests, I noticed that sometimes rails app > (in test env.) getting several the same requests (GET or POST) usually > around 3, and it doesn't render anything with empty HTTP status code. > Have anyone met something simil

Re: [Rails] routes & friendly URL's

2010-11-30 Thread Brian Troutwine
On Tue, Nov 30, 2010 at 11:26 AM, andyl wrote: > I have a Rails3 app with three resources: > - League (has_many :teams) > - Team (belongs_to :league, has_many :players) > - Player (belongs_to :team) > > With standard nested routes, I get URLs like: > > /leagues          (lists all leagues) > /leag

Re: [Rails] Re: Email marketing services

2010-11-29 Thread Brian Troutwine
On Mon, Nov 29, 2010 at 10:18 AM, Greg Ma wrote: > Peter De Berdt wrote in post #964704: >> Campaign Monitor is very popular (and rightfully so imo): >> http://www.campaignmonitor.com/ > > This is for newsletter. I am not sending newsletter. MailChimp? > -- > Posted via http://www.ruby-forum.com

Re: [Rails] Re: rails server command

2010-11-27 Thread Brian Troutwine
On Sat, Nov 27, 2010 at 6:57 PM, Paul Roche wrote: > Hi, I'd like to bump this thread if this is ok? My main objective is for > people to take a look at this error message I get when running 'rails > server' Have you googled your error message? I found more than a few references that professed to

Re: [Rails] I have a NoMethodError, please help!

2010-11-27 Thread Brian Troutwine
On Sat, Nov 27, 2010 at 3:43 PM, Zack Nathan wrote: > Hey everyone, > > I get this error for some reason when trying to access my new action. > Here's the error: > undefined method `repositories_path' for # > > Heres my view code: > > <% form_for(@repository) do |f| %> It is expected by your view

Re: [Rails] Re: rails server command

2010-11-27 Thread Brian Troutwine
On Sat, Nov 27, 2010 at 12:28 PM, Paul Roche wrote: > Ah, I created a new app, specific to the new ruby version. When I try > and run the server I get an error mesasge. Please find attached > > Attachments: > http://www.ruby-forum.com/attachment/5468/error.JPG Ah, I'm afraid that's a Windows spec

Re: [Rails] Re: rails server command

2010-11-27 Thread Brian Troutwine
On Sat, Nov 27, 2010 at 12:17 PM, Paul Roche wrote: > I think so. I run it from rails_app/project_name Do be sure that rails_app/project_name is a rails3 app. > I am using instant rails. I was running ruby v 186, then I downloaded > 192 and literally copy and pasted the 192 files into the ruby f

Re: [Rails] rails server command

2010-11-27 Thread Brian Troutwine
Are you running rails server in the root of your project? On Sat, Nov 27, 2010 at 12:10 PM, Paul Roche wrote: > Hi. When I try and start my server using 'rails server' I get the > following. > > Usage: >  rails new APP_PATH [options] > > Options: >  -r, [--ruby=PATH]           # Path to the R

Re: [Rails] hosting on heroku

2010-11-26 Thread Brian Troutwine
http://docs.heroku.com/quickstart On Sat, Nov 27, 2010 at 12:43 AM, pardu wrote: > i developed a sample application on my windows 7 using ror.the > appliction is in "c:\rails-projects\heroku"  (like c:\rails-projects > \hrk\insert-static) so now how can i host this on heroku? pls help > > -- > Yo

Re: [Rails] Re: Adding content to static files.

2010-11-26 Thread Brian Troutwine
Though I would assert that Colin's suggestion is the better, you might also consider using a static site generator for your static content: something like nanoc or jekyll. On Fri, Nov 26, 2010 at 1:48 PM, MDM wrote: > Thanks for that which gives me an idea to create one controller and > import ea

Re: [Rails] cucumber

2010-11-26 Thread Brian Troutwine
Why do you need to test it? On Fri, Nov 26, 2010 at 4:21 AM, Abhishek shukla wrote: > Hello How do i test the tiny_mce using cucumber + capybara. > > Thanks for any help. > > abhis > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. >

Re: [Rails] help: using cucumber ruby

2010-11-25 Thread Brian Troutwine
> is there anybody knows about cucumber and some good resources about learning > cucumber to use it ruby? The RSpec Book by David Chelimsky is an excellent introduction. The cucumber wiki is, itself, a good source of information, though you'll rather spend a lot of time piecing together a coherent

Re: [Rails] How to create a mail service like gmail using ror

2010-11-25 Thread Brian Troutwine
how can i proceed? Hopefully you can start to see why this is atrocious. I won't belabor the point, much: * You should start by giving some background into your prior research. Display some knowledge of the problem domain. * How you proceed is entirely dependent on your end goal, which we can

Re: [Rails] Who wants to make a difference for America? :)

2010-11-22 Thread Brian Troutwine
On Mon, Nov 22, 2010 at 1:30 PM, Khalid Shaikh wrote: > Check it out, join the group. > > http://groups.google.com/group/cfa-labs > > git project > https://github.com/cfalabs/Open311Dashboard What is this you're promoting? I can find the answer, but not from the linked GitHub project nor from the

[Rails] Re: Multiple URLs - same server

2010-11-22 Thread Brian Penrose
u have a wildcard certificate and you're talking > about subdomains, but your examples were top-level domains). > > -Rob > > On Nov 22, 2010, at 2:07 PM, Brian Penrose wrote: > >> SS/; >> redirect to example2.com/earnie. Right now it just continues to bring >> Se

[Rails] Multiple URLs - same server

2010-11-22 Thread Brian Penrose
] #Rewrite rule to redirect requests to earnie RewriteRule^https://www.example2.com$ https://www.example2.com/earnie [L,R] Thanks, Brian -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"

  1   2   3   4   >