Displaying 20 results from an estimated 60000 matches similar to: "Rest, Roles, Layouts"
2006 Jul 07
4
Controllers - model vs. use case centric
I am working on a reasonably large application (which happens to be my
first with rails).
I was hoping to get some input on organisation of controllers and
actions.
I am finding having used scaffolding more at the beginning my
controllers tend to be very model centric, in that they mostly contain
all the actions for management of that particular model, which may crash
across multiple use
2006 Jan 11
6
RJS and layouts
Hi all,
I''ve been using RJS more and more for my app and I have sorta run into a
possible issue. My app has different user roles that require different
layouts. So far, this has worked fine, but now that I''m using rjs more
and more I''m finding that the two don''t really work together since I
have to rails not to use a layout upon controller method
2013 Mar 08
0
FSMO Roles / DC Deletion Errors
Hi all-
I've been polishing my Samba4 AD set-up as we get close to deploying it the office. However, one thing that I'm having issues with is FSMO roles and DCs. The gist of the situation is that I can not demote the original DC. Both DCs are implemented with Samba4, running the same version (4.0.3) and have replication working*
Here is a summary of everything I've noticed:
?
2009 Aug 29
2
Users, Roles and Permissions
Hello,
I''m currently working on a text-based roleplay browser game, and i''m trying
to figure out what the best approach would be in order to create a system
that allows me to assign roles to a user, and permissions based upon the
role a user has.
I''ve been thinking about creating a model User, which has_many :roles, and
with the Role model which has_many :permissions.
2010 Apr 16
0
Multiple production servers with different roles?
We''ve got an app dealing with a lot of heavy disk i/o (>1GB uploads,
lots of processing, etc.). Most of the app runs great on a few
frontend servers in a xen environment but disk i/o is always a
bottleneck, so we''re offloading all the heavy stuff to a physical
asset server.
The asset server would of course serve static files (per the
environment option already in Rails), but
2012 Oct 25
3
Restricting DC Roles?
I have a small AD forest of two Windows 2008 R2 domain controllers. I would
like to add a Samba 4 DC to this forest. After running into some problems
with group policies, I realized that Samba 4 does not currently implement
file replication. I would like to have the Samba 4 domain controller
replicate user/computer schema with the Windows machines, but I would like
for DNS and group policy
2005 Dec 30
0
Newbie multiple controllers/layouts question
Hi all,
I''m playing around with Dave Thomas'' depot project, trying to add site
search, starting with code from the search_generator gem. I got basic
search working. Now I''m trying to understand how to integrate the search
result pages more fully into the overall application and I''m having
architectural "issues". search_generator creates its own
2006 Jul 21
7
Layouts
I am trying to set the layout for certain actions within a controller,
but not others, but doing
class JoinController < ApplicationController
layout ''form''
def index
end
def add
end
end
sets layouts for all actions, and doing
class JoinController < ApplicationController
def index
layout ''form''
end
def add
end
end
returns an
2006 May 15
1
1 controller, 2 layouts
I am having an issue with a controller that needs to utilize two
different layouts, depending on the action. The entire app makes use of
the application layout, so I added this to my controller to use for all
of our reports:
class ReportsController < ApplicationController
layout "reporter", :except => :index
I was hoping that the layout would only be applied to all the
2006 Oct 28
5
Seperate admin and public views using one controller REST CRUD
Hello,
I want to seperate my admin and public views but only use one
controller. How to seperate layouts ist clear but how can I tell the
controller to render the *.rhtml files in views/admin/ when logged in or
render the *.rhtml files in views/public/ (for example).
Thanks for any help!
PS: using REST and CRUD in edge rails
--~--~---------~--~----~------------~-------~--~----~
You received
2006 Jul 06
0
Layouts, Searching/Sorting
Two questions for you all...
1. I have an admin section to a site I''m building. Here''s the pertinent
bit of the layout that all controllers are using:
<div id="main-content">
<%= @content_for_layout %>
</div>
<div id="sidebar">
</div>
I''m using @content_for_layout to display various controller actions such
as new,
2006 Jul 18
4
Multiple Layouts - Single Controller
How do I do multiple layouts for a single controller:
I am aware I can do... render(:layout =>''mylayout'') for individual
actions, however this becomes a multiple render problem.
I tried this...
layout "mylayout", :except => [:myaction, :myotheraction]
layout "myotherlayout", :only => [:myaction, :myotheraction]
However that doesn''t
2006 Apr 27
7
Role Based Authorization recipe implementation?
i got the rails recipes book, i have now an auth system for users
without problems, now i want to made a role based acces for my app, im
following the "Role Based Authorization" recipe of the book but i cant
make it to work even when the tables created and correctly added data
manually definig the roles and rights. als i dont know how to define a
right for use all the actions in a
2020 Oct 16
1
Problem transfering fsmo roles.
On Fri, 16 Oct 2020, Rowland penny via samba wrote:
> On 16/10/2020 21:09, Tom Diehl via samba wrote:
>> Hi,
>>
>> I have a Samba domain which currently has 4 DC's. I am in the process of
>> trying to remove the old 4.8.12 self compiled DC's and ultimately replace
>> them with (2) 4.12.8 DC's on Buster with samba from the VanBelle repo.
>>
2015 Aug 26
0
Transfer of FSMO roles
On 25/08/15 22:44, John Gardeniers wrote:
> Hi Rowland,
>
> Yes, I did move all the roles and , yes, I did read the wiki, which is
> where I learned which commands to run. I moved the other two roles
> separately but as that has absolutely nothing to do with the questions
> I didn't see any great need to mention it.
>
> Just to clarify, the questions I am asking are:
2008 May 27
1
Camping Technique -- Multiple Layouts
Hey Campers,
Here''s a little technique you can use to support multiple layouts within a
Camping app.
def layout
@layout ||= ''default''
send("#{@layout}_layout") { yield }
end
The minimum you have to do after this is define a *default_layout*, but (as
you can hopefully see) you may define any number of arbitrary layouts to
wrap your content in.
Just set
2006 Aug 09
2
layouts, stupid problem :P
hi! how can i put different layouts for the actions in the same
controller?
i was putting the layout always at the beginning of the controller, and
i tought, if i put a layout in an action, it would be work, but nop.
i mean:
UserAdminController < ApplicationController
layout ''admin''
...
def edit
layout ''edit_2''
...
end
end
how can i resolve my
2006 Mar 24
3
Changing sidebar in layout per controller
I am currently using 2 layouts in my site. One is for the admin area. I
am trying to get content in my sidebar to change depending upon the
current controller.
Example:
Within admin I have a users controller and a articles controller. When
in the users view I want the sidebar to display options (like add user
delete user etc).
What is the best actionview way to do this. I don''t
2018 May 15
1
Transfer FSMO roles [SEC=UNOFFICIAL]
UNOFFICIAL
Hi,
I am running an old SAMBA DC (Bilbo) that I want to upgrade. I installed the latest version of SAMBA 4 on an old PC (jimbo) and joined the domain. I intend to transfer the FSMO roles, upgrade Bilbo and transfer the roles back.
I have transferred all roles except domaindns and forestdns. Jimbo says that these roles have no owner but Bilbo thinks it is the owner.
Is there some way
2017 Aug 06
0
Error while transferring fsmo-roles
Hi,
I faced the same problem, solved it by adding the line
import samba.drs_utils
to the file fsmo.py.
When building samba yourself, from withtin the base directory you can
apply this patch file to do it for you:
--- python/samba/netcmd/fsmo.py.old 2016-12-05 08:18:44.000000000 +0000
+++ python/samba/netcmd/fsmo.py 2017-03-11 10:27:31.453884091 +0000
@@ -20,6 +20,7 @@
import samba