similar to: calling RoR from command line

Displaying 20 results from an estimated 6000 matches similar to: "calling RoR from command line"

2006 Apr 04
1
using form_remote_tag and radio_button
I want the user to select a date using radio buttons. The following code shows the last 7 days. <%= form_remote_tag(:update => ''register_order'', :url => { :action => :register_orders } ) %> <% 1.upto(7) do |i| %> <%= radio_button "date", "register_date", i.days.ago.strftime("%Y-%m-%d") %>
2006 Mar 17
4
using ajax and layouts
Hi. I copied the layout-example from agile web dev. in rails. When I want to use ajax to create a search field including <head><%= javascript_include_tag "prototype" %></head> does''nt work when I include the line in my app/views/layout/demo.rhtml. Name of controller is demo_controller.rb. The search-field is in app/views/demo/observer.rthml and I have to
2007 Oct 16
8
nfs-ownership
Hi. I have created some zfs-partitions. First I create the home/user-partitions. Beneath that I create additional partitions. Then I have do a chown -R for that user. These partitions are shared using the sharenfs=on. The owner- and group-id is 1009. These partitions are visible as the user assigned above. But when I mount the home/user partition from a FreeBSD-client, only the top-partiton has
2006 Mar 23
4
Postgresql connection problems
Forgive me for asking a trivial question on this list, but being new to Ruby/Ruby on Rails, I''m not sure where to start.... I''m trying to connect to a postgresql server: My database.yml contains: test_test: adapter: postgresql database: test_test username: testuser password: resutest host: testpgserver port: 5432 encoding: UTF8 min_messages: warning The
2008 Apr 17
3
php5 and postgresql 8.2/8.3
Hi. I have installed php5 with support for postgresql (php5-pgsql). If I install postgresql-client ver. 8.2.7 or 8.3.x apache (httpd) core-dumps. If I install postgresql-client 8.1.11 or 8.2.6 apache does not core-dump. This is the output (backtrace) from gdb: (gdb) bt #0 0x000000080651c340 in ?? () #1 0x000000080094ebd5 in puts () from /lib/libc.so.7 #2 0x000000080094f1ee in gethostbyname
2007 Apr 28
3
tape-backup software (was: Very Large Filesystems)
Speaking of backup-software. I heard that legato supports zfs but is anyone using zfs and legato or some other backup-software that can handle multi-TB-file systems (in production)? -- regards Claus
2006 May 19
1
validates_presence_of and ajax-forms
Hi. I have "validates_presence_of :login, :password, :firstname, :lastname" in my user-model. I enter the information in new_user.rhtml: <%= error_messages_for(:user) %> <%= form_remote_tag :url => { :action => :register }, :html => { :id => ''new_user'' } %> I have a register.rjs with :fade. Omitting firstname or any other required field
2008 Mar 26
1
freebsd 7 and areca controller
Hi. I'm looking at deploying a freebsd 7-release server with some storage attached to an areca ARC-1680 controller. But this card is not mentioned in 'man 4 arcmsr' (http://www.freebsd.org/cgi/man.cgi?query=arcmsr&sektion=4&manpath=FreeBSD+7.0-RELEASE). Areaca's website does mention freebsd as a supported OS (http://www.areca.com.tw/products/pcietosas1680series.htm). Has
2006 Mar 24
19
Storing images in Ruby
Hi, I''d like to allow users to upload images and store those images in a Postgres database. I''ve looked through the example in "aguile development with rails" which suggests using the MySQL blob field. When I wrote a similar app in Java, we Base64 encoded the file and then stored it as a text field. Is this easy to do in RoR too? Any advice you can give me would
2007 Apr 26
7
device name changing
Hi. If I create a zpool with the following command: zpool create tank raidz2 da0 da1 da2 da3 da4 da5 da6 da7 and after a reboot the device names for some reason are changed so da2 and da5 are swapped, either by altering the LUN setting on the storage or by switching cables/swapping disks etc.? How will zfs handle that? Will it simply acknowledge that all devices are present and the pool is
2006 Mar 15
7
rails on OS X 10.3.9 not working
Hello, I''ve installed Ruby 1.8.4 via Darwinports, installed gem 0.8.11 too and then installed Rails via gem. I''m using OS X 10.3.9. When I now type rails in the terminal, the following lines appear: # rails /opt/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/ active_support/values/time_zone.rb:12: undefined method `attr_reamer'' for TimeZone:Class
2006 Jun 07
2
display two columns using fixed width divs
Hi. I want to display some related information in two columns. Originally I wanted to use frames and googling led me to http://lists.rubyonrails.org/pipermail/rails/2006-May/037972.html which suggest divs instead. I modified my code to this: <body> <div style=''width: 300px; overflow: scroll''> <%= render :partial => "col1" %> </div>
2008 Oct 15
1
error during installworld on 7.1 beta (was: error during buildworld on 7.1 beta)
During installworld I get: cat /usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/man/ncurses.3x > ncurses.3 sh /usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/man/MKterminfo.sh /usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/man/terminfo.head /usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/include/Caps
2007 Dec 07
6
4.x Collecting pv entries Suggest increasing PMAP_SHPGPERPROC,
Hello List, I know FreeBSD 4.x is old..., but we are using on a production system with postgres and apache. The above message is appearing periodically. I googled for the message but found no recommendation for adjusting it. Any suggestions. Thanks, Steve -- "They that give up essential liberty to obtain temporary safety, deserve neither liberty nor safety." (Ben Franklin)
2007 Sep 17
3
change uid/god below 100
Hi. Only indirectly related to zfs. I need to test diskusage/performance on zfs shared via nfs. I have installed nevada b64a. Historically uid/gid for user www has been 16/16 but when I try to add uid/gid www via smc with the value 16 I''m not allowed to do so. I''m coming from a FreeBSD backgroup. Here I alter uid using vipw and edit /etc/group afterwards. -- regards Claus
2008 Nov 13
1
qlogic qle2462 hba and freebsd stable on a dl360 g5
Hi. I'm looking at a qlogic qle2462 hba for my dl360 g5. The thread http://www.mail-archive.com/freebsd-stable@freebsd.org/msg99497.html mentions a deadlock when system is loaded. Has this issue been resolved? Are there other PCI Express hba's which are known to work with freebsd stable and dl360 g5? -- regards Claus When lenity and cruelty play for a kingdom, the gentler gamester is
2006 Mar 16
8
Question on gems on Mac OSX
Hi all, lately I''ve been working with ROR on a MAC OSX tiger at work, however I have one huge problem with seems to be the root of all my problems whenever I use terminal or iTerm to start workign with ROR. Every single time I open a new terminal window or close one and open a new one, I have to reapply my path from .bash_login for Ruby and MySql, and than I have to install the
2007 Oct 10
6
server-reboot
Hi. Just migrated to zfs on opensolaris. I copied data to the server using rsync and got this message: Oct 10 17:24:04 zetta ^Mpanic[cpu1]/thread=ffffff0007f1bc80: Oct 10 17:24:04 zetta genunix: [ID 683410 kern.notice] BAD TRAP: type=e (#pf Page fault) rp=ffffff0007f1b640 addr=fffffffecd873000 Oct 10 17:24:04 zetta unix: [ID 100000 kern.notice] Oct 10 17:24:04 zetta unix: [ID 839527 kern.notice]
2005 Aug 24
1
Running wine from php pages with "Xvfb" not success for my machine
I am sorry before, cause my english is poor. My machine is : i686 and I use RedHad Enterprise Linux AS Rel.3, Apache 1.3.33 and PHP 4.4.0. Simply, I want to run an Windows application via PHP page with WINE emulation. (Newest version of WINE updt. August 2005) I have a simple a PHP file "wine.php", that will load an windows application via PHP page. The contents is:
2013 Feb 02
2
Question: write an R script with help information available to the user
Dear All, I would like to ask a question on how to incorporate into an R script help information for the user. I vaguely recall that I saw some instructions on an R manual, but am not able to figure them out. Hereunder is the basic setting: 1. I finished writing an R script, my_script.r, that is a function (the function is named "my_func") for a statistical procedure. This means that