Re: [Rails] Re: Re: Join table query question

2013-08-19 Thread John Davalos
awesome! no problem. On Thu, Aug 15, 2013 at 6:29 PM, Dave Castellano wrote: > John Davalos wrote in post #1118812: > > worked? if so, you're welcome! > > Yep! Worked well, and helped me understand the concept. so thanks... > > -- > Posted via http://www.ruby-foru

Re: [Rails] Re: Join table query question

2013-08-15 Thread John Davalos
worked? if so, you're welcome! On Thu, Aug 15, 2013 at 12:42 PM, Dave Castellano wrote: > Dave Castellano wrote in post #1118800: > > Hi, > > > > I created a join table and am having trouble figuring out how to query > > it... > > > > > Thank you! > > Dave > > -- > Posted via http://www.ruby-for

Re: [Rails] Join table query question

2013-08-15 Thread John Davalos
could you do something like Minisection.find(params[:minisection_id]).questions @question_list = Minisection.find(params[:minisection_id]).questions On Thu, Aug 15, 2013 at 11:53 AM, Dave Castellano wrote: > Hi, > > I created a join table and am having trouble figuring out how to query > it...

Re: [Rails] Edit account is not working in rails4(when using devise)

2013-07-18 Thread John Davalos
it might help to know what exactly happens in rails 4. what does the logs say, is there an error. you might be trying to do mass assignment, but you need to use strong parameters instead. On Thu, Jul 18, 2013 at 5:18 AM, Colin Law wrote: > On 18 July 2013 11:22, mack gille wrote: > > I am usin

Re: [Rails] Re: Getting json data to div and partial after ajax call?

2013-06-10 Thread John Davalos
i'm not sure what you mean by styled. json usually looks like this {user:{name:'fred',age:65}}. what kind of styling did you want to apply to that? i'm guessing, but it sounds like you're looking for html elements to be returned? typically after the request happens you can just use jquery's .html

Re: [Rails] Re: What is a "low level caching" in Rails in terms of SQL Caching?

2013-06-06 Thread John Davalos
check this article out. http://robotmay.com/post/23161612605/everyone-should-be-using-low-level-caching?20dba200 i hope you find it useful On Tue, Jun 4, 2013 at 8:30 AM, mike wrote: > > > On Tuesday, June 4, 2013 10:33:49 AM UTC-4, Ruby-Forum.com User wrote: >> >> In the Rails Guides about ca

Re: [Rails] please give some tutorial about Testing in Rails with Rspec and TDD

2013-06-03 Thread John Davalos
I found this to be pretty helpful. http://everydayrails.com/2012/03/12/testing-series-intro.html On Mon, Jun 3, 2013 at 8:40 AM, Dave Aronson < googlegroups2d...@davearonson.com> wrote: > On Mon, Jun 3, 2013 at 11:32 AM, haxuan lac wrote: > > > I try to search some Link in Internet but I want

Re: [Rails] Rails 3.2 with Ruby 2.0?

2013-05-31 Thread John Davalos
I'm running 2.0 on my laptop along with rails 3.2 apps without any issues. Is there something specific you're concerned with? This should be particularly easy if you're running rvm or rbenv. you can install ruby 2.0 then when you go to install the rails gem you can just set the version of rails yo