Displaying 20 results from an estimated 2000 matches similar to: "Modularisation: Using helper generating HTML output vs. using partials"
2009 Sep 03
7
Strange NoMethodErrors in production mode, I just don't know what to do.
Hi,
thanks for reading. Since hours, I am facing a problem and it seems
that I am not able to solve it.
Let''s say, I''ve got a model called "AnnotationType". This model has
got a method called "foobar(x)". It''s just so simple. I can access
this method in my unit tests, in the console (all modes), but if I
start the server in production mode and try
2011 May 16
3
Is it time to re-factor yet :^)
Or how to avoid the whirlwind.
Greetings everyone.
I observe the coding of lighdm is well under way and I'm thinking the
pressure to meet the releases of 11.11 is probably going to build without
bounds.
Is there time now to consider the inclusion of some of the more offbeat use
cases?
1: Headless(no monitor, keyboard, or monitor)
2: True headless(no video card) but Xvfb.
3: No X but only
2009 Sep 01
4
Passenger problem
I''ve used the Slicehost Intrepid instructions (http://
articles.slicehost.com/ubuntu-intrepid) to install a new Ubuntu server
with Ruby, Rails and passenger.
Everything seems to be working OK, save for one thing: my application
only service up the files that are in its public folder.
The Passenger gem is installed. I''ve done this whole process before
without any problem. Any
2009 Dec 14
5
Too many methods in the model? Extra lightweight logic layer?
Hi,
Given the convention of fat models to handle business logic, is there
a point where you might be justified in using a separate plain ruby
object(s) to orchestrate certain business logic interactions,
essentially a middle layer between your controllers and models for
high level functions?
If you look at the InventoryTransaction model below you will see the
sort of methods I mean. In this case
2010 Aug 03
2
Strange error message when rendering the scaffold form
Hello everyone, I am developing my application and I created a
scaffold called listas, but when I acess /listas/new I get this error
message:
NoMethodError in Listas#new
Showing /home/rodrigo3n/code/listeiroo/app/views/listas/_form.html.erb
where line #15 raised:
undefined method `deep_symbolize_keys'' for nil:NilClass
Extracted source (around line #15):
12: <% end %>
13:
14:
2008 Nov 18
3
Code changes are ignored due to code minor ver. were cached
Hi there!
I study Ruby on Rails and met a problem.
I placed a class definition code for class which is NOT a Model into
separate file, assume MyToolClass.rb
Then I started working on controller code and required ''MyToolClass''
While working on controller code I also corrected some code in
MyToolClass.rb, but it seemed, that changes in MyTooolClass.rb were
ignored by Rails until
2008 Nov 04
3
Nester Resources, Routes and Class Inheritance
Ok here''s a quicky... but a goody :)
We have models Company, Reference and Applicant... and References and
Applicants just inherit from Company, and are basically companies with
the type field set to reference...
All companies can have a phone number associated with them, and phone
number is a different model...
I''m having trouble using the form_for method with a company that
2008 Sep 19
7
Non-Ruby REST client for Ruby REST server
Hi,
I have a Rails 2 app and I wand to provide an API for 3rd party
applications written on any language the customer uses.
My thoughts are that the best way of providing it is by taking
advantage of rails RESTfulness and let them perform CRUD actions on my
data through it. But I don''t seem to find many information on how to
achieve this.
I first want to develop .NET clients (or web
2015 Jun 07
2
[LLVMdev] Loop Unfolding in LLVM
Hello,
I am looking for a loop unfolding procedure implemented in LLVM that helps
to transform a while-loop to n-layer If-statements. The transformation
should be on IR, although the example below is illustrated on the source
level.
original loop:
* WHILE (condition) DO
action
ENDWHILE*
Expected unfolded loop (2-layer):
* IF (condition) THEN*
* action*
* IF
2019 Feb 08
2
Unfolded additions of constants after promotion of @llvm.ctlz.i16 on SystemZ
Hi,
SystemZ supports @llvm.ctlz.i64() natively with a single instruction
(FLOGR), and lesser bitwidth versions of the intrinsic are promoted to i64.
For some reason, this leads to unfolded additions of constants as shown
below:
This function:
define i16 @fun(i16 %arg) {
%1 = tail call i16 @llvm.ctlz.i16(i16 %arg, i1 false)
ret i16 %1
}
,gives this optimized DAG as input to instruction
2007 Jun 26
3
[PATCH] Always use mipmaps in cube plugin
Currently, the cube plugin uses mipmapping only when cube is unfolded.
When the cube is rotated, mipmaps are not used, which leads to ugly look
of textures.
The attached patch fixes this. This leads to another kind of artifacts,
which are fixable with anisotropic filtering.
http://team.pld-linux.org/~wolf/aniso.png
The leftmost image is the current state of cube plugin. The center image
is with
2010 May 20
5
Problem with installation of Rails 3
Help me out guys....
While installing rails 3 i got the following message
:~$ sudo gem install rails --pre
Successfully installed rails-3.0.0.beta3
1 gem installed
Installing ri documentation for rails-3.0.0.beta3...
File not found: lib
My gem list
:~$ gem list
*** LOCAL GEMS ***
abstract (1.0.0)
actionmailer (3.0.0.beta3, 2.3.5)
actionpack (3.0.0.beta3, 2.3.5)
activemodel (3.0.0.beta3)
2008 Aug 27
6
Restful routes
Hi, I''m pretty new to the concept of restful routing and am struggling
to find any rails 2 info that helps with what I''m looking for.
I have a regular scaffold setup and the routes are setup as default
map.resources :pages
I would like to be able to use titles in the url rather than relying on
the id.
Eg
localhost:3000/pages/sometitle
instead of just
localhost:3000/pages/1
2011 Dec 13
5
[LLVMdev] make check-all failing 18 tests with --enable-optimized
As part of our automated testing, I'm running make check-all to watch
for failures. One of my builds uses the --enable-optimized option to
configure. When I build the latest trunk, I'm now seeing 18 failing
tests:
Clang :: Preprocessor/macro_paste_c_block_comment.c
LLVM :: CodeGen/ARM/2011-05-04-MultipleLandingPadSuccs.ll
LLVM :: CodeGen/ARM/2011-11-14-EarlyClobber.ll
LLVM
2007 Aug 20
1
Re: Assertions
David Schmitt david wrote on Mon Jun 25 03:32:09 CDT 2007:
> For the ongoing modularisation of my config I wrote a
> assert_lsbdistcodename class today, which can be used for failing
> parts or complete configurations if a certain variable is not set
> (lsbdistcodename in this case). Please find the file attached.
This is great, however I ran into something strange with this. It
2007 Nov 21
6
MediaCtrl
Hi.
Attached you find an attempt to adding MediaCtrl to WxRuby. It''s only
tested on windows (compiled with msvc 6.0).
Everything seems to be working fine except for a small problem with a
few functions:
wxFileOffset Seek(wxFileOffset where, wxSeekMode mode = wxFromStart);
wxFileOffset Tell(); //FIXME: This should be const
wxFileOffset Length(); //FIXME: This should be const
2008 Sep 19
1
Freezing Rails to 2.0.2
Hi,
I am using Rails 2.1.1 to stay in touch with the latest.
I need to freeze the rails to version 2.0.2 for a project.
But... The command in Rake tasks for Freeze allows only to freeze for
the latest version
I am using Netbeans 6.1 and familiar with tools only... Not much
familiar with Console currently.
Is there any facility in that allows me to freeze to older versions.
Thanks
--
Posted
2008 Jan 22
0
[LLVMdev] Complex constant expressions?
On Tue, 22 Jan 2008, Talin wrote:
> More questions on the best way to write a compiler using LLVM:
ok
> Now, clearly the compiler needs to evaluate the array size expression
> at compile time, since the size of the array needs to be known up
> front. My question is, would it generally be better to generate LLVM
> code for the expression and run it in the compiler, or would you
2011 Dec 13
2
[LLVMdev] make check-all failing 18 tests with --enable-optimized
On 12/13/11 01:09, Eli Friedman wrote:
> On Mon, Dec 12, 2011 at 6:26 PM, Brendan Kirby <bkirby at mips.com> wrote:
>> As part of our automated testing, I'm running make check-all to watch
>> for failures. One of my builds uses the --enable-optimized option to
>> configure. When I build the latest trunk, I'm now seeing 18 failing
>> tests:
>>
2008 Apr 26
0
[LLVMdev] The source code Makefile (newbie with pass registering Problem)
Hi Dominic!!
Oh thanks for your advice. I'll try it.
-nic-
> This doesn't directly answer your question, however I'm hoping it might
> set someone on the right path to help. I've had problems passing
> CPPFLAGS through from my Makefiles to the llvm compile command line. It
> seems that anything I set in CPPFLAGS is set in the llvm Makefiles
> themselves (seen