<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: The New Way To Scaffold in Rails 2.0</title>
	<link>http://meilij.com/blog/2008/01/23/the-new-way-to-scaffold-in-rails-20/</link>
	<description>The Blog of Ariel E. Meilij</description>
	<pubDate>Sat, 05 Jul 2008 01:39:18 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.2</generator>

	<item>
		<title>by: Administrator</title>
		<link>http://meilij.com/blog/2008/01/23/the-new-way-to-scaffold-in-rails-20/#comment-17</link>
		<pubDate>Wed, 05 Mar 2008 12:11:16 +0000</pubDate>
		<guid>http://meilij.com/blog/2008/01/23/the-new-way-to-scaffold-in-rails-20/#comment-17</guid>
					<description>Dear Rido:

It's a good question, but I don't see if it's so obvious. I would probably want a whole CRUD, but if I wanted to separate views for /users and /admin I would just define two different methods in the controller (but using the same model). 

If I understand correctly, you want the view to return a separate page for admin. The way to do it is MUCH better explained in the excellent article by Sonjaya Tandon on login with RoR in the following URL: http://sonjayatandon.com/05-2006/how-to-build-a-secured-web-application-with-ruby-on-rails/#comment-10277

Look for the end of the article where he builds special view for the admin in a list of users using the same User table and model.

Good luck!</description>
		<content:encoded><![CDATA[<p>Dear Rido:</p>
<p>It&#8217;s a good question, but I don&#8217;t see if it&#8217;s so obvious. I would probably want a whole CRUD, but if I wanted to separate views for /users and /admin I would just define two different methods in the controller (but using the same model). </p>
<p>If I understand correctly, you want the view to return a separate page for admin. The way to do it is MUCH better explained in the excellent article by Sonjaya Tandon on login with RoR in the following URL: <a href='http://sonjayatandon.com/05-2006/how-to-build-a-secured-web-application-with-ruby-on-rails/#comment-10277' rel='nofollow'>http://sonjayatandon.com/05-2006/how-to-build-a-secured-web-application-with-ruby-on-rails/#comment-10277</a></p>
<p>Look for the end of the article where he builds special view for the admin in a list of users using the same User table and model.</p>
<p>Good luck!
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Rido</title>
		<link>http://meilij.com/blog/2008/01/23/the-new-way-to-scaffold-in-rails-20/#comment-16</link>
		<pubDate>Tue, 04 Mar 2008 22:09:21 +0000</pubDate>
		<guid>http://meilij.com/blog/2008/01/23/the-new-way-to-scaffold-in-rails-20/#comment-16</guid>
					<description>so this way when browsing to http://localhost:3000/users it will have all whole CRUD, which obviously should only appear in something like this.

How can I separate the views like:

http://localhost:3000/users  &amp;#38;
http://localhost:3000/admin       ?

T.I.A.</description>
		<content:encoded><![CDATA[<p>so this way when browsing to <a href='http://localhost:3000/users' rel='nofollow'>http://localhost:3000/users</a> it will have all whole CRUD, which obviously should only appear in something like this.</p>
<p>How can I separate the views like:</p>
<p><a href='http://localhost:3000/users' rel='nofollow'>http://localhost:3000/users</a>  &amp;<br />
<a href='http://localhost:3000/admin' rel='nofollow'>http://localhost:3000/admin</a>       ?</p>
<p>T.I.A.
</p>
]]></content:encoded>
				</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.381 seconds -->
