[Rails] Re: Using Polymer Web Components and Rails

2014-03-01 Thread Andrew Huth
Yeah, I've been looking at the sprockets source. I need to come up with a way of creating a new type of manifest file to load the web components. Just like we specify javascript in application.js with `//= require "whatever`, I need an application.html with `. Then sprockets needs to create an

Re: [Rails] "Media query" in a controller?

2014-03-01 Thread Hassan Schroeder
On Sat, Mar 1, 2014 at 4:58 PM, mksys wrote: > Is there a way to do what would be equivalent to a css media query in a > controller in order to decide which erb template to use when rendering a > page? No, and maybe. First, go to and see the "media featu

Re: [Rails] Radio buttons in bootstrap

2014-03-01 Thread muchira k.
Beautiful! That workedthx! On Sat, Mar 1, 2014 at 5:56 PM, Walter Lee Davis wrote: > > On Mar 1, 2014, at 9:13 AM, bertly_the_coder wrote: > > > Hi guys, > > > > I'm using Bootstrap 3 with Rails 4 and having a bit of trouble aligning > my horizontal radio-buttons. In my HAML I have this lin

[Rails] "Media query" in a controller?

2014-03-01 Thread mksys
Is there a way to do what would be equivalent to a css media query in a controller in order to decide which erb template to use when rendering a page? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and st

Re: [Rails] Naming convention

2014-03-01 Thread Phil Dobbin
On 01/03/2014 23:49, Hassan Schroeder wrote: > On Sat, Mar 1, 2014 at 2:17 PM, Phil Dobbin wrote: > >> `$ rails g scaffold Post title:string description:text` >> >> what is permissible or is there a list of words that can be used in >> place of `Post`? > > You're creating a model -- other than

Re: [Rails] Naming convention

2014-03-01 Thread Hassan Schroeder
On Sat, Mar 1, 2014 at 2:17 PM, Phil Dobbin wrote: > `$ rails g scaffold Post title:string description:text` > > what is permissible or is there a list of words that can be used in > place of `Post`? You're creating a model -- other than adhering to the Rails conventions (http://guides.rubyonra

[Rails] Naming convention

2014-03-01 Thread Phil Dobbin
Hi, all. When invoking scaffolding such as: `$ rails g scaffold Post title:string description:text` what is permissible or is there a list of words that can be used in place of `Post`? I know you can use Article, Store, etc but what other options are there? I'm looking for a static page a bit l

Re: [Rails] Rails controller problems

2014-03-01 Thread Colin Law
On 1 March 2014 19:20, Brandon wrote: > 1. Users_Controller CRUD expects param[:id] to create User instance. With > Orders_Controller, I'd like to retrieve a list of users who have ordered. I > know Orders_Controller expects param[:id] to be for creating Order instance. > So does this mean if I wa

[Rails] Re: how do you keep up to date on gems ?

2014-03-01 Thread koulikoff
bundle outdated On Sunday, March 2, 2014 12:18:39 AM UTC+4, Jedrin wrote: > > > I was asked an interview question on how I would keep an app's gems up to > date. Suppose there was a new gem because of some security issue for > instance ? > > Where I worked before, we locked the gems in the ge

[Rails] how do you keep up to date on gems ?

2014-03-01 Thread Jedrin
I was asked an interview question on how I would keep an app's gems up to date. Suppose there was a new gem because of some security issue for instance ? Where I worked before, we locked the gems in the gem file with a particular version with the notation of something like: gem 'multi_json'

[Rails] Rails AJAX slow compared to Node.js and websockets complex to implement in rails ?

2014-03-01 Thread Jedrin
I have heard alot about Node.js and watched a few tutorials and read some stuff. I get the impression that in certain situations AJAX calls with node.js is alot faster than with rails. I also have somewhat of an impression that with Rails web sockets are complicated to implement but with nod

[Rails] Rails controller problems

2014-03-01 Thread Brandon
1. Users_Controller CRUD expects param[:id] to create User instance. With Orders_Controller, I'd like to retrieve a list of users who have ordered. I know Orders_Controller expects param[:id] to be for creating Order instance. So does this mean if I want to retrieve a list of users who have ord

Re: [Rails] Error messages still don't escape angle brackets?

2014-03-01 Thread Hassan Schroeder
On Wed, Feb 26, 2014 at 10:10 PM, Kevin wrote: > But I still see frustrating stuff like this: > Showing /Users/inspire/Projects/_rails/ap.pro/app/views/layouts/default.slim > where line #1 raised:undefined method `lighten=' for # > > Any tips how to hack it to actually escape it, so I can see th

Re: [Rails] Re: Coffee Script Sucks

2014-03-01 Thread Rodrigo Mendonça
I think oposite in js true == "true" // this return true in coffee true == "true" # return false in js we need true ==*=* "true" // only this return false I think if coffee is bad, javascript is worst. 2014-03-01 14:28 GMT-03:00 deepak : > agree, no explanation needed. > > > On Saturday, Marc

Re: [Rails] Error messages still don't escape angle brackets?

2014-03-01 Thread tamouse pontiki
have you looked into the better_errors gem? On Thu, Feb 27, 2014 at 12:10 AM, Kevin wrote: > I'm finally upgrading to rails 4 with the hope that they have a better error > reporting screen. > > > But I still see frustrating stuff like this: > > > Showing /Users/inspire/Projects/_rails/ap.pro/app/

[Rails] Re: Coffee Script Sucks

2014-03-01 Thread deepak
agree, no explanation needed. On Saturday, March 1, 2014 9:35:29 PM UTC+5:30, Jerry Arns wrote: > > Yea, that's all I wanted to say. > -- 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 emai

Re: [Rails] Coffee Script Sucks

2014-03-01 Thread Rodrigo Mendonça
why? 2014-03-01 13:05 GMT-03:00 : > Yea, that's all I wanted to say. > > -- > 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.

Re: [Rails] Documentation-specific Rails app?

2014-03-01 Thread tamouse pontiki
On Sat, Mar 1, 2014 at 8:53 AM, Walter Lee Davis wrote: > I'm looking for a simple CMS that's oriented toward authoring documentation > for a SaaS or similar. I've had a search of ruby-toolbox, and the only thing > I found there was `docbox`, a Rails 2.1 app from 5 years ago! Before I break > o

[Rails] Coffee Script Sucks

2014-03-01 Thread arje0201
Yea, that's all I wanted to say. -- 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, sen

Re: [Rails] Radio buttons in bootstrap

2014-03-01 Thread Walter Lee Davis
On Mar 1, 2014, at 9:13 AM, bertly_the_coder wrote: > Hi guys, > > I'm using Bootstrap 3 with Rails 4 and having a bit of trouble aligning my > horizontal radio-buttons. In my HAML I have this line > > .row >.col-md-12 > =f.association :search_engine, as: :radio_buttons, item_wra

Re: [Rails] OT: buying a Mac computer

2014-03-01 Thread Scott Ribe
On Mar 1, 2014, at 3:36 AM, Jim wrote: > The latest OS (10.9) is free, and will run on any 64-bit machine... Minor nit: there's a handful of 64-bit machines that will run neither 10.8 nor 10.9. So just a note to be careful for anyone who might look at used Macs... -- Scott Ribe scott_r...@el

[Rails] Documentation-specific Rails app?

2014-03-01 Thread Walter Lee Davis
I'm looking for a simple CMS that's oriented toward authoring documentation for a SaaS or similar. I've had a search of ruby-toolbox, and the only thing I found there was `docbox`, a Rails 2.1 app from 5 years ago! Before I break out Refinery or another general-purpose tool, I wonder if there ar

[Rails] Radio buttons in bootstrap

2014-03-01 Thread bertly_the_coder
Hi guys, I'm using Bootstrap 3 with Rails 4 and having a bit of trouble aligning my horizontal radio-buttons. In my HAML I have this line .row .col-md-12 =f.association :search_engine, as: :radio_buttons, item_wrapper_class: 'radio-inline', label: false but when I load the page,

[Rails] Re: strange mysql/webrick issue with rails 3.2.8 and ruby 1.8.7

2014-03-01 Thread Rick
It's been a while since I last struggled with the 1.8.7 / 1.9 ruby transition with rails 3 and mysql but I'm wondering. Is it possible you have a version issue in the 'gem install...' sequence that's causing your rails app not to connect to mysql? On Wednesday, February 26, 2014 11:34:52 AM UT

[Rails] Re: OT: buying a Mac computer

2014-03-01 Thread Jim
On Tuesday, February 25, 2014 11:00:14 PM UTC+1, Jason Hsu, Rubyist wrote: > > I'm interested in purchasing a Mac to put myself on the same page as other > software developers. (I'm used to Linux distros that provide the look and > feel of Windows XP.) I will use the Mac for software development