Displaying 11 results from an estimated 11 matches for "ybherakfyf4eiz0".
2007 Nov 17
18
Syntax Problem
I admit I am stuck. I am converting a legacy php site to ROR. The old
site uses MD5, a security flaw waiting to happen. I upgraded to AAA
and am adding code in the session_controller.rb file to see if
crypted_password is blank. If it is, crypt and check the password
against the old md5 version and write it in the new crypted_password
field.
Here is my code add on before the logged_in?:
def
2007 Nov 04
4
Hidden URL
Hello,
I have in my application a private public URL. For those who know
Flickr, it is sorta like the URL you give to your friend for them to
access your photos. Usually the URL looks like this:
http://www.domain.com/url/khjuytf678ysdfksdgihsd
Where "khjuytf678ysdfksdgihsd" is an encoded path. Let say I want to
have a public-private page for:
2007 Oct 12
7
webrick 500 error
Hi,
This is my second question on the poor performance of webrick
(previously I had a problem with Ajax).
I have a somewhat simple Rails application which works just fine, but
when I come back to work the next day, the server responds with error
500. It looks like if it is running more than 12 hours, it''ll crap-out.
I don''t use CVS (which I read on the web it is a common cause
2007 Nov 27
2
Getting table field names from an object
If I had the following
@recipes = recipe.find_all
Is there a way to find all the field names returned by the query and the
data in them.
Thanks
Martin
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2007 Sep 15
3
check_box_tag always checked
#check_box and #check_box_tag are going to be the end of me. Why is
this always checked?
<% checked = @reservation.selected ? ''checked'' : nil %>
<td><%= check_box_tag("reservation[" + @reservation.id.to_s +
"][selected]", ''checked'', :checked => checked) %></td>
2007 Oct 26
2
Appending to a textarea with RJS
Ok, this is driving me nuts. I''m trying to RJS some text into a
text_area which may or may not have been written in by the user. if I
page.insert_html :before, :after, :top, or :bottom, it either sticks
the contents above or below the text box (but never in). If I do:
page[:textboxid].value = "blah"
it overwrites the contents of the textbox but doesn''t APPEND to it.
2007 Oct 13
4
Chapter 9
Hello,
I''m currently stunk on this issue for few days and I do not know how
to get it fixed.
The system always raises this error message :
order is closed
and here is my order.rb:
class Order < ActiveRecord::Base
include ActiveMerchant::Billing
before_validation :set_status
attr_protected :id, :customer_ip, :status, :error_message, :updated_at, :created_at
attr_accessor
2007 Nov 01
5
monster method (too hard for my skill level)
I need to write a method for calculating the fee for medical
procedures with respect to area. I have all the tables and data but
its hard to give that here. Can someone take a look at this ''stub''
method and help me out?
def calculate_fee
# strip out the first 3 numbers of the user entered zip code
# use those 3 numbers to identify row in [zipcodes table] (between
upper and
2007 Nov 29
6
Locomotive: Can not install mysql gem
I''m using Locomotive on MacOSX 10.4, and I have installed mysql
5.0.45.
To my surprise, the Ruby version included in Locomotive does not come
with the mysql
gem installed, so I tried to install it manually. According to the
instructions in database.yml,
this should be done using the --include switch, like this:
gem install mysql -- --include=/usr/local/lib
I selected the mysql 2.7
2008 Jan 16
4
[ADV] The Ruport Book : Your guide to mastering Ruby Reports
Hi folks,
I am pleased to announce that Mike Milner and I have finished the
Ruport Book. We have published it under our own company (Rinara Press
LLC) through Lulu.
With the help of the Ruport community, we''ve refined the book over the
last few weeks to meet the needs of our users. We think it will be a
great help to anyone trying to learn how to do reporting in Ruby /
Rails using
2007 Nov 15
6
Link_to popup divorced from controller?
Here''s my case:
Using a link_to popup window to show a related help file of an element
on a page.
The problem:
Window pops up perfectly, but refuses to carryover @instance variables
in the controller that I referenced in the link_to command.
The tests:
- I have the right controller/class, because it renders a specific
template, which is what it does.
- I have the right template/view,