search for: base_path

Displaying 20 results from an estimated 20 matches for "base_path".

2006 Jul 14
7
Using ActionView free style
ActionView is a very useful class, in its own right. But, calling it by itself causes a weird crash, exiting Ruby, without even raising an exception! ruby script/runner "begin; av = ActionView::Base.new; av.render(:inline => ''Hi!''); rescue => e; puts e; end" just crashes Ruby. Same with render(:file => ''template.rhtml'') Why is this?
2010 Sep 24
0
template.base_path in rails3
Hi! With Rails 2 template.base_path and template.name were available in views. What are the Rails3 equivalents? -- M. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gma...
2007 Jun 09
4
relative path cmd line option
...X cd /tmp/qmailcluster-puppet-revisionX puppet -v -d --factpath ./common/facts/ --factpath ./facts/ main.pp I could live with each source file URL having to be absolute (source => file://), but only if I have some way of calling a facter that stores the current working directory in a variable ($base_path) that can be used to adjust file URLs. (source => file://$base_path/common/files/...) Does this make any sense at all? I think that adding a command line option that would allow relative paths to be specified for config/command line options would be easy to do. As-is I can just comment out the...
2007 Apr 05
5
Odd error handling in ActionView#compile_template causes WSOD
...ck with a missing ''end'' statement), I''m experiencing WSODs - the browser reports a lost network connection, rather than the helpful compilation error that we used to have. When the compilation fails, ActionView#compile_template raises this error : TemplateError.new(find_base_path_for(file_name || template), file_name || template, @assigns, template, e) ...which appears to have a few things wrong with it. First off, file_name is always absolute here - eg /Users/jon/ Developer/Stacker/app/views/kittens/index.rhtml. find_base_path_for is going to fail since it tries to app...
2017 Nov 23
5
libPaths displays truncated path?
...into RAM and other software is provided by an NFS server. However, in the case of R, we use the R version provided by the OS and just install additional packages on the NFS server. So that R can find these additional packages, I have the following in the site-wide Rprofile v <- R.Version() base_path = "/cm/shared/apps/R/site-library/" major_minor_version = paste(v["major"],v["minor"],sep=".") cm_shared_lib_path = paste0(base_path,major_minor_version) full_cm_shared_lib_path <- c(file.path(chartr("\\", "/", R.home()), "si...
2009 Feb 03
1
Passing args to generator
I have some default_options in generator and when I wish to change they value with --option_name I get only logical true instead of string ... default_options :option_name => "Some string" ... def add_options!(opt) opt.separator '''' opt.separator ''Options:'' opt.on("--option_name","Some Text") { |v| options[:option_name] = v
2010 Jul 08
0
Bug#588406: xen-utils-common: /etc/xen/scripts/block not driving helper scripts; XEN_SCRIPT_DIR not properly set
.../mounts | grep -v "$toskip" | cut -f 1 -d ' ') do if [ -e "$file" ] then local d=$(device_major_minor "$file") if [ "$d" = "$devmm" ] then echo 'local' return fi fi done local base_path="$XENBUS_BASE_PATH/$XENBUS_TYPE" for dom in $(xenstore-list "$base_path") do for dev in $(xenstore-list "$base_path/$dom") do d=$(xenstore_read_default "$base_path/$dom/$dev/physical-device" "") if [ "$d" = "$d...
2017 Nov 23
0
libPaths displays truncated path?
...d by an NFS server. > However, in the case of R, we use the R version provided by the OS and > just install additional packages on the NFS server. > > So that R can find these additional packages, I have the following in > the site-wide Rprofile > > v <- R.Version() > base_path = "/cm/shared/apps/R/site-library/" > major_minor_version = paste(v["major"],v["minor"],sep=".") > cm_shared_lib_path = paste0(base_path,major_minor_version) > full_cm_shared_lib_path <- c(file.path(chartr("\\", "/", R.home(...
2007 Jun 27
5
How to make attachment_fu generate RESTFUL URL
hi folks: I follow this article:http://clarkware.com/cgi/blosxom/2007/02/24 all goes well except the public_filename ,it return something like "photos/0000/0001/test.jpg" ,not the expected RESTFUL URL LIKE ''photos/1/test.jpg'',any suggestion? My Env is Rails 1.2.3 on Ruby 1.8.6 with attachment_fu from http ://svn.techno-weenie.net/projects/plugins/attachment_fu/ by now
2006 Jul 05
5
cacti on centos
...lped much either. Anybody else had same problem? Searching the list archive, I can see there are many folks outthere running Cacti on CentOS, so hopefully somebody could help me out. Some additional notes: One thing I had to do was to hardcode paths in include/config.php for $config["base_path"] and $config["library_path"]. The ereg_replace stuff was throwing "premature end of regular expression" errors. Could be related to the problem I have. I got same thing with Karan's and cacti.org SRPM files (0.8.6d and 0.8.6h, respectively). SELinux is in per...
2006 May 23
2
Capistrano won''t spawn fcgi processes
...;'Killed home_dir/var/run/app-0.pid''; fi if [ -e home_dir/var/run/app-0.pid ]; then rm -f home_dir/var/run/ app-0.pid; echo ''Force deleted home_dir/var/run/app-0.pid''; fi if [ ! -e home_dir/var/run/app-0.pid ]; then RAILS_ENV=production / usr/local/bin/spawn-fcgi -f base_path/current/public/dispatch.fcgi -s home_dir/var/run/app-0.socket -P home_dir/var/run/app-0.pid; else echo ''home_dir/var/run/app-0.pid already exists.''; fi if [ -e home_dir/var/run/app-1.pid ]; then kill -9 `cat home_dir/var/ run/app-1.pid`; echo ''Killed home_dir/var/run...
2006 Apr 27
4
how to make views changable
Hello I need to make site views changeable I found how to change layouts but it is not enough, becouse templates can use different ways to display and organize content. I found one way to do this, but i need to make subfolders in my ''view/layouts'', ''view/controller_name'' both and to create additional subfolder somewhere in ''public'' to put
2012 Jul 19
2
Problem with puppet-concat
...moves on to the smb.conf file. I''m running RHEL5.8 (unfortunately I can''t upgrade to 6 or use any other distro) and the latest version of concat from github. The code is below (I''ve removed some bits not associated with this problem to make it smaller): class nas ($base_path = "/data0") { realize ( Package["samba3x"] ) service {"smb": enable => true, ensure => true, } service{"nfs": enable => true, ensure => true, } concat{"/etc/samba/smb.conf":...
2009 Jul 27
0
private fileserver config
Running 0.25.0b2, Trying to do ssh host public/private key installation via the file type, file { "ssh_host_dsa_key.pub": path => "$base_path/ssh_host_dsa_key.pub", mode => 0644, owner => root, group => root, source => "puppet://puppet/private/ssh/ssh_host_dsa_key.pub", notify => Service["sshd"], } It compiles...
2012 Jul 17
1
FW: rsync hanging after working reliably for years on one of my shares
...de</strong>. Hint: when backing up module code, do not leave that backup in the 'modules' or 'sites/*/modules' directories as this may confuse Drupal' s auto-discovery mechanism.</li>\\n\";\n $output .= '<li>Put your site into <a href=\"'. base_path() .'?q=admin/settings/site-maintenance\">maintenance mo de</a>.</li>'.\"\\n\";\n $output .= \"<li>\370\377\377\377\367\377\377\377\366\377\377\377\365\377\377\377\364\377\377\377\363\377\377\377\0\0\0\0\273\37\ 304\335\274T\376\334\207\312!\362\t\24...
2012 Jan 10
2
Bug#655301: xcp-xapi fails to start
...4.1.2-2 ii zlib1g 1:1.2.3.4.dfsg-3 Versions of packages xcp-xapi recommends: ii smbfs 2:5.2-1 ii xcp-guest-templates 0.1-3 ii xcp-vncterm 0.1-2 xcp-xapi suggests no packages. -- Configuration Files: /etc/xapi.conf changed: base_path = /usr/lib/xen-common/xapi schema_filename = /etc/xensource/db_schema.sql license_filename = /etc/xensource/license http-host = 10.72.200.39 http-port = 80 use-ssl = true ssl-cert = /etc/ssl/certs/xensource-rio.pem ssl-port = 443 gc-debug = true -- no debconf information
2005 Oct 24
3
Custom View Location
Hi, I would like to have the ability for my application''s .rhtml files to be customized after I give my app to a client. However I don''t want them to mess with the existing templates. Basically I would like to look in a directory lets say "customize" which would be off the RAILS_ROOT directory. If a .rhtml is in the "customize" there use that one, if not
2006 Mar 14
21
Changing default date format in Rails
I''ve spent all day digging through the rails api and postgres-pr on this, I think it''s time to ask the list. Postgres stores a Date in YYYY-MM-DD format. My users want the dates in MM/DD/YYYY format. Sure, I could explicitly convert it on the app level every place where a date is displayed, but that seemed like a DRY violation. I thought I''d be clever and simply
2006 Jun 16
0
rake spec controller test output hideus.
...flash"=>{:warning=>"Signup unsuccessful"}}>, @template=#<#<Class:0x251ee78>:0x24d4f80 @headers={"Status"=>"200 OK", "cookie"=>[], "Cache-Control"=>"no-cache"}, @template_class=ActionView::Base, @cookies={}, @base_path="/Users/jgb/Development/Rails/learningruby/config/../app/views", @flash={:warning=>"Signup unsuccessful"}, @session=#<ActionController::TestSession:0x24d6a74 @attributes={"flash"=>{:warning=>"Signup unsuccessful"}}>, @template_root="/Users...
2011 Jun 09
1
NFS problem
Hi, I got the same problem as Juergen, My volume is a simple replicated volume with 2 host and GlusterFS 3.2.0 Volume Name: poolsave Type: Replicate Status: Started Number of Bricks: 2 Transport-type: tcp Bricks: Brick1: ylal2950:/soft/gluster-data Brick2: ylal2960:/soft/gluster-data Options Reconfigured: diagnostics.brick-log-level: DEBUG network.ping-timeout: 20 performance.cache-size: 512MB