[Rails] has_secure_token rails5 for logging in a user.

2017-05-01 Thread Chris Vukin
Has anyone any thoughts on logging in a user to a rails app after the user logs in via the traditional form mechanism with devise? My current thought line: override devise sessions_controller with a custom method for using user.auth_token object to validate and login the given user if the au

[Rails] form_for(@address) in form controller says undefined local variable 'address_params'

2017-04-03 Thread Chris Vukin
Being that you've got nested resources the form is looking for the @user info too, define the user in your address controller actions too and then pass it into your form like so: ([@user, @address]). That should get you on the right path. Try a Google of 'rails form_for nested resources' and see

Re: [Rails] Saving a nested object to a whole collection of objects at once.

2016-10-18 Thread Chris Vukin
t; On 18 October 2016 at 14:27, Chris Vukin > > wrote: > >> thank you for your reply Colin, here's what we're trying to do: >> >> The app has a farm model and each farm has nested plant models, nested >> under each plant is a feeding model. Say a farm h

Re: [Rails] Saving a nested object to a whole collection of objects at once.

2016-10-18 Thread Chris Vukin
sday, October 18, 2016 at 3:08:43 AM UTC-4, Colin Law wrote: > > On 18 October 2016 at 00:29, Chris Vukin > > wrote: > >> Hello, I'm wondering about how to accomplish saving the same nested form >> on an entire collection of objects that the form is nested under

[Rails] Saving a nested object to a whole collection of objects at once.

2016-10-17 Thread Chris Vukin
Hello, I'm wondering about how to accomplish saving the same nested form on an entire collection of objects that the form is nested under.. I'm not finding much when googling around, is this something that is possible with rails? Thanks for any thoughts! -- You received this message because y

[Rails] Re: Multiple file uploads?

2016-06-19 Thread Chris Vukin
Chris Oliver has a nice vid on this: https://gorails.com/episodes/file-uploads-with-refile Can you post any errors you are getting? I've also found Chris to be very responsive on his vids so you could also try posting a query to him on this vid comments section.. -- You received this message

[Rails] Re: Multiple file uploads?

2016-06-13 Thread Chris Vukin
There is also refile... https://github.com/refile/refile#multiple-file-uploads On Sunday, June 12, 2016 at 3:26:55 PM UTC-4, Ruby-Forum.com User wrote: > > Hi all, > > This is my first post, so I'll start by just saying hello, as I imagine > I will be spending a lot of time on this forum in the

[Rails] Re: Validate behaving strangely in a nested form.

2016-05-21 Thread Chris Vukin
this looks like a very interesting project, I've been having some issues with assigning associations thru a form on an related type of app, getting a form that crates an polymorphic association when a provider creates an order and such. would you be up for an email chat on the topic by chance?

[Rails] Re: a new Rails tutorial / blog

2015-11-17 Thread Chris Vukin
Nice little run thru, thanks for posting. Is this something you plan on launching to production? How will you be handling security? Will patients be able to login and view their chart? I've been working on learning rails along with android dev for some medical projects, my background is in nur