Displaying 20 results from an estimated 600 matches similar to: "Detecting internet connection"
2006 Apr 09
8
Computer Name
How to get the name of the computer accessing the application? I mean
the computer the user use to access the application.
Thanks,
Lantis.
--
Posted via http://www.ruby-forum.com/.
2006 Apr 08
2
Multiple submit buttons
Hi,
How do i differentiate different submits tags / buttons on one form. Say
I want to create an edit form and I want to provide two buttons; one to
save and one to cancel. I would have:
<%= submit_tag ''Ok'' %>
<%= submit_tag ''Cancel'' %>
How do I know which button get pressed by the user?
One more thing, how to specify the default selection in a
2006 Apr 07
3
Different validation for different users
Hi,
I have two types of users; normal user and admin.
I have a field called priority in the table task.
This priority field is invisible to the normal user, but not to the
admin. The admin has to fill in the priority field when he adds a record
via filling a form. Thus, i need to add validates_presence_of :priority
to the model task. But, if i do this, then the normal user can''t add a
2006 May 23
6
Accessing file in public directory
How do i access a file in the public directory of rails application? I
have several html files in there and i want to link them from the rhtml
file. Basically to display a popup. Here is the code in foo.rhtml:
<a href="javascript:popUp(''/summary.html'')" class="normal">Learn
more</a>
It doesn''t work. Any idea why?
Thanks,
Lantis.
--
2006 Mar 31
2
W3C Standard
I''m rather new to web programming. I''m wondering, does rhtml file
conform to W3C standard? Or is there a way to make it conform to W3C
standard?
Thanks,
Lantis.
--
Posted via http://www.ruby-forum.com/.
2006 Apr 16
5
ActionMailer
Is there a way to connect to a SMTP server that requires TLS since
ActionMailer doesn''t support it?
Thanks,
Lantis.
--
Posted via http://www.ruby-forum.com/.
2006 Apr 17
5
Finding out updated fields
Hi,
When we update a record via an update form, is there an easy way to find
out the fields that have been changed. If the update is successful, i
want to display:
The following fields have been changed:
field-name = new-value
...
Thanks,
Lantis.
--
Posted via http://www.ruby-forum.com/.
2006 Feb 14
3
Arranging Models
I know we could arrange controllers as modules. Can we also arrange models
in modules?
--
Rgds,
--Siva Jagadeesan
http://www.varcasa.com/
My First Rails Project.
Education Through Collabration
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060214/d65f88c2/attachment.html
2006 Jun 09
4
WEBrick won''t start
without going into actual source code yet, here is the general scenario:
i''ve pulled down a project from svn that a friend has been developing on
a linux box... i''m on a windows box.
if i run "ruby script/server", i get one line of output:
=> Booting WEBrick...
then it dies and goes back to command prompt with no error messages.
...however, if i pull down the
2019 Oct 30
2
How to make ScalarEvolution recompute SCEV values?
Hello all,
I’m pretty new to LLVM.
I'm writing a pass for loop optimization. I clone and rearrange loops, setting the cloned loop as the original loop’s parent. This can be done multiple times, until there is no more work to do. The trouble is, after the first time I do this, the cloned loop's SCEVs become unknown types when they should be AddRecExpr.
If I re-run the whole pass on the
2006 Aug 07
2
NoMethod Error: Modifying Location of support modules
I''m trying to follow along with the Agile Development with Ruby on Rails
book and have encountered a problem with code having the following
syntax (partial class provided):
require "digest/sha1"
class User < ActiveRecord::Base
private
def self.hash_password(password)
Digest:SHA1.hexdigest(password)
end
end
I''m getting an error as:
undefined method
2006 Feb 01
6
how to create a command line script that acts on a model?
Hi,
I''m looking to create a ruby script that loads a bunch of records and
manipulates these. Where do I start?
I got this to begin with:
#!/usr/bin/env ruby
require File.dirname(__FILE__) + ''/../config/boot''
players = Player.find :all
But it complains about a DB connection. How do I set this up?
Jeroen
2005 Jan 10
1
Problem with mixed-case usernames and group mapping
Hello,
I've got a problem with user<->group mapping. Our windows PDC has
mixed-case usernames. 'getent passwd' is ok, as it simply ignores case
and shows all users in lowercase, but 'getent group' will give me
'group: User,User2', so when I 'id user' it will not be shown as member
of 'group'.
A simple example:
# getent passwd
2006 Dec 27
2
Google Desktop Search and R script files
I want to be able to search my saved R script files on my hard drive.
Thankfully the files are all saved with the .R filename extension which
means that "filetype:R" in the Google Desktop Search (GDS) box limits the
search to those files. Unfortunately if I put any other term in the search
box (for example, "hist" to find scripts where I have created a histogram)
then GDS does
2006 Feb 15
11
VPS hosting
Speaking of hosting, have any of you used a VPS provider that offers
gentoo as the VPS OS? All of the ones I know of use fedora, debian,
ubuntu, or CentOS.
--
- Adam
** Expert Technical Project and Business Management
**** System Performance Analysis and Architecture
****** [ http://www.everylastounce.com ]
[ http://www.aquick.org/blog ] ............ Blog
[
2006 Jun 08
0
Question about searchgenerator
Hi,
I am using the search generator in my application. How do i incorporate
this to the application when i deployed it on a host since i can''t
install simplesearch via gem on the server? I tried unpacking the gem on
my local machine. I got the folder SimpleSearch-0.5.0 and i added it to
the vendor directoy of rails. I also added ''require_gem simplesearch'' to
the
2006 May 24
0
Error in running functional testing
Hi,
I got the following error when i tried to run functional testing:
D:\Uni\Programming\Ruby\Project\test>ruby
functional\devices_controller_test.rb
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependenci
es.rb:200:in `const_missing'': uninitialized constant
ApplicationController (Name
Error)
from
2006 May 29
0
Display problem in IE
Hi,
I''m using the stylesheet from AWD book and i have the following display
problem in IE:
http://oktaviandi.blackcurranthost.co.uk/IE%20Display.jpg
I used a two-column layout and i guess the error highlighter fills in
the entire width of main column.
How do i fix this?
Thanks,
Lantis.
--
Posted via http://www.ruby-forum.com/.
2005 Dec 22
3
Is Hieraki included with Rails 1.0?
The Hieraki website says that it version 2.0 will be included with Rails 1.0.
Is that true?
--
Best Regards,
-Larry
"Work, work, work...there is no satisfactory alternative."
--- E.Taft Benson
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails
2006 Feb 19
4
Sending Scheduled Email Ticklers
Hi All,
I am developing a RoR app for managing community information and would
like to have an summary of current events and interests mailed out
monthly. The tickler email would be a basic summary of items and links
back to the site.
I would like to schedule the email delivery dates and have the app send
out email to registered users that opted for this service. Once
scheduled, a monthly