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.

Reply

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
Reply
Join the discussion
Create an account Log in

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

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

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