search for: template1

Displaying 17 results from an estimated 17 matches for "template1".

Did you mean: template
2010 Dec 22
1
'No route matches' error with select_tag
...w.html.erb - in the view, I have a form with a select tag to pick a template, that on dropdown should submit the form which rerenders the page based on the selection: <%= form_tag book_path(@book) do %> > > <%= select_tag "template[]", >> options_for_select([["Template1","template1"], ["Template2", "template2"]]), >> :value => (@template || ''template1''), :onchange => ''this.form.submit();'' %> > > <%end%> > > In my controller, I have > @template = params[:tem...
2007 Feb 06
1
Postgres, testing and maybe spurious database DROPpings?
...seem to me that "pg_dump -c" (the "clean" dump option, similar to mysqldump''s --add-drop-tables ) would suffice when you''re using SQL format schema dumps. Another problem with dropping databases is that procedural languages are lost unless they are loaded into template1. The workaround is to just install procedural languages into template1 and grant CREATEDB rights to the test user, but it would feel cleaner to leave database creation up to the postgres admin user to me. "Principle of least privilege" and all that. Thoughts? -DJCP Software Engineer En...
2010 Aug 09
4
Pie Chart in map
...So im sick of dealing with ESRI products and am looking to stream line a process i now use GIS to do using R. I have made a lot of maps using R but have not yet seen a map that puts pie charts within the map to help represent data like the attachment. http://r.789695.n4.nabble.com/file/n2318816/template1.bmp I found Tanimura et al. work "Proportional Symbol Mapping in R", but after a discussion with one of the authors i have learned that the function is out of date and would require a great deal of reworking. I also found hexbinpie on the R graphics gallery that i could incorporate....
2007 Apr 10
2
postgres 7 - CentOS 4.4
...app that uses postgres but i am more a MySQL/Oracle guy so i maybe doing something really wrong here.. I am following instructions for creating a DB user and encountering this # createuser -ADP -U postgres foo Enter password for new user: Enter it again: createuser: could not connect to database template1: FATAL: IDENT authentication failed for user "postgres" In a standard postgres install whats causing this? I presume its because the user postgres has a pwd but what is this and why am i not being prompted to enter this? Thanks and apologies as i know this is not directly a CentOS p...
2006 Feb 28
10
Salted hash login, postgresql, unit tests
Hello, I have tried to install the salted hash login generator by following the quick start guide at: http://wiki.rubyonrails.com/rails/pages/SaltedLoginGeneratorQuickstart. Everything seems to work fine until I try to run the unit tests by doing ''rake test_units'', then I get the following error message: <error-message> [brasse@keso login-test]$ rake test_units (in
2007 Oct 05
5
PostgreSQL, templates, and test databases
Hi everyone. I''m having a bit of a problem with an application I''m currently developing with Rails 1.2.3 and PostgreSQL, attempting to use test-first development. Here''s the scenario: * I have the usual three databases, with migrations. Testing has been working beautifully. * I need to store geographic data, so I add PostGIS to all three databases (along with
2006 Jan 02
3
rake test_units not loading any fixtures
Hello All, If I run my unit tests individually using Ruby, they all work correctly. However, if I try to run them using "rake test_units", I get a bunch of error messages. The error messages appear to be caused by rake not loading any of the fixtures into the test database. I am using PostgreSQL on Windows. Does anyone have any suggestions? Many thanks, Bruce. -- Posted via
2007 Dec 19
4
Questions on writing plugin for merb
Hey all, I am looking to write a plugin for merb and have a few queries about how to best go about it. I have a few questions (sorry if some are very merb newbie ones): - It seems all the plugins are gems; I can just add dependencies (my plugin will require soap4r) as per any usual gem spec? - If I want my plugin to add some new generate functionality? Is this possible? If so, are there
2013 Jan 24
3
how to combine unequal rows and columns in R
HI, I have the following list: crosspries $crosspries[[1]] Product Year_Month prod1 A 201208 1 B 201208 2 C 201208 1 $crosspries[[2]] Product Year_Month prod1 prod2 A 201209 1 1 B 201209 2
2010 May 20
10
Question about templates from variables
I''m running into an issue trying to do something like the following: class test { file {"test": content => template(''mytemplate1'',''mytemplate2''), } } class test::test2 inherits test { File["test"] { content +> template(''mytemplate3''), } } So, basically I want the inherited class to tack on another template file to the one in the parent class. The above works (tha...
2006 Dec 04
7
I need help to connect Postgres and Ruby on Rails Please.
Hello to everyone, I have a problem that is giving me a headache, and trying to do a project in Ruby on Rails and I need to connect with a Data Base that is en Postgres, the truth is that I didn’t think that it was so hard to connect a DB with postgres because I was working with Msyql and everything was easy. This are the thinks that I have install in my computer. 1. Debian GNU/Linux, kernel
2013 Aug 21
11
Confusion with puppetdb (storeconfig) and query database
Hello, I have configured puppet and puppetdb (storeconfig) with postgresql and the service run and the collecting are good for example: I can make query with the next command and responds ok . [.........................] [root@master]# curl -X GET -H ''Accept: application/json'' http://127.0.0.1:8080/v2/facts --data-urlencode ''query=["=", "name",
2005 Mar 03
11
PostgreSQL & SELinux problem
Hi. I just installed Centos 4. I''m pretty sure that I chose to have it install postgresql but when the system came up, it wasn''t there. No worries. I installed it from the net with ''yum''. Unfortunately, when I started it up and it tried to init the database, I got a bunch of SELinux errors: Mar 3 13:24:22 dirty kernel: audit(1109874262.006:0): avc:
2006 Apr 27
0
Intergration testing with ordered fixtures
...each element in the correct sequence. I need to do this because my ''has_many'' fixtures (ex. templates) need to know the right user_id to attach to. # --- [ users.yml snippet ] --- --- !omap - zack: username: zackchandler ... # --- [ templates.yml snippet ] --- --- !omap - template1: user_id: 1 name: test ... All fixtures load into the db in the correct order and everything works great except... The problem is that now I can''t reference users(:zack) which should be prepopulated by loading the fixtures in my test cases. Has anyone else run into this? A...
2013 May 14
1
PuppetDB Cannot Find Postgresql Driver
...8 | en_US.UTF-8 | en_US.UTF-8 | =Tc/puppetdb : puppetdb=C*T*c*/puppetdb template0 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =c/postgres : postgres=CTc/postgres template1 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =c/postgres : postgres=CTc/postgres (4 rows) puppetdb=> \du List of roles Role name | Attributes | Member of -----------+-------------+------------ postgres | Super...
2006 Mar 02
2
[slightly-OT] postgresql 8.1.3 on intel OS X problems
...ar/db/pgsql8/postgres8/base ... ok creating directory /opt/local/var/db/pgsql8/postgres8/base/1 ... ok creating directory /opt/local/var/db/pgsql8/postgres8/pg_tblspc ... ok selecting default max_connections ... 10 selecting default shared_buffers ... 50 creating configuration files ... ok creating template1 database in /opt/local/var/db/pgsql8/postgres8/base/1 ... FATAL: could not create shared memory segment: Cannot allocate memory DETAIL: Failed system call was shmget(key=1, size=1318912, 03600). HINT: This error usually means that PostgreSQL''s request for a shared memory segment excee...
2004 Jan 01
10
help
[This email is either empty or too large to be displayed at this time]