similar to: How to get the current URL?

Displaying 20 results from an estimated 800 matches similar to: "How to get the current URL?"

2006 Feb 01
4
Where is the send() function?
Hi, in the tutorial "4 Days on Rails" the following code fragment is used: ,---- | <% for column in Category.content_columns %> | <td><%=h category.send(column.name) %></td> | <% end %> `---- Apparently, the send() function returns the column value by name, but where does this function comes from? Unfortunately, neither the tutorial nor the API
2006 Jun 08
5
Field names in validators
Hi! Is there a (simple) way to use alternative field names in validation messages? For example, if I have a validator like this one: validates_presence_of :email how can I make it print a message like "E-Mail Address can''t be blank" instead of "Email can''t be blank"? I can override the "can''t be blank" part by using the :message
2006 Mar 12
2
Strange error: undefined method `rewrite''
Hi, when I generate a new rails project with a simple scaffolded controller, I get a strange error message, whenever it tries to call the url_for method, for example: ,---- | undefined method `rewrite'' for #<Url:0xb7675e64> | | Extracted source (around line #7): | | 4: </p> | 5: <% end %> | 6: | 7: <%= link_to ''Edit'', :action =>
2016 Oct 06
2
using samba with sssd
Hallo, it ist possible using samba with authenfication over sssd? I have two different openLDAP-server on different places. Each give logins for ssh, su, samba and many other thinks. In samba I use passdb backend = ldapsam:ldap://... The uid/gid-numbers differ, that by merging no overlapping exist. Now I try using sssd and it work fine for su and ssh (over nsswitch and pam). It enable logins
2005 Apr 23
1
Urgent: problem with SAMBA+LDAP
Greetings Experts! Sorry for my poor english, but I?m inside of a terrible nightmare!!! I?m using Samba+LDAP has about 2 months ago without problems, but in the last 4 hours, the system is absolutelly unstable. I couldn?t upgrade or patched anything. The problem simply has appeared. Principally system characteristics: - Sun Fire V880 running Solaris 9 - openldap-2.2.23 - nss_ldap-232 -
2010 Jul 01
9
how to install freephoneline.exe from CLI
Looking at: http://appdb.winehq.org/objectManager.php?sClass=application&iId=10591 What are the steps to install this application? Yes, it's a garbage application, but I'd like to at least give it a go. Looks like msiexec apparently isn't the right approach. Should that be through wcmd instead? thufir at ARRAKIS:~/.wine/drive_c$ thufir at ARRAKIS:~/.wine/drive_c$ msiexec
2009 Oct 12
2
yaml ?nodes? or nested maps
I want to iterate ?nodes? and ?leafs? for a yaml document: thufir@ARRAKIS:~/projects/rss$ thufir@ARRAKIS:~/projects/rss$ ruby user.rb user.rb:6: undefined method `[]'' for nil:NilClass (NoMethodError) from user.rb:5:in `each_key'' from user.rb:5 thufir@ARRAKIS:~/projects/rss$ thufir@ARRAKIS:~/projects/rss$ ruby user2.rb user2.rb:5: undefined method `[]'' for
2007 Dec 12
1
vfs_ChDir fails, even though the share is read-write for that user
Hi, I'm running Samba Version 3.0.25c on Solaris 10 8/07 on X86 hardware. It's successfully joined to AD. But, and there always is a but, if : * A user is a member of SomeGroup * and the share alllows SomeGroup to access it * and SomeGroup is NOT what the user has set as their Primary Group in Active Directory then * Samba will recognize that the user can access the share * but,
2006 Apr 21
9
Capistrano, OS X
If you installed your copy of ruby via DarwinPorts, the hashbang lines at the top of your dispatch.* scripts says "#!/opt/local/bin/ruby". This is a problem, if you''re deployin via Capistrano to a host with a different path to ruby (which would be practially all of them:-) Here''s a fix. Add this "fix_hashbangs.rb" script to your script directory.
2006 Feb 15
5
dispatch.cgi error affecting specific browsers
I have a rails app that is accessed through Apache 2 (just using cgi now; will add fastcgi later when everything is working). The app works fine with some os/browser combos at my work site: windows/IE Mac/safari Mac/firefox Linux/firefox But it fails on windows/firefox and my colleague''s (at a different site) mac/safari (we are running the same os version and version of safari) The
2005 Aug 25
3
dell sc420 connect to LCD 32" at 1366x768
Hi, I am attempting to connect my dell SC420 to a 32" LCD at 1366x768. I have attached my currect config file and currect X start log. How do I massage the xorf file to run at the native resolution of the LCD? It currently runs but is in a virtual mode. The screen scrolls. Any help is appreciated. I am using Centos 4.1. Jerry -------------- next part -------------- An embedded and
2006 Oct 31
3
Forcing FCGI at dreamhost
Greetings all, I''ve got an app in production at dreamhost, but I can''t seem to force FCGI on it. I have it enabled for the domain in the admin panel, have checked the file permissions in my public folder, and tried firing the scripts from the command line. When firing either dispatch.cgi, or dispatch.fcgi from the command line, I get a 500 internal server error on BOTH.
2000 Jul 05
0
smbclient -p <port> worked in samba 1.19.18p10, not in samba 2.x
It appears that "smbclient -p <portnumber>" doesn't work as advertised in Samba 2.x? On both Linux 6.2 and Solaris 2.6, independent of firewalls and the like, it works with old Samba (e.g. 1.9.18p10) , but not with new Samba (e.g. 2.0.7). The new version seems to *IGNORE* the port specification and attempt to connect to port 139. Here's the result when I try to send a
2017 Mar 20
1
CPU Pinning Help
2000 Jul 16
1
"smbclient -p <port>" appears to be broken in Samba 2.x
I posted this problem as a question to this list a while ago and got no reply. I submitted it as a bug, but found that "samba-bugs@samba.org", no longer accepts bug reports, even though the web page says to send them to that address. Wondering if the option had been intentionally discontinuted without updating the man page, I made a quick check of the source and found that the "-p
1999 Aug 30
1
1 hour delay between Samba and date
Hi! I have Samba 2.0.5a on HP/UX 11.00 (it compiled great!!). When I try "net time \\mysambaservermachine" it replies with one hour more than "date" on the unix shell. I have already checked timezone vars in my unix box but I cannot find anything wrong. Should I setup something in my samba server config? I have changed "time offset" and "nmbd as a time
2009 Jan 08
2
Restoring individual messages from a backup into a Maildir setup?
We have a user who deleted IMAP folders from his account, so I simply tried to restore the folder ".FolderName" from our backup. I checked that file/folder ownership was the same as the original, but the Dovecot IMAP server is throwing errors at the client. I've tried copying the individual message files from the "cur" folders in the backup directory, but Dovecot
2006 Mar 03
3
Switchtower not updating code...
When I deploy using switchtower the code does not update at all. It does however copy the old release into its timestamped directory under /releases/, but nothing in /currect/... is updated. Any help at all would be much appreciated! -- Posted via http://www.ruby-forum.com/.
2006 May 25
1
prototype Ajax.Request
Hi, I''m using like this var pars = ''table=''+this.config[''table'']+''&op=update&id=''+id; new Ajax.Request( this.config[''url''], { method: ''get'', parameters: pars,
2011 Mar 22
2
Problems with SQLite3
Hi! I''ve got a very strange problem. Suddenly the SQLite3 Backend stopped working. Example 1: > rake db:rollback == CreateProducts: reverting ================================================= -- drop_table(:products) rake aborted! An error has occurred, this and all later migrations canceled: SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE