similar to: Rails & SSL

Displaying 20 results from an estimated 900 matches similar to: "Rails & SSL"

2006 Jun 06
6
Payment Gem Error
I am learning how to use the payment gem to process credit cards. I think I have everything up and running correctly but I get this error: undefined method `use_ssl='' for #<Net::HTTP secure.authorize.net:443 open=false> Would anyone have an idea what would cause that? Thanks, will clark // graphic design www.willclarkdesigns.com/ will@willclarkdesigns.com 559 | 584
2006 Jun 10
3
Agile Web Development p.89
I''ve been following along just fine with the depot app, up until I make the catalog, where, when the price is displayed with formatting, the price shows up underneath the <div> bar for the next item in the catalog. If, in index.rhtml, I change the <span class="price"> to just <span>, or equivalently, remove the entire <span...> tag, it works just
2006 Jun 09
1
crypto-key.rb
Does anyone know how to implement the crypto-key.rb as found on http://swik.net/Typo/too-biased/Simple+Encryption/ckpz It allows for encryption and decryption of credit card numbers that are stored in a database. I am somewhat new to Rails, and I don''t always know how to use libraries and modules. Thanks, will clark // graphic design www.willclarkdesigns.com/
2006 Jun 07
2
display two columns using fixed width divs
Hi. I want to display some related information in two columns. Originally I wanted to use frames and googling led me to http://lists.rubyonrails.org/pipermail/rails/2006-May/037972.html which suggest divs instead. I modified my code to this: <body> <div style=''width: 300px; overflow: scroll''> <%= render :partial => "col1" %> </div>
2006 Nov 16
2
test unit approach?
I''m just getting back to looking at backgroundrb after a long hiatus since June. I''m looking at creating some workers but I''m a bit stuck as to how I should write tests for them. What''s the recommended approach for unit testing of workers? The project will ultimately be used by a Rails app but I''m comfortable developing the worker code as a
2006 May 21
12
TDD for Rails book?
It seems like half the people on this list are writing a book on Ruby or Rails. For all the hints I''ve seen strewn across the list I have yet to see one that will focus on test-driven development for either Ruby or for Rails. If anyone is looking for a topic, please consider this. I''ve been trying to wrap my brain around the TDD process, but its way of thinking is
2006 May 20
10
HOW TO create a new record and its associated objects within the SAME PAGE
hi, can''t find any good tutorial or advice to deal with the creation of a new record and it''s associated objects within the same page. do i have to use ajax just to add custom form fields that will be handled by the controller for associated objects creation.? do i have to use ajax to add associated objects to the unsaved but allready in session parent object? what''s
2006 Nov 22
3
RESTful web service design question
I''m working on a Rails app that needs to expose a RESTful web service. I''m curious to know some of the best practices as it relates to RESTful API design. Let''s say I have a set of related objects on the server side. I''ll use the venerable subscribers, subscriptions and magazines example to lay it out. class Subscriber < AR has_many :subscriptions
2006 Jun 16
2
need help mocking out a method
I''m trying to test a controller method''s error handling. To do so I need to mock out a method that normally returns a unique number so that it returns a duplicate number several times in a row thereby triggering the error handling. However, I can''t get the mock working. Here''s the test code along with the error (all from test/functional/
2006 Nov 18
1
ActiveResource sample code?
I''d like to play around a bit with ActiveResource for consuming a web service. Does anyone have sample code they would be willing to share? I''ve googled all around and have come up empty except for simple (non- working) examples given in the RailsConf keynote and some associated blog entries. Thanks! cr --~--~---------~--~----~------------~-------~--~----~ You received
2006 Jul 27
7
WebService
Hi all! how do I make a WebService using rails? thaks ! -- Cordialmente, Carlos J?nior <junior@boanoitebh.com> (31) 9244-6543 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060727/f52d1e1c/attachment.html
2006 May 18
2
How to debug the rendering in Rails?
Hi, I have some controller code like this: def mailing_lists @ml = MailingList.find_by_identifier(@params[:id]) @messages = @ml.messages @headers["Content-Type"] = "application/atom+xml" @response.headers[''Last-Modified''] = @messages.last.created_on.httpdateunless @ messages.empty? minTime =
2006 Aug 07
9
[OT] Rails is built into OS X 10.5
This coming out of WWDC. Pretty cool to see this kind of thing happen. -- J "Brien" | HybridIndie Productions | http://hybridindie.com | hybridindie@gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060807/380ae29c/attachment.html
2006 Jun 06
4
no view involved...
The canonical example of using BackgrounDRb involves updating a progress bar on some user''s web page. Therefore, the long running background process has some affiliation with a view. How can backgroundrb be used for long running processes that are NOT associated with a controller/view? Is this even possible? I understand the nature of Rails is such that it does "just in
2006 May 22
2
good practice or waste of time?
I have what I hope is a simple question regarding a security practice I''ve been using in my first Rails app. I want to know if it''s worthwhile or if the extra typing isn''t worth it. I have 3 models that are related to each other. class User < AR:Base has_one :library end class Library < AR:Base belongs_to :user has_many :items end class Item < AR:Base
2007 Jan 23
4
Want feedback on Mongrel patch for handling partial PUT requests
By default, Mongrel will delete the HTTP request body and short circuit calling any handlers if a request is interrupted or incomplete. Unfortunately, this breaks any attempt to correctly handle a partial PUT. (BTW, PUT is *way* more efficient for uploads compared to POST which requires a MIME parsing step.) So, about a month ago I wrote up some patches to Mongrel 0.3.18 that allowed
2006 Jun 28
3
Best way to structure this?
I''m thinking of an application in which a user can request for different items (like office stationery). So, I have a table of users and a table of requests. The thing is that depending on the item requested, the parameters are different - for example, pens may have {colour, width, type} while paper may have parameters such as {colour, size (A4, letter, legal), stack size,
2006 May 15
3
where do I put this test?
I''m trying to use TDD on a Rails app. So far (6 hours into it) things are going well. My data model is starting to get a little more complex now. I now have two related tables and I want to make sure my tests cover input validation, record creation, and the proper creation of the foreign key. Do I put this into a test unit for the parent table''s model? Or do I test this
2006 Nov 26
2
Writing a mod_put HttpHandler
I''m looking at writing a Mongrel handler that mimics the behavior of the Apache mod_put [1]. It allows for the streaming upload of very large (GB) files; it also supports resumable upload. Before I get too involved, I''d like to ask if my reading of the mongrel source code is correct, i.e. what I want to do isn''t currently possible. Looking at the class
2006 Oct 22
3
Date Helpers?
Does anyone have any ideas off the top of there head how to easily construct a date helper as one would see in Rails? Thanks, Michael Gorsuch http://www.styledbits.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/camping-list/attachments/20061022/7dda5a52/attachment.html