Displaying 20 results from an estimated 5000 matches similar to: "Any documentation for routes?"
2005 Mar 05
3
routes inconsistency?
Hello,
As a small excercise in learning rails, I''ve been porting a very
simple website from SSI to rails (yep, a bunch of static files that
were previously served with a tiny bit of SSI magic are now served by
a database-backed rails, it''s total overkill, I know). Part of the
reason is that I''m trying to move from apache to lighttpd, and
lighttpd''s SSI for
2005 Mar 06
3
permission error in rake''s clone_structure_to_test
Hello,
When I try to run "rake clone_structure_to_test" on my project, I get
the following errors:
$ rake clone_structure_to_test
(in /home/www/cedscreening)
psql:db/development_structure.sql:8: ERROR: permission denied to set
session authorization
psql:db/development_structure.sql:16: ERROR: permission denied for
schema public
psql:db/development_structure.sql:34: NOTICE: CREATE
2005 Mar 01
1
Scratch 1.0
== What is Scratch?
Scratch is a little toy I put together in Ruby on Rails. Think of it as
a spin-off of my larger Rails app, Elite Journal. If nothing else, you
can think of Scratch as a demonstration of the new Action Web Services
component of Rails.
From the web page:
Scratch is the minimalist''s web log. Scratch gives you nothing more than
the meta-weblog API for posting.
2005 Mar 25
4
ajax and clearing the form
Hi
I played a little bit with rails+ajax, works fine...
but how do I reset the form?
I tried:
---
<%= form_remote_tag(:html => {:name => ''form_update''},
:url => :url_new_item_with_ajax,
:update => ''container'',
:loading => "Toggle.display(''new-item''); $(''new-item-desc'').innerHTML =
2005 Mar 05
1
problems with authentication -- restrict certain actions to certain users
Ok, so at this point I''ve got my app completely written, including the
login generator, and I''ve even got stuff like the layout done up all
nicely so that the login page matches the rest of the site nicely. All
is good.
But there''s one problem: I''m not running a wiki here, I''m running a
personal site. As it is, any schmuck can log in, and anybody
2005 Mar 06
3
question about testing
Ok, so now I''m learning about testing. After a few initial hiccups,
I''ve got my tests written nicely and all the assertions are passing.
But I just have one question about doing tests in a loop.
In my setup, I''m using the login generator to protect ''sensitive''
actions, while some actions are public. So I''ve got this line in my
setup method:
2003 Dec 15
6
Secondary Groups and Group Mapping
We are having what appears to be two main issues in our attempt to setup Samba 3.0.0 compiled from src on Solaris 8. We are using Samba to provide Unix shares on W2K clients, and to authenticate against a W2K Active Directory server. OpenLDAP is used on the Samba side for the UID/GID to SID mappings.
The first issue deals with the file sharing. Even if a file gives full permission to one of a
2005 Mar 04
24
Rails speed?
Hi --
(First time posting to the list...)
I''m trying out Rails on my Mac (OS X Panther, 1.6 G5). It seems...
kinda slow? I''ve even run it with FastCGI and the response time is
still painfully slow.
Is this just me? Is mod_ruby any better than FastCGI? Or is it rails?
Thanks in advance!
-- joshua
2020 Oct 27
4
Unable to get dummy interfaces to persist across reboots in CentOS 8
Have you tried to use NetworkManager ?
After all ,anything network related should be done by it.
[root at system ~]# nmcli connection add con-name dummy0 ifname dummy0 type dummy ?
Connection 'dummy0' (9fdd74fa-c143-4991-9bac-0e542704ac89) successfully added.
[root at system ~]# reboot
Shared connection to glustera closed.
[root at system ~]# uptime
03:23:44 up 0 min, ?1 user, ?load
2007 Nov 02
3
Date Issues + Oracle + RoR
Hi Experts
I''ve a product like this
ID -> 1
Name -> Xyz
Price -> 30
Created_at -> 02-NOV-07
from_date = Date.new(2, 10, 07)
to_date = Date.new(2, 10, 07)
@product = Product.find_by_sql("select * from products where
created_at between from_date and to_date")
code works perfectly, buy my issue is i dont get any data. always says
no record found
but if i use
2011 Feb 07
4
XEN live migration: cannot console or ssh to the migrated guest VM (domU)
I am now testing XEN live migration on two physical hosts with XEN 4.0.1
pvops Ubuntu 10.10 (2.6.35-22). Host A also acts as a NFS server, and Host B
acts as a NFS client.
When I migrate a guest domain from B to A. The ssh connection experiences a
downtime of about 1 minute (the terminal does not react to the keyboard
input till about 1 minute later). However, the "sudo xm console" does
2005 Mar 09
21
Converting time retrieved from MySQL
I''m having a problem converting a date retrieved from my MySQL database
and I''m hoping someone can help.
MySQL stores the date/time as this:
2005-03-08 17:00:34.0
and according to my Pickaxe book Ruby stores times as "the number of
seconds and microseconds since [...] January 1, 1970". All well and good.
Unfortunately, RoR is converting my date to this:
2020 Oct 16
3
Unable to get dummy interfaces to persist across reboots in CentOS 8
Hello all, hoping someone can help me out here.
I cannot get dummy interfaces on a new Cent8 build to persist across reboots.
On Cent7 - this is the process I use:
Create Dummies:
# cat /etc/modules-load.d/dummy.conf
dummy
# cat /etc/modprobe.d/dummyopts.conf
options dummy numdummies=4
# ip link add dummy0 type dummy
## - repeating a/ ascending dummyN adapters for as many needed
# service
2020 Oct 27
0
Unable to get dummy interfaces to persist across reboots in CentOS 8
Anyone have any ideas? It's rather annoying that I can't get these to
persist across reboots without using some kind of helper script.
On Fri, Oct 16, 2020 at 6:37 AM Frank Even
<lists+centos.org at elitists.org> wrote:
>
> Hello all, hoping someone can help me out here.
>
> I cannot get dummy interfaces on a new Cent8 build to persist across reboots.
>
> On Cent7
2005 Dec 19
3
created_on, created_at defaulting to 2000/01/01 00:00:00
Hello all,
Rails 1.0.0
created_on is being set to 2000/01/01 00:00:00
Any ideas on this ?
Thanks!
Schema is
create table user_login_history (
id int identity(1,1) not null,
user_id int not null,
created_on datetime default(getdate()) not null,
created_at datetime default(getdate()) not null,
updated_on datetime default(getdate()) not null,
constraint pk_user_login_history primary key clustered
2017 Jun 07
2
Help with Elite 800VA usb UPS
Hi, I have tried several drivers for make my Elite UPS working.
With blazer_usb I can contact it, but I have no informations. This is the
best result.
OS: Ubuntu Xenial 16.04.2 LTS
NUT Version: Nut 2.7.2-4Ubuntu1 (Installed from Ubuntu Software Center)
Device name: Elite UPS 800VA (http://www.elit-ups.com/ita/pro_ups.html,
discontinued) I can provider their *not working* linux monitoring tool
2006 Apr 14
4
Newbie stuff (.new method)
Hi-
Ruby 1.8.2 Rails 1.1
so I''m trying to build my first rails app and I''m trying to understand
how the helper methods work. For instance .new & .save . For instance,
I''ve created a table of Objects, and generated a scaffold. I see that
in the controller, there are calls to Object.new and Object.save. I''m
assuming that these are methods inherited
2003 Nov 19
8
Asterisk Business discussion again
Hello all,
Last couple weeks we had a lot of business discussions on mailing list, however some people don't like it, some people don't needed it, etc. I had couple discussions with Asterisk community members, who is interested to have business discussions about Asterisk, including but not limited to : business implementations, reselling , Asterisk commercial packages,
IP phones,
2006 Apr 20
5
Noobie problems with helper
I have the following helper method in application_helper.rb:
def format_date(date)
day = to_s(date.day)
month = to_s(date.month)
time = to_s(date.time)
date = day + "/" + month + " - " + time
return date
end
I am trying to call this method in a view like this:
<%= format_date(bounty.created_on) %>
create_on is a timestamp in mysql. I am
2011 Jun 22
5
Elite Force 2 Shortcut
Managed to get Elite Force 2 installed (had help from here actually) and the game plays fine.
When I launch it directly from EF2.exe that is.
I have had no luck creating a shortcut however. Every time I try (entering the correct command line) I simply get the following.
> Elite Force II 1.0 win-x86 May 24 2003
> ----- FS_Startup -----
> Current search path:
> Z:\home\griff/base