Displaying 20 results from an estimated 300 matches similar to: "Basic Auth in WEBrick"
2006 May 30
1
DOM values in ERB Variable?
I am trying to post the current brower window sizes into the user''s
session file with a form_remote_tag call as follows:
<%= form_remote_tag :url => url_for(:controller => "welcome", :action
=> "login", :iheight => "1", :iwidth => "2") %>
But how do I get the DOM data for window.innerHeight and
window.innerWidth into an
2006 Jan 25
1
@params Hash Access
I am trying to load an ActiveRecord object from an ID within a hidden
field in a submitted form. How do I do it?
I get this into the controller with the request:
Parameters: {"action"=>"index", "website"=>{"id"=>"7"},
"controller"=>"msa/setup"}
So, how do I load the Website object from ID 7?
@website
2006 Jan 23
0
form_remote_tag and Safari (HELP!)
<%= form_remote_tag :url => { :action => ''list_setups'' },
:loading => "Element.update(''setupslist_display'','''');
Element.show(''setupslist_progress'')",
:loaded => "Element.hide(''setupslist_progress'')",
:update => ''setupslist_display'',
2006 Jan 29
0
Pagination and AJAX
How does one do pagination with link_to_remote calls so the
pagination can be done with AJAX? For example, this obviously works
out of the box with the standard scaffold:
<%= link_to ''Next page'', { :page => @image_pages.current.next } if
@image_pages.current.next %>
to get users to the next page.
The tutorial at: http://wiki.rubyonrails.com/rails/pages/How+to
2005 Dec 31
0
Fall-Through for link_to_remote?
I see in the document for form_remote_tag a little note about
Javascript:
A "fall-through" target for browsers that doesn?t do JavaScript can
be specified with the :action/:method options on :html
Which works by populating the ACTION html field for the form with a
real URL, not a "#". Great.
Can this be done with link_to_remote as well? I see no similar note
in the
2006 Jan 16
2
LoginEngine vs. LoginGenerator?
I just saw a mention here of LoginEngine, which I hadn''t heard of
before. Last week when I was digging for user-account sample code for
my web-app, I instead found the LoginGenerator and started using that:
http://wiki.rubyonrails.com/rails/pages/LoginGenerator
Is one of these preferred over the other? From skimming the API docs,
it does seem that LoginEngine has more features,
2014 Aug 26
2
[LLVMdev] possible bug in COFFObjectFile::getSymbolType()
The section is .text, so I assume it’s got IMAGE_SCM_CNT_CODE set. The problem is the symbol is marked (read & execute), but the test is (read & !write), so the symbol gets marked as ST_Data instead of ST_Other.
From: David Majnemer [mailto:david.majnemer at gmail.com]
Sent: Friday, August 22, 2014 5:44 PM
To: Ted Woodward
Cc: LLVM Developers Mailing List
Subject: Re: [LLVMdev]
2006 Aug 02
12
Authenticate with an IP address : LoginGenerator
Is there a way to authenticate with an IP address? I''m using the
LoginGenerator, but would like to bypass the "before_filter
:login_required
" if a user is in a correct IP range...
Anyone know of a solution?
Thanks!
--
Posted via http://www.ruby-forum.com/.
2006 Mar 03
5
Quick question about @params
I was looking through the loginGenerator code and noticed the following:
Login:
User.authenticate(@params[:user_login], @params[:user_password])
Signup
User.authenticate(@user.login, @params[:user][:password])
The syntax of the call in the signup code confused me...what exactly
does @params[:user][:password] this return to me? Is the params
structure a multi-dimensional array? I would have
2006 Oct 19
8
Mongrel::HttpHandlerPlugin
Hi,
I''m trying to write a file upload monitor for mongrel that uses
juggernaut to alert the browser of a change. I''m writing a plugin that
uses Mongrel::HttpHandlerPlugin but it looks like the only method that
gets called is process and that is only when the upload has finished.
I''m setting the following:
@request_notify = true
But I am still only getting process to
2006 Aug 10
16
Error on Solaris
Hi everyone, I''m having a problem starting rails on solaris. I have
made the changes suggested in the joyeur article but it doesn''t make
any difference. The error is below. Does anyone have any idea?
/opt/csw/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:666:in
`register'': undefined method `resolve'' for nil:Mongrel::URIClassifier
(NoMethodError)
2006 Feb 20
6
LoginGenerator - multiple user types...
I have been looking at the LoginGenerator gem. Looks great and can be
easily modified. However in my app I have two places where people can
login, one is for in my case "employees" the other is for "users". They
are seperate tables in my database and have many different fields.
I have an admin area located at ./sysadmin/ where only "employees" can
login, they
2006 Apr 14
6
LoginGeneratorACLSystem Issue
Hello all,
Again, thank you all in advance for any help here. I am trying to figure
out how to show the role associated with a user, in a template. I am
using the LoginGeneratorACLSystem along with the LoginGenerator. I can
show the first name of the user by writing "<%=
session[:user].first_name %>" but when I write "<%=
session[:user].roles.name %>" it spits
2006 Apr 23
1
LoginGenerator problem after updating to FC5 and latest Rails
People,
A simple Rails app that was previously working with LoginGenerator eg:
http://localhost/library/account/signup
is now giving:
<h2>Application error</h2>Rails application failed to start properly
Other Rails apps are working OK that don''t use this LoginGenerator. I
have re-installed it with:
gem install login_generator
Anyone know what might be wrong/have
2014 Aug 22
2
[LLVMdev] possible bug in COFFObjectFile::getSymbolType()
I'm working on adding data detection to llvm-objdump, so it prints out raw
data for symbols with type SymbolRef::ST_Data instead of disassembling them.
This causes llvm/test/MC/ARM/Windows/mov32t-range.s to fail, because the
symbol "truncation" comes back as SymbolRef::ST_Data, and the code gets
dumped as bytes instead of disassembled.
I traced the problem back to
2011 Jun 06
1
RCurl and kerberos
Dear list,
I would like to call a Kerberos-authenticated web-service from within R.
Curl can do it:
$ curl --negotiate -u : "http://my.web.service/"
so I would expect that RCurl also has the capability, but I have not been able to find the correct options to set.
listCurlOptions() does not return anything with negotiate, and searching the source of RCurl, the only thing I found was
2006 Jul 05
8
loginGenerator - getting logged in username
i am working on a site taht uses loginGenerator..
it''s a great little package, but i am running into one little problem..
i would like to have something that says:
"logged in as <username>" in the site, but i am not quite getting it..
what i am using is:
<p>You are logged in as: <%= @session[:user] %>
but i have tried:
<p>You are logged in as:
2005 Dec 27
4
Using mocks
Hi,
What's the purpose of test/mocks? I couldn't quite complete the Wiki
entry on this because all the information I _could_ find was in the
readme.
- Rowan
--
Morality is usually taught by the immoral.
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails
2006 Jul 11
3
LoginGenerator Killing Me ;)
OK I have dents in my head from beating on LoginGenerator, so if anyone
who has used this thing can shed a little light I would greatly
appreciate it.
It is installed and I have set it up on my User class. Folks can login,
logout, etc just fine. I have am not using the per method protection
model yet, as I am trying to migrate slowly ;)
What is broken though are all my methods that save or
2006 Jan 19
1
rjs problems
Hi,
I am having trouble with rjs templates. Basically I want the item_div
to fade if its already open and then display the new item that the
user selected with the visual effect: appear. The code below causes
the browser (firefox on osx) to open the div and then close it again
as soon as it is open:
page.visual_effect :fade, ''item_div'', :duration => 0.5
page.replace_html