Displaying 20 results from an estimated 30000 matches similar to: "require in models"
2006 Feb 14
7
9cays - A Rails app for Group Email
Even though it''s a little OT, I thought I''d announce the free public
beta of a new Rails app that I''ve been working on for a while:
http://9cays.com
Think of it as mini-mailing list software. For a lot of smallish
conversations, normal mailing list are too heavyweight (requiring
setup, moderation, admin, etc.), but group email is a pain because
messages
2006 May 21
3
Using ParseDate in for loop
Hi,
I''m trying to use ParseDate within a for loop but I get this error:
can''t dup NilClass
Any suggestions for making this work?
Thanks,
-Jason
2006 Jun 10
3
Weird Problem With Active Record
Is it me or is my model getting the created_at from the wrong model!
I have a HABTM relationship between Problems and Tags. In one of my
controller I do the following:
def view
@tag = Tag.find_by_name @params[:id]
end
In my view I do this:
<% @tag.problems.each do |problem| %>
...
<%= problem.created_at %>
...
<% end %>
Now, how come the created_at
2017 Jan 13
2
input en markdown
Hola
¿Quizá por aquí?
https://github.com/yihui/knitr/issues/268
El 13 de enero de 2017, 12:26, Rubén Gómez Antolí <lobo en mucharuina.com>
escribió:
>
>
> El 13/01/17 a las 11:50, Antonio Maurandi López escribió:
> > Hola lista:
> >
> > Una duda rápida (espero).
> >
> > ¿Se puede hacer un "inlcude" o un "input" en markdown?
>
2014 Apr 15
2
Fwd: ¿Cómo generar informes con R sin utilizar LaTeX?
Victor,
Me parece que podrías investigar si Scribus puede generar e insertar la
salida de R en sus documentos, por lo que estás agregando a tu pregunta me
parece que BI no es el camino. Si lo haces, creo que a más de uno en esta
lista le interesará la experiencia. La alternativa sugerida por Emilio
usando Rthml y CSS con probablemente markdown y, yo agregaría, pandoc me
resulta muy interesante y
2006 May 09
7
going crazy!!!!!! ActiveRecord::StatementInvalid in Project
any suggestions on why I am gaining this error.
ActiveRecord::StatementInvalid in ProjectsController#create
Mysql::Error: You have an error in your SQL syntax; check the manual
that corresponds to your MySQL server version for the right syntax to
use near '' , , , , )'' at line 1: INSERT INTO projects (`name`,
`date_created`, `quote_id`, `client_id`, `description`, `user_id`)
2006 Apr 16
8
"Cannot convert String to Integer" after using association
So, I''ve written a partial that does some stuff with a given instance of
my class "entity". Entity is ActiveRecord. I''m able to retrieve all
sorts of data from an @entity, until I do something like:
<% for @attribute in @entity.attributes %>
<div id="attribute_<%= @attribute.id %>">
<%= render(:partial =>
2006 Jul 09
8
Can the has_many create() method return an ID?
Hi all,
I have a has_many relationship, Cookbook :has_many Recipes
If I want to create a new recipe in my cookbook I do:
cookbook.recipes.create(data)
It would be nice if I could then easily get the id of the new recipe,
but the create() method doesn''t seem to return anything. Any ideas how?
Thanks in advance!
Cameron
--
Posted via http://www.ruby-forum.com/.
2006 May 31
3
instance variable problem
I''m having some trouble with an instance variable being read as nil in
my app. I have an image uploading, that can be added to categories.
The page loads up initially fine, and if I upload an image without
errors everything works fine. I''m working on the validation, but with
the code I have if their are validation errors it renders ''new'' again,
but reads
2006 Jun 01
3
more questions: human_name
One more question:
Is there some way to set the human_name of a column? e.g.: human_name
for column address1 shouldn''t be Address1 but "Address, line 1".
If not, should I make a hash with my custom names?
Best regards,
--
----------------------------------------------------------------------
Yannick Majoros http://www.inma.ucl.ac.be/~majoros
Informaticien UCL/INMA-MEMA
2006 Jun 11
4
remote_function posting?
Hi, I''ve noticed that my remote_function calls are resulting in POST
requests. As a result, my routes do not apply since it does not generate a
url based on the parameters, but simply posts to the raw url with post data.
I want to make a GET request instead of a POST. How can I do that? Has
anyone else run into this?
Thanks, Ryan
--
View this message in context:
2006 May 25
4
downloads dispatch.fcgi for every request!!
Hi All, has anyone ever seen it when they vist the URL in the applicaion
that it just tries to download the FCGI dispatch file?
Im running FC3, Lighttpd1.4.11, Rails 1.1.2 and FastCGI.
i run IRB and get...
irb(main):001:0> require ''fcgi.so''
=> true
irb(main):001:0> require ''fcgi''
=> true
On the default rails install page ''riding on
2006 Apr 11
8
Does Rails provide solid support for UTF-8?
I need to use UTF-8 in my app and was wondering if Rails would support
it properly.
Some sites seem to be saying that it has weak internationalization
support. Is this true? If so, where is the problem? What should I look
out for?
Are there tweaks, plugins or gems that fix the problem?
TIA.
David
--
Posted via http://www.ruby-forum.com/.
2006 May 03
2
Perplexing nested transaction issue
I''ve been struggling with a strange nested transaction problem for a while.
I have a two objects with the following relationships:
Mail has_many :recipients
Recipients belong_to :mail
I''d like to update the status of the Mail object while sending mails for
each of it''s recipients. Following is a simplified example that I''m having
problems with:
def
2017 Jan 13
3
input en markdown
Hola lista:
Una duda rápida (espero).
¿Se puede hacer un "inlcude" o un "input" en markdown?
sin emplear Rmarkdown o knitr.... solo puro markdown, de modo que por
ejemplo github lo interprete o un visor básico de markdown.
la idea es q un file muestre(contenga) todo pero tener la info
distribuida en varios files.
Gracias.
--
Antonio Maurandi López
Sec. Apoyo
2005 Nov 15
2
FormOptionsHelper select call failing
In Rails 0.14.3, I''m doing the following in a view:
<%= select ''folder'', ''format'', [''a'', ''b'', ''c''] %>
This line in is failing with:
ActionView::TemplateError (too few arguments.)
Am I calling select incorrectly? (Yes, the @folder object does exist,
and does have an attribute
2019 Jul 08
2
Salvar los plots a alta resolución la vez de incluirlos en documento
Buenas!
Supongo que será fácil, pero se me está haciendo difícil.
Tengo un documento Rmarkdown en RStudio en el que escribí lo que me
pidieron, que me lo piden en formato MS Word. Markdown lo saca
decentemente, pero me temo que no tan decente del todo las imágenes. Quiero
que, además de salir las imágenes incrustadas en los respectivos chunks,
también salve automáticamente la imágen en archivos a
2006 Jan 12
2
Engines issue: rake test_plugins failing when it shouldn''t
I create a simple engine with a simple controller:
class FredController < ApplicationController
def hello
render :text => ''Hello, world!''
end
end
and I create a simple functional test within the engine:
class FredControllerTest < Test::Unit::TestCase
...
def test_hello
get :hello
assert_response :success
end
2013 Jul 06
2
Alternativas a pgfSewave
Ese es en particular uno de mis miedos. Aunque soy de la idea que todo
conocimiento sirve, no ando con demasiado tiempo para ir probando. Capaz
que la pregunta debió ser cual de los dos (o más, puesto que no se si
existen otros) creen que seguirá un buen desarrollo futuro, no sea cosa
de invertir mucho en alguna cosa que luego al final cuando ya le coja la
mano tenga que migrar para otra...
2006 May 29
2
Creating a new virtual field
Hello,
I have a problem with one of my Rails-Application, I have a table and on
this there is object_name and a object_nr, so i want to create a
combination of both in the model for a collection box.
I''ve tried something like this:
def set_new_object_name
objects = find(:all).to_new_object_name
end
def self.to_new_object_name
self.new_object_name = self.object_nr + " -