[Rails] Re: You have a nil object when you didn't expect it!

2016-04-07 Thread Naveed Alam
Asvini Ramesh wrote in post #1182593: > On Saturday, March 26, 2016 at 3:00:46 PM UTC+5:30, Ruby-Forum.com User Well in Production mode it works fine but in Development mode it show the above error. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscri

[Rails] Re: Application with dynamically/custom fields

2016-04-07 Thread Matt Jones
On Thursday, 7 April 2016 01:06:54 UTC-4, Jonatas Baldin wrote: > > Hi, I'm having trouble to create an application with dynamic fields. Could > you guys help me out? > I'm not gonna write everything again, here's the stack overflow post and a > gist with what I got working and what's not. > >

[Rails] can i use OR and also AND in the same where clause?

2016-04-07 Thread fugee ohu
I need to select where column = (this||that) and someothercolumn=something <% @friended = current_user.profile.friendables.where("(from_id = ? OR to_id = ?) AND accepted = true)", current_user.id, current_user.id) %> -- You received this message because you are subscribed to the Google Groups