similar to: Best practices?

Displaying 20 results from an estimated 2000 matches similar to: "Best practices?"

2006 May 05
8
pdf/writer: table.render_on best practices?
Hi All, I generate a pdf report that contains a table. The report is 14 pages, and it takes 20s to be rendered. Most of these 20s are spend in the render_on method. I wonder if it is possible to speed up that process? To create the report, I do the following: 1) Setup pdf layout: # Setup pdf layout pdf.select_font("Helvetica", { :encoding => "WinAnsiEncoding"})
2005 Dec 21
3
Best Practices???
Has anyone come up with a list of best practices for App design using Ruby On Rails? John McClain Senior Software Engineer TCS Healthcare jmcclain-RI2jYlfFOOy2dUpmj6OxPQC/G2K4zDHf@public.gmane.org (530)886-1700x235 "Skepticism is the first step toward truth"
2006 Jun 01
4
how to: update a select from another select
Hi all, I woke up at 4AM this morning to find a solution for this and it is still not working.. grrr! lost sleep for nothing! Anyways, I have 2 select list and I want the content of the second list to be updated according to what is selected in the first list. I did this in the past by having my application generate all the possible content of the second list and make some Javascript to do
2006 Aug 03
9
Rails Cheatsheets!!!
Hey if you know any rails cheatsheet link add it inot the follwing list, lets make a long list on Rails cheatsheet.... ;) 1) 2) 3) 4) . . . -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060103/a6eea2ac/attachment-0001.html
2006 Apr 20
3
How to restrict access to images by user?
Hi, I have a some image files that belongs to some users. Only the owner of an image should be able to see it. How can I do that? I don''t think I can use send_data, because I want the image to be displayed on a "rendered" page. I don''t think I can place the images in the public folder, because if some user can figure out the name of the image then he''ll be
2006 Feb 28
7
windows sqlite client?
Hi all, Does anyone know a good windows client for sqlite 3? typical use is create and modify tables and export creation queries. Thanks, Nicolas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060228/363834cf/attachment.html
2006 May 15
5
Login generator errors.
Okay, I download login generator and I used it on my new app but, it''s not working correctly. If the user logins on the same session as he created he will login if it isn''t the same session it fails. What''s going on? -- Posted via http://www.ruby-forum.com/.
2006 Mar 31
7
Checkboxes expand to show new options when checked?
I''m writing a simple CMS where every item ("listing") HABTM categories and subcategories (which themselves belong_to a category). What I''m trying to do now is create a UI effect for listing creation: when you go to create a listing, only the possible categories will be shown, but when you select a category a set of new categories will be displayed like so: Lions
2006 Feb 21
7
Self-referencial habtm relationship
Heyo! I am setting up a self-referencial habtm relationship with the users of my app. I am using Chad Fowler''s "Rails Recipes" to get me started, and everything works great with the join table "people_friends". I add friends by doing somebody.friends << somebodyelse. However, with my app, there is an approval process so my join table has columns person_id,
2005 Aug 24
1
how can I create formated reports?
Hi, I would like to create reports from some of the views of my application. By "report" I mean a file formatted so that it can be easily saved and printed. To make myself just even more clear, let''s imagine I have an application that handles information about movies. When I display a movie, it shows in an html page with the name, category, actors and reviews of this movie.
2006 Feb 06
4
Relationship Question (STI)
My girlfriend and I have been dating for two years, and she just told me she has an STI... Actually, I currently have three different models, like: Dog, Whale, Monkey They all have some similar attributes, but, they are unique enough to break into their own models. I could use STI, but I think the table would just have too many columns. Now, I wanted to let the Dog''s, Whale''s
2006 Feb 06
6
ActionMailer - ROR Recipes - Multipart/alternative
I am using the SaltedHashLoginGenerator. and would like to send the e-mail in multipart/alternative format. By default my application is using forgot_password_en.rhtml template. I read in the ROR Recipes book "ActionMailer sees these templates, recognizes the pattern in their file names, and automatically sets the MIME type of the message to multipart/alternative and adds
2006 May 30
3
expected, got Fixnum problem.
Hi, I was wondering if anybody knew what ''<some type> expected, got Fixnum'' means? My code looks like the following: begin anevent = Event.new anevent.title = params["event"]["title"] anevent = session[:user_id] com = Community.find(params[:id]) com.events << anevent rescue Exception => exc ... end But I get an
2006 Feb 21
6
What do I need to learn Ruby, Rails, JavaScript, AJAX?
So I''ve sort of come to the conclusion that if I wanna get stuff done, I need to either A) Find some dang money and pay people to do it or B) Do it myself. I''m opting for B. Soooo...now I''ve got some programming/technologies to learn. I''m self-employed and I can afford to take a month (or 2) off to totally immerse myself in this and learn how to do it.
2006 Feb 25
2
newbie advice
Hello Everyone - Newbie here. My programming experience is primarily SQL, SAS (if anyone knows that), and a little tiny bit of ASP. Want to get going on Rails. Any suggestions? Was thinking of "4 Days on Rails". Thoughts? Thanks - Brian
2006 Mar 08
3
migrations schema_info table, Rails Recipes Bug?
I have the rails recipes book and i was going through the migrations recipe. Everything seemed to work except for the last part in trying to do a rake migrate with a migration file version 1 and the schema_info version set to 0. Without the force attribute, the rake migration fails, as expected. So the recipe says to run this: ruby script/runner
2006 Feb 26
2
auto_complete on steroids
I am trying to get more out of auto_complete than it apparently was designed to deliver. My problems seem to be two fold. 1 - I use aggregations on names... :first_name, :middle_initial, :last_name and then aggregate them using a composed_of :wholename thing auto_complete_for seems to be wired to only use table columns directly and gags on the aggregate form. 2 - foreign table columns -
2005 Sep 26
1
Fwd: Rapid GUI Development with QtRuby
Just in case some of you missed it, Pragmatic Programmers just published their first of a series of short, PDF-only books. This one is on qtRuby. It would be great to have something like this for wxRuby. I don''t think wxRuby is quite ready to this (yet), but I thought I''d plant the idea. Curt ---------- Forwarded message ---------- From: Dave Thomas <dave@pragprog.com>
2006 Jan 14
2
Using AutoComplete(script.aculo.us) with DB-Query
Hi, I''m using AutoComplete from script.aculo.us and want to combine this with a call to a database. Is there any work done so far or do I have to implement all on my own. The only thing I have seen is using results from a file on the server. But that is not very handy. Some words to my background. I''m programming for a project at my university. Our aim is to combine the
2006 Mar 31
3
RJS templates outputting bloated code?
I''m an RJS newbie. I just did the tutorial at http://www.codyfauser.com/articles/2005/11/20/rails-rjs-templates, and then used wget to look at the output the RJS template generates. This is what I got: try { new Insertion.Bottom("list", "<li>Fox</li>"); new Effect.Highlight("list",{duration:1}); Element.update("header", "RJS