<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Rails on Daniel Doezema's Blog</title><link>https://dan.doezema.com/tags/rails/</link><description>Recent content in Rails on Daniel Doezema's Blog</description><generator>Hugo</generator><language>en-US</language><copyright>&amp;copy; 2024 Daniel Doezema</copyright><lastBuildDate>Sat, 25 Feb 2012 00:00:00 +0000</lastBuildDate><atom:link href="https://dan.doezema.com/tags/rails/index.xml" rel="self" type="application/rss+xml"/><item><title>How to Implement a Single User Model with Rails, ActiveAdmin, and Devise</title><link>https://dan.doezema.com/2012/02/how-to-implement-a-single-user-model-with-rails-activeadmin-and-devise/</link><pubDate>Sat, 25 Feb 2012 00:00:00 +0000</pubDate><guid>https://dan.doezema.com/2012/02/how-to-implement-a-single-user-model-with-rails-activeadmin-and-devise/</guid><description>&lt;p&gt;I had just finished the standard installation of &lt;a href="http://activeadmin.info/" target="_blank" rel="noreferrer"&gt;ActiveAdmin&lt;/a&gt; when I noticed that authentication was implemented using the fantastic &lt;a href="https://github.com/plataformatec/devise" target="_blank" rel="noreferrer"&gt;Devise Gem&lt;/a&gt;. I had already been planning on using Devise for authentication within my application so I initially thought integration would be a snap. However, as development progressed it became clear that all of the pieces were not quite fitting together.&lt;/p&gt;
&lt;h2 id="realization" class="relative group"&gt;Realization &lt;span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100"&gt;&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#realization" aria-label="Anchor"&gt;#&lt;/a&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p&gt;After exploring the idea of using one login for ActiveAdmin and the application I ran into a rather large road block. By default ActiveAdmin uses an &lt;code&gt;AdminUser&lt;/code&gt; Devise model to manage user authentication. Why is that such a big problem you ask?&lt;/p&gt;</description></item></channel></rss>