Displaying 20 results from an estimated 52 matches for "user_path".
Did you mean:
user_paths
2001 Feb 20
1
_PATH_STDPATH and @bindir@
Sorry if this is stuff that's been talked about before. If it is, just
ignore me.
I'm curious to know why Portable OpenSSH doesn't include @bindir@ in
the _PATH_STDPATH. This would save most installers of portable OpenSSH
from having to --with-default-path=$PREFIX/bin in order to ensure that
scp will work properly. This would also, I imagine, save quite a lot
of hassle for
2001 Feb 12
3
add scp path to _PATH_STDPATH
what do you think about this patch to add the path to scp to
_PATH_STDPATH? is there a better or cleaner way to do this? i'm hoping
to ward off 'scp doesn't work' questions for the next release.
i did *not* add this to a --with-default-path path, because if a user
specifies that, they should control its value completely.
Index: Makefile.in
2008 Feb 29
3
How to DRY REST admin path in URLs?
Hi everyone...
For almost all of my objects I put a series of classic REST admin links
in views. For example, for a ''user'', I have
<%= link_to "Show", user_path(user) %>
<%= link_to "Edit", edit_user_path(user) %>
<%= link_to "Destroy", user_path(user), :confirm => "Are you sure",
:method => :delete %>
I am tired of writing those links down over and over and look for a way
to DRY it a little bit.
I am thi...
2012 Feb 05
4
Rspec and restful routes
Hi all,
I''m trying to test that my users show page renders. The resource has
the route /users/:id
How would I code that for an Rspec test? So far I''ve tried these four
ways:
it "should have a users show path" do
get user_path(:action => ''show'')
end
it "should have a users show path" do
get user_show_path
end
it "should have a users show path" do
get user_path(:id => ''1'')
end
it "should have a users show path" do
get ''/users/1'&...
2008 Jan 29
4
map.resources for controllers in a module
...ired up with
this code:
map.resources Admin::User, :path_prefix => "/admin"
I''m not sure if that''s the right way, but it seems to work. The problem
I''m running into is with setting up my link_tos. I tried this code:
<%= link_to ''Show'', user_path(@user) %>
Which failed with a "undefined method `user_path'' for
#<#<Class:0x47eaa14>:0x47ea9ec>". Not unexpected. However I can''t figure
out the right syntax for the path to my user admin actions. Can anyone
help?
Regards-
Eric
--
Posted via http://www....
2002 Mar 29
2
scp : Problems with pathing
...I'm sure I'll get a few "RTFM", but I hope I'll allay those feelings.
I'm getting the "scp: command not found". I've read the FAQ. I've
read bugs 42 and 82 in bugzilla. Hopefully, I didn't overlook something.
At a minimum, defines.h has :
#ifdef USER_PATH
# ifdef _PATH_STDPATH
# undef _PATH_STDPATH
# endif
# define _PATH_STDPATH USER_PATH
#endif
#ifndef _PATH_STDPATH
# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin"
#endif
So, if scp is in 1 of those 4, it should be found. Its currently
in /usr/local/bin/scp. So :
I copy it to...
2007 Aug 08
5
Can''t seem to spec a ActiveRecord::RecordInvalid exception properly...
1 def create
2 @user = User.new(params[:user])
3 @user.save!
4 self.current_user = @user
5 redirect_to user_path(@user)
6 flash[:notice] = "Thanks for signing up!"
7 rescue ActiveRecord::RecordInvalid
8 render :action => ''new''
9 end
I can''t seem to properly spec this out. I am trying numerous things, the
latest one is this, which makes sense but it stil...
2012 Aug 07
9
How do I force link_to/form helpers to use the superclass name in the path instead subclass?
...name when generating paths:
Let''s say current_user is a mod: <%= link_to current_user.name,
current_user %> will generate "/mod/:id". I want to force it to generate
"/user/:id" regardless of the subclass.
I can name the path:
<%= link_to current_user.name, user_path(current_user) %>
But I still want to use the convenience of just passing the object:
<%= link_to current_user.name, current_user %>
Is this possible?
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this gro...
2002 Jan 25
3
[Bug 82] scp: Command not found errors
http://bugzilla.mindrot.org/show_bug.cgi?id=82
djm at mindrot.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WORKSFORME
------- Additional Comments From djm at mindrot.org 2002-01-26 10:14
2002 Jul 08
1
PATH problem in Irix.
I recently compiled openssh 3.4p1 for SGI Irix, and found the same problem
I'd had with 2.5.
Viz. that Irix /usr/include/paths.h defines _PATH_USERPATH, not USER_PATH,
so that defines.h doesn't find it and we get the default, which is missing
/usr/bsd (which on Irix has things like head, more, lpr) and /usr/bin/X11.
This annoys the users, who want X11 to work.
I added a test to defines.h, as follows:
--- openssh-3.4p1/defines.h Mon Jun 24 09:26:49 200...
2001 Feb 13
1
scp not found - OpenSSH 2.3.0p1 on slack 7
hi,
let me start by saying ive tried everything i can think of with the --with-default-path configure flag.
USER_PATH in config.h is correctly getting the value of this flag.
i am installing to the default locations (user binaries to /usr/local/bin).
ssh works fine, (after i did the LIBS=-lcrypt thing) but now, no matter what i do, i get "sh: scp: command not found" whenever i try to scp. i can think...
2013 Oct 12
0
Re: [PATCH] virt-v2v: Convert RedHat.pm to Linux.pm - for SUSE support
...$success = 0;
+ last ZYPPER;
+ }
+ }
+ }
+ }
+
+ return $success;
+}
+
sub _install_config
{
my ($kernel_naevr, $install, $upgrade, $g, $root, $config) = @_;
@@ -1806,6 +2056,7 @@ sub _install_config
}
}
+
my @user_paths = _get_deppaths($g, $root, $config,
\@missing, $g->inspect_get_arch($root),
@$user);
@@ -1814,11 +2065,33 @@ sub _install_config
'files referenced in the configuration file are '.
'required, but missing: {list}...
2013 Nov 07
6
[PATCH 0/4] virt-v2v: Add support for SUSE guest conversions
The following series of patches adds support for converting SUSE guests
through virt-v2v. These changes should not impact non-SUSE guest conversions.
Mike Latimer (4):
Add perl-Bootloader support to grub packages
Add conversion support for SUSE guests
Add SUSE to capabilities db and conf
Add SUSE support documentation
lib/Sys/VirtConvert/Converter/Linux.pm | 480
2013 Oct 11
2
Re: [PATCH] virt-v2v: Convert RedHat.pm to Linux.pm - for SUSE support
...$success = 0;
+ last ZYPPER;
+ }
+ }
+ }
+ }
+
+ return $success;
+}
+
sub _install_config
{
my ($kernel_naevr, $install, $upgrade, $g, $root, $config) = @_;
@@ -1806,19 +2068,42 @@ sub _install_config
}
}
+
my @user_paths = _get_deppaths($g, $root, $config,
- \@missing, $g->inspect_get_arch($root),
@$user);
+ \@missing, $g->inspect_get_arch($root),
@$user);
# We can't proceed if there are any files missing
v2vdie __x('Instal...
2008 May 28
3
Newbie: Searcing database via user form input?
Does anyone have a tutorial on adding new parameters to the paramaters
list and then creating find conditions around them?
I''m wondering how I can get my index page to list only the items where
some of the the databases fields match user form input. index.html.erb
would be calling itself with a new parameter :searchdata
So far the index.html.erb has...
<% form_tag({ :action =>
2008 Apr 09
3
form_tag and form_for cause #protect_from_forgery errors
...w::TemplateError (No :secret given to the
#protect_from_forgery call. Set that or use a session store capable
of generating its own keys (Cookie Session Store).) on line #2 of
users/new.fbml.erb:
1: <h1>Welcome To Courses, Let''s Get Started.</h1>
2: <% form_for :user, user_path, :method => :post do |form| %>
3: <fb:editor-custom label="You are a">
4: <label><%= radio_button_tag ''user_type'', ''student'', true %>
Student</label>
5: <label><%= radio_button_tag ''user_type'...
2002 Jan 25
2
[Bug 82] New: scp: Command not found errors
http://bugzilla.mindrot.org/show_bug.cgi?id=82
Summary: scp: Command not found errors
Product: Portable OpenSSH
Version: -current
Platform: All
OS/Version: other
Status: NEW
Severity: normal
Priority: P2
Component: scp
AssignedTo: openssh-unix-dev at mindrot.org
ReportedBy: steve_dum at
2011 Jul 19
0
Ruby on Rails Tutorial Chapter 8 Signup Success
...nged by 1, but was changed by 0
# ./spec/controllers/users_controller_spec.rb:95:in `block (4
levels) in <top (required)>''
2) UsersController POST ''create'' success should redirect to the
user show page
Failure/Error: response.should
redirect_to(user_path(assigns(:user)))
ActionController::RoutingError:
No route matches
{:action=>"show", :controller=>"users", :id=>#<User id: nil, name:
"New User", email: "user-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org", created_at: nil, updated_at:...
2013 Oct 07
3
Re: [PATCH] virt-v2v: Convert RedHat.pm to Linux.pm - for SUSE support
On Friday, October 04, 2013 09:38:58 AM Matthew Booth wrote:
> It's specifically an error if we're attempting to configure virtio, and
> there's no detected virtio kernel. It shouldn't have been possible to
> get here in that state, hence it's a programmer error. The code below
> attempts to install *any* kernel in the case that we aren't configuring
>
2007 Sep 30
9
Problems with testing nested routes using mocking
Hello forum
I have there to files
#----- virtual_host_controller.rb
class VirtualHostsController < ApplicationController
before_filter :capture_domain
# GET /domain/1/virtual_hosts/1
def show
@virtual_host = @domain.virtual_hosts.find(params[:id])
respond_to do |format|
format.html # show.rhtml
end
end
private
def capture_domain
if