Re: [Rails] Statusify: An open-source web-application status app, written entirely in Ruby on Rails.

2015-10-08 Thread Umang Raghuvanshi
By service incidents, I mean that you can use Statusify to report downtime on your web service, inform users of scheduled maintainence and stuff. I'd like to apologize for the credentials not working, but that's fixed now. Thanks for having a look. -- You received this message because you are

[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 ca

[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 >

[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] Could not find gem 'tzinfo-data (>= 0) x86-mingw32'

2015-10-08 Thread arif ullah

[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, &block) return nil end end -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscrib

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 type Client, have a cl

[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 return

[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. <%

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. > > class Artist < Active

[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&list=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