All threads / Ruby on Rails: gem devise session logged in

Ask A Question

Notifications

You’re not receiving notifications from this thread.

Ruby on Rails: gem devise session logged in

Taynan Breno asked in Rails

I have two tables, company and employee, so I would like when I register an employee, his registration was also for the company that was already logged, that is, without having to have to choose which company of that employee. How would I do this in ruby on rails? I'm using gem devise to login.

I wish to help but I can't figure out what you want to do. Use short and simple sentences to describe:

  • Your current setup
  • Your desired user flow
  • What you're having a problem with
  • Show code if you have any
Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 33,399+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.