search for: ertl

Displaying 20 results from an estimated 27 matches for "ertl".

Did you mean: erl
2006 Jun 13
7
ActiveRecord attribute= overload
I want to overload the = operator for one of the attributes in a model to run a filter on the input. However I can''t do this: def attribute=(data) self.attribute = filter(data) end because that creates an infinite recursive loop. How do I get around this? -- Posted via http://www.ruby-forum.com/.
2006 Apr 05
7
select_tag - populating options
Hello, I want to a select tag, where you can choose a number between 1 and 100. My inital code is based on the examples from Agile Web Development with Rails, and looks like this: view: <%= options = [["Select number of lines", ""]] + RfqLines::LINE_QTY select("rfq_line", "line_qty", options) %> model: LINE_QTY = select_fill def
2006 Mar 21
4
Determining Browser?
Is there a way I can read the user agent or something similar to determine whether the person is using IE, Mozilla/Netscape, Opera, Safari, etc? I want to dynamically output the CSS to the browser, but I''d like to change certain things (in this case the widths of some divs since IE adds borders and padding size to the total size of a div unlike firefox). Thanks, - Brent
2006 Jun 22
12
invalidating a session on multiple login
How do I do the following: if a user is logged in, then opens another browser tab and logs in again (either as himself or as someone else), I want to invalidate the session in the first tab and throw up a "logged in from another browser window" screen. RIght now, user1''s session silently becomes a duplicate user2 session instead (from what I understand, sessions are bound to
2006 Apr 20
7
AJAX/RJS Updating of Table Rows
I''m trying to update a table row (i.e. replace a <tr></tr>) using AJAX/RJS but of course this cannot be done in IE (works fine in Firefox). I have googled but have not found any solutions, only a lot of discussion. Does anyone have a solution to this problem? Cheers, Nicholas
2006 Mar 02
3
How to identify the browser?
I need to generate some browser-specific code; can I identify which browser is being used from within my RoR code? -- Posted via http://www.ruby-forum.com/.
2006 Mar 04
13
Using helpers from controllers ?
There is a solution to use helpers from controllers ? I have an error : |undefined method `content_tag''| class ApplicationController < ActionController::Base def test return content_tag("a","test") end end
2006 Apr 29
1
reloading include-modules inside controller not working
Hi guys, I would expect an ActionController-derived class to reload _completely_ in development mode. class FooController < ApplicationController include FancyStuffSupport def index # bla end # more actions here end However, the ''FancyStuffSupport'' is not reloaded, only the ''FooController'' itself. Can this behaviour be changed? I feel back
2006 Mar 04
3
Gzip compression
How to enable automatic gzip compression for all .js .html ? Thanks -- Posted via http://www.ruby-forum.com/.
2006 Mar 27
1
polymorphism + inheritance
Hi, currently I do some work with polymorphic associations in egde rails class Order < ActiveRecord::Base belongs_to :payment, :polymorphic => true end class CreditCardPayment < Payment end class PayPalPayment < Payment end class Payment < ActiveRecord::Base has_one :order, :as => :payment # common stuff in here end I want to use [Payment] for common functionality
2005 May 21
1
[LLVMdev] performance results?
Hi, I'm very interested in the quality of the codes generated by LLVM. Has anyone done performance comparision among llvm, gcc, and native compilers on x86 or sparc for SPEC CPU2000 or other large benchmarks? thanks. Qiong
2006 Mar 02
4
Instance variables in Javascript param
How can I make this work ? <a href="#" onclick="new Effect.Fade(@div_id)"></a> @div_id is an instance variable ? TIA -- Posted via http://www.ruby-forum.com/.
2006 Mar 23
3
Which is more robust/bug-free? Rails 1.0 or 1.1-RC1?
I know that Rails 1.1-RC1 has many new features but it also seems to fix numerous bugs found in Rails 1.1. So for new projects--say a small (<=10 product) ecommerce website set to launch "any day now", should we use Rails 1.0 or 1.1-RC1? Which is more bug-free? I heard 1.1-RC1 gets rid of the ''white screen of death'' but I''m wondering if any new bugs
2006 Mar 22
5
foreach item in column
Hi there, I have a database with phonenumbers, and I want to make a function that runs a command for each of these numbers, with the number as an argument Something like this in Perl: system("/bin/command $number"); mysql> select * from numbers where list = "one" +----+----------+----------+---------------------+-----------+ | id | number | name | email
2006 Apr 06
6
all elements of an array
Hi there, i have a model house and a model owner A house can have many owners. Now i want to find all owners of a specific street and i want to list them So i do: houses = House.find(:all, :conditions => ''street LIKE "%foo%"'') So now i got an array of all houses in that street @owners = houses[0].owner i''ve got all the owners of the first house. but
2013 Sep 12
0
[LLVMdev] [JOB AD] Paid project proposal - LLVM backend for an n-address code machine
...y and no other alternative exists, make suggestions for updating the NAC specification in order to better match the LLVM IR. 4) We expect that the working NAC backend will be able to process realistic, large-scale ANSI/ISO C codes. We suggest that you use the CHStone test suite: http://www.ertl.jp/chstone/ for evaluation; all these codes should produce valid NAC. Please use clang for C-to-LLVM translation. You may choose to use the tblgen tool for backend development. Among the existing LLVM backends in the official release, the PTX backend may be considered somewhat close to NAC...
2006 Mar 04
1
active migration gives undefined_method ''string_to_binary''
has anyone ever seen that: c:\rails\test>rake migrate --trace (in c:/rails/test) ** Invoke migrate (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute migrate rake aborted! undefined method `string_to_binary'' for ActiveRecord::ConnectionAdapters::ColumnDefinition:Class
2006 Jun 13
2
four days on rails - nil object when you didnt expect it
Hi all, Im trying to get my head around rails and to help along Im working through "four days on rails" as this seems to give a good real world example with multiple tables and relationships (the main thing I cant work out!) Ive got stuck. Some help would be really good here. The controller has this code: def list @category_pages, @categories = paginate(:category, :per_page =>
2007 Feb 06
4
Inheritance design question
I''m new to ruby rails and am trying to design my first real rails web app. The app is intended to model a shareware business. It will provide a place where users can learn about new projects, track their progress, and provide feedback. Here''s a simplified list of the model objects that I''ll need: Project - has title, description, creation, modification. Release - has
2006 May 12
5
How is Actionpack is not thread-safe? @@allow_concurrency?
Hi, I found many references on the Web to the fact that "Rails is not thread-safe". However, I have not found an explanation _why_ it isn''t? What happens if multiple requests are handled concurrently by ActionPack? Assuming that the code I execute in my controller methods is thread safe, is this ok? If not -- what happens? The following makes it sound like the issue is