Displaying 20 results from an estimated 5000 matches similar to: "help with installing login_engine"
2005 Dec 18
3
could you give me a hand?
hi.
i try to record a global array to save on-line member.
it''s put this array in controllers/application.rb or not?
my code like this:
$online_users = Array.new
and each member sign in will add himself to $online_users.
miss something?
all regards
--
Posted via http://www.ruby-forum.com/.
2005 Dec 29
5
Subversion graphical client?
Hi All -
I notice that most of the Rails team are using Mac OS X and TextMate for
Ruby development. I too am working on Mac OS X and trying TextMate and
(shudder?) EMacs.
I was wondering about version control. Are folks using Subversion? If
so, are they using a graphical client? Which one do they recommend?
Yours,
Jordan
--
Posted via http://www.ruby-forum.com/.
2005 Dec 17
2
Encrypting files
Anyone know of a good (fast) way to encrypt/decrypt uploaded files in
RoR? I''ve seen this project: http://ezcrypto.rubyforge.org/ but it
only seems to encrypt strings and such. I need to encrypt files once
they are uploaded, then decrypt them when they request the file back.
Any ideas?
Thanks,
Mark
--
Posted via http://www.ruby-forum.com/.
2005 Dec 26
2
resorting a dataset
Quick question to see how I might re-sort an Activerecord data set. Let''s
say I have this table:
tablename: testscores
| id | student | score | avg_for_year
1, steve, 85, 82
2, tom, 84, 92,
3, jim, 92, 95
In my controller, I have something like:
t= Testscores.find(:all, :order => "score DESC", :limit => 2)
...where it would return the records for Jim and Steve....
My
2005 Dec 16
5
Question: image_tag(source, options = {})
image_tag(source, options = {})
Ok, when I want to use an image I added the following code:
<%= image_tag "dsf.jpg" options = {[align="right", style="padding-right:
10px; padding-top: 5px;"]} %>
However, this doesn''t seem to work, it doesn''t like how I have the
"options" part setup. I''m sure there is something very easy
2005 Dec 28
8
Rails app lags after inactivity
Hi all. I have two Rails applications. Each is on its own VPS hosted by
Pipespring (excellent service btw).
My app runs lightning quick - AFTER the first load. If I visit my site after
a period of inactivity (i.e. no visitors to my site), it takes up to 10
seconds to load that first time. After that I can hop around with no
problems.
Has anyone run into this before? Ideas?
- Rabbit
2005 Dec 21
8
textilize - redcloth
Hi,
I''m using textilize with redcloth 3.0.4. Everything works best except
that paragraphs are not translated as an HTML paragraph
When I write something like:
*first paragraph*
second paragraph
the output is without paragraph:
*first paragraph*
second paragraph
Any help??? Thanks
Jörg
2006 Mar 08
2
RailsConf speakers
Does anyone have a clue as to when the railsconf speakers will be
announced?
Thanks-
-Ezra Zygmuntowicz
Yakima Herald-Republic
WebMaster
http://yakimaherald.com
509-577-7732
ezra@yakima-herald.com
2005 Oct 11
4
Searching an attribute in a hmabtm relationship
(Nuby to Ruby and Rails...)
I''ve implemented security using the login generator in a simple app so
that I have a user table, a roles table, and a join between them
(roles_users). All works as expected. I now need to check if a user
has a specific role, but my approach is off somehow.
Here''s what I''ve tried thusfar:
user_roles = @session[:user].roles
2006 Mar 20
3
login_engine
Hello,
I''m having trouble getting login_engine to work properly. I get the standard login/registration views, but whenever I try to register I get:
NoMethodError in User#signup
undefined method `password_confirmation='' for #<User:0x408b2f9c>
I have login_engine, and engines installed from cvs:
http://opensvn.csie.org/rails_engines/plugins/
anyone else had anything
2005 Dec 29
5
Extracting SQL and Rebuilding from SQL?
Hello-
With a database filled with several customers'' datasets, I thought it
would be a nice feature of my app''s backend interface to be able to
extract (and optionally delete) the data from a single customer. It
would then also be nice to rebuild that data from the stored info.
What''s a good way to do this efficiently?
If all the ":dependent => true"
2005 Dec 15
3
session scope?
Hi all,
I''m working on a Rails application. In this application I retrieve a list of
''brands'' using a method somewhere defined in my controller:
private
def get_brands
@brands = Product.find_by_sql("select distinct brand from products");
end
However, I display this information in a listbox in the template for my
controller.
This means @brands
2006 Jan 20
6
Pre-populate db with yaml outside of testing?
Hi.
What is the best way to pre-populate your database with records while
developing, not testing?
For example, I want to:
1) > [run this command to populate db]
2) > ruby script/server
3) now I can surf to localhost:3000 and my app will already have relevant
data
I''m hoping to use yaml to suck it in.
Is there a way to use the Fixture class to handle this even though this is
2005 Dec 15
5
site takes a while to load after first visit in a while
Using lighttpd + fcgi to power a site. When no one has accessed it in
a while, the first visit to the page takes a while to load up. Then
subsequent visits are fairly fast.
Any ideas on how to fix it?
2006 Jan 25
14
Salted Hash Login Generator
Does this work with rails 1.0 ? I saw that people said it failed with rails 14.1, which
practically identical.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060125/5da24694/attachment.html
2005 Dec 16
1
500 Error Page
I have an error page defined in my .htaccess file and I''m in production
mode.
Sometimes I still get the Application Error (Rails) white page though. In
this case there was a nil object that I tried to access in a controller
without first checking if it was nil.
How does Rails decide what error page to display and how can I get the
pretty error page to display more often?
Thanks.
2005 Dec 16
2
Is this possible?
Hello Friends,
def new
@invoiceitems = Invoiceitems.new
@oldinvoiceitems = Invoiceitems.find(:all, :conditions
=>[''invoice_id = :invoiceid'', { :invoiceid => params[:id] } ]
end
Error is being shown in the line number with ''end''.
This is for initialising a new invoiceItems object and also finding and
storing all the invoice items for a
2005 Dec 24
2
Variable dumper
Hi there,
I am newbie both in Ruby and in Rails. My experience is mostly PHP.
In PHP, there is a var_dump($mixed) function that dumps the object
$mixed to std_out. This is helpful to see the curent value of a
variable, of if it is an object, everything that is in the object.
Is there an equivalent methods in RoR?
Thanks,
Ezra
--
Posted via http://www.ruby-forum.com/.
2005 Dec 26
2
confused about ruby fast C bindings
I am confused about ruby fast C bindings. Does the command:
gem install mysql
install these?
Is this page:
http://www.tmtm.org/en/mysql/ruby/
the home page for these bindings? If so, it gives no instructions about
installing them with using gem.
Wondering if this is all the same???
Thanks for any help...
Shelby
_______________________________________________
Rails mailing list
2005 Nov 09
1
Enterprise Integration with Ruby - Beta book
I saw this mentioned on Dave Thomas''s blog
http://blogs.pragprog.com/cgi-bin/pragdave.cgi/Tech/Ruby/EIR.html
and don''t remember having seen it announced on this mailing list. This
new Beta Book is at
http://pragmaticprogrammer.com/titles/fr_eir/index.html
regards
Justin