[Rails] Re: Ruby/Rails stripping quotes...

2015-05-18 Thread jmcguckin
Thanks! That worked perfectly!! -joe On Monday, May 18, 2015 at 5:54:28 PM UTC-7, jmcguckin wrote: > > Rather than setting the tag in > every webpage of my site, I decided to be clever and set a variable in each > controller with the text and > do: > > /> > &

[Rails] Ruby/Rails stripping quotes...

2015-05-18 Thread jmcguckin
Rather than setting the tag in every webpage of my site, I decided to be clever and set a variable in each controller with the text and do: /> on the layout instead. The problem is that the generated text has a no quotes: is what I end up with. I've tried every variant of surro

[Rails] RVM question

2015-04-18 Thread jmcguckin
I have a bit of a chicken & egg problem: Assume I have a top level directory for all my Rails projects. Each project might be using a different version of Ruby and Rails. How do I run a "rails new foo" with the correct ruby version and gemset? Is there some sort of cmd line argument I can use?

[Rails] :layout => question

2013-09-11 Thread jmcguckin
I'm looking at someone else's code and I'm not sure what this does. In a controller action for 'show' is the following: render :layout => 'edit' Ok, there a layout for edit, basically it is the standard javascript includes, anti csfr stuff and 'yield'. Hmm, what's it yielding to? Which tem

[Rails] Re: Does anyone develop on Mac and deploy on *BSD?

2013-07-23 Thread jmcguckin
ts? How do I configure that? Thanks, Joe On Monday, July 22, 2013 6:35:50 PM UTC-7, jmcguckin wrote: > > I have many questions... > > Joe > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this

[Rails] Does anyone develop on Mac and deploy on *BSD?

2013-07-22 Thread jmcguckin
I have many questions... Joe -- 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 post to this group, send e

[Rails] Trying to add bootstrap to existing project, getting CSS compile error: missing file

2013-01-03 Thread jmcguckin
Trying to add bootstrap to an app being ported to Rails 3.2.3. I get the following error: Error compiling asset application.css: Sass::SyntaxError: File to import not found or unreadable: bootstrap. Here's my gem file: source 'http://rubygems.org' gem 'rails', '3.2.9' group :assets do gem

[Rails] Re: Pessimistic locking locks the entire table?

2012-11-21 Thread jmcguckin
What happens when a 2nd process tries to write to a record/table that is locked? Does it stall until the lock is released or does it throw an exception? On Friday, April 6, 2012 3:18:37 AM UTC-7, Frederick Cheung wrote: > > > > On Apr 4, 12:47 am, PierreW wrote: > > I don't know if using pessi

[Rails] Cmd line arg to specify DB for rake migrate?

2012-11-20 Thread jmcguckin
I want to say bundle exec rake db:migrate but, I don't want to use the default database. Is there a command line argument I can use? Thanks, Joe -- 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

[Rails] Re: Multiple models and views in 'transactions'

2012-11-19 Thread jmcguckin
I wonder... Is there a possibility that if your database has multiple tables that are related with foreign keys, whilst a user is filling in fields of forms, etc - is it possible for another web user to overwrite records or to create records with the same id that would later get overwritten by t

[Rails] Adding functionality to an app in modular fashion?

2012-09-02 Thread jmcguckin
Building a Rails app entails creating files in multiple locations. Config dir, App, Views, Layouts, etc. If I have an existing application app framework, is there a way to add a new feature (for example, contracts management) where the files for the new feature are bundled together and not scat

[Rails] Rails 313: .gitignore has absolute paths - correct?

2012-01-04 Thread jmcguckin
I just installed 313 and ran 'rails new test' I notice the .gitignore file has entries with '/' prepended. Is this correct?? -joe # See http://help.github.com/ignore-files/ for more about ignoring files. # # If you find yourself ignoring temporary files generated by your text editor # or opera

[Rails] Knowledgeable Devise person in SF Bay Area?

2011-03-14 Thread jmcguckin
I'd like some help - even willing to pay - making Devise work with my app. Anyone local to the Bay Area? Joe j...@via.net -- 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@googlegroup

[Rails] Re: Problem with acts_as_taggable_on

2011-01-06 Thread jmcguckin
You are correct! ruby-1.9.2-p0 > Corp.tag_counts[0].attributes => {"count"=>"19", "id"=>1, "name"=>"law"} Thanks!! Joe On Jan 6, 3:27 pm, Frederick Cheung wrote: > On Jan 6, 9:57 pm, jmcguckin wrote: > > > t

[Rails] Problem with acts_as_taggable_on

2011-01-06 Thread jmcguckin
tag_counts doesn't seem to be working correctly. Ruby 1.9.2, Rails 2.3.5 # From script/console ruby-1.9.2-p0 > Corp.tag_counts => [#, #] According to the documentation, I would expect to see a hash of tag- name vs. counts entries. Joe -- You received this message because you are subscribed