Re: [Rails] Active Record has_one through

2015-10-08 Thread Colin Law
On 8 October 2015 at 01:46, Chris Berry wrote: > I have two tables in my app which I am attempting to relate through a > join table. The Artist class which uses 'has_many through', works as > expected. However, the Event class using 'has_one through', brings back > nil. >

[Rails] [JOBS] Looking for full-stack dev Partner

2015-10-08 Thread Matthew Cordasco
We are a small but dedicated startup that is creating the next generation crowdsourcing platform. We have spent the past two years building and launching our product and are now gaining paying customers at a good clip. It's time for us to expand the core development team by adding another

[Rails] Share video learn Ruby on rail

2015-10-08 Thread Hau Truong
This is playlist tutorial video learn ruby on rail basic : https://www.youtube.com/watch?v=3Igs19iyuTA=PLlrM8WMLpf4-JKNyr35vy81aHAKW-pAf5 -- 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] please advise on my helper for table cells

2015-10-08 Thread Jedrin
I have a helper like this: def table_elements(qualifier, count) if qualifier yield else return ("" * count).html_safe end end Then if I do this, what I want to happen is if resp is not null then it yields the block, otherwise it yields two empty table cells.

[Rails] Re: please advise on my helper for table cells

2015-10-08 Thread Jedrin
Maybe I could do this .. good idea .. I've been doing too much JavaScript lately class NullObject def self.method_missing(sym, *args, ) return nil end end -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe

Re: [Rails] please advise on my helper for table cells

2015-10-08 Thread Dave Aronson
On Thu, Oct 8, 2015 at 10:39 AM, Jedrin wrote: > I have a helper like this: > > def table_elements(qualifier, count) > if qualifier > yield > else > return ("" * count).html_safe > end > end Try a NullObject. That is, supposing qualifier is of

[Rails] Re: please advise on my helper for table cells

2015-10-08 Thread Jedrin
So this works perfectly but I am not sure why and I suspect I would not get any points for being elegant. If someone can comment on this or provide a better solution I would appreciate it def table_elements(qualifier, count) if qualifier yield return "" else

[Rails] Could not find gem 'tzinfo-data (>= 0) x86-mingw32'

2015-10-08 Thread arif ullah

[Rails] Re: Could not find gem 'tzinfo-data (>= 0) x86-mingw32'

2015-10-08 Thread Matt Jones
On Thursday, 8 October 2015 12:09:54 UTC-4, arif ullah wrote: > > > > > > > > >

[Rails] Listing & Editing Profile Pages -

2015-10-08 Thread Greg Bressler
I am relatively new to this and completely lost. I'm trying to make a user's profile page. If the user is an admin, they can see all the users, as well as access and edit/update each user's profile page. I finally got it to work...but when I logged in as a user I received several errors which

[Rails] Re: Active Record has_one through

2015-10-08 Thread Matt Jones
On Wednesday, 7 October 2015 20:47:54 UTC-4, Ruby-Forum.com User wrote: > > I have two tables in my app which I am attempting to relate through a > join table. The Artist class which uses 'has_many through', works as > expected. However, the Event class using 'has_one through', brings back