search for: gimenez

Displaying 20 results from an estimated 20 matches for "gimenez".

Did you mean: jimenez
2006 Mar 23
5
Custom date format
Hi, I''ve followed these directions : http://railswiki.pdxruby.org/HowToDefineYourOwnDateFormat.html It seems pretty straightforward but obviously it doesn''t work for me... article.date_edited.to_formatted_s(:my_format_1) produce a default formatted date, not the one I''ve defined in environment.rb : ActiveSupport::CoreExtensions::Date::Conversions::DATE_FORMATS.merge!(
2006 Mar 26
4
A unit test that should pass
Hi, I wonder why this unit test fails. The model : class Article < ActiveRecord::Base set_table_name "publish_articles" belongs_to :category validates_presence_of :title, :excerpt #snip end The test : def test_validate @article.title = nil @article.excerpt = nil assert !@article.save assert_equal 2, !@article.errors.count end !@article.errors.count returns
2016 Jul 28
2
Eliminar filas al principio y final de un .csv en R
...bloque dos. Vuelves a iterar en > el bucle y al encontrar nuevamente la línea en blanco, salvas (añadiendo) > las líneas en el fichero anterior. > > Saludos, > Carlos Ortega > www.qualityexcellence.es > > > > El 28 de julio de 2016, 13:53, Joan Giménez Verdugo <joan.gimenez en csic.es> > escribió: > >> Hola a todos, >> >> tengo 170 .csv donde tengo que eliminar las primeras 20 lineas (primer >> bloque) y luego todo un último bloque de datos (tercer bloque) que está >> separado por dos filas sin datos del segundo bloque (que es el...
2006 Mar 30
5
Re: How to Password Protect a Controller
Sure, have a look to the login generator (gem install login_generator) -, then script/generate It''s very easy to use. -- Posted via http://www.ruby-forum.com/.
2019 Mar 12
2
Reordenar una matriz con caracteres en cada celda
...e1 Specie2, NA, 5(4-6) , 5(2-6) Specie3, 10(5-15) ,NA, 2(1-3) Specie1, 3(1-4), 8(6-9) , NA Muchas gracias. Joan -- *Joan Giménez, PhD* *Postdoctoral Researcher* Institut de Ciències del Mar (ICM-CSIC) Passeig Maritim 37-49 E-08003 Barcelona (Spain). www.icm.csic.es --- Personal website: http://gimenezverdugo.wixsite.com/joangimenez Research Gate: Joan Giménez <https://www.researchgate.net/profile/Joan_Gimenez2> Phone: +34 619 176 849 ü Please consider the environment before printing this E-mail [[alternative HTML version deleted]]
2005 Aug 07
7
Xen 3.0 Dom0 Smp enable?
I have a 2 way machine. Soliciting folks opinion on whether it makes sense to smp enable DOM0 so that IO handling can be balanced over both CPU''s... Opinions? Thanks, Scott _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
2016 Jul 28
2
Eliminar filas al principio y final de un .csv en R
...racias de antemano. Joan -- *Joan Giménez Verdugo* *PhD Student* *Severo Ochoa* Estación Biológica de Doñana (EBD-CSIC) Department of Conservation Biology Americo Vespucio Ave, s/n 41092 Sevilla (Spain) www.ebd.csic.es --- Research Gate: Joan Giménez <https://www.researchgate.net/profile/Joan_Gimenez2> Phone: +34 619 176 849 ü Please consider the environment before printing this E-mail [[alternative HTML version deleted]]
2006 Apr 01
1
set_table_name and fixtures
Hello, I''ve encountered a fixtures really frustrating bug : model, YAML file and db table names must be the same because of the fixture library ignoring the set_table_name provided in the model. Is there anything to do ? Thanks -- Posted via http://www.ruby-forum.com/.
2006 Mar 24
2
before_destroy not called
Hello, I''m trying to intercept delete call in my model but before_destroy callback is never called... Somebody knows why ? Thanks The controller : def delete Image.delete(params[:id]) redirect_to :action => "list" end The model : class Image < ActiveRecord::Base set_table_name "publish_images" belongs_to :article before_destroy :on_destroy
2006 Mar 25
3
RAILS_ROOT Help Required!
Hi, I am new over here and also a newbie for Ruby on Rails. I am working on a simple webapp for my band work. I have created a upload controller/model and database which allows to save my files in the directory at /public/dump/. Uploading works but I can''t retrieve it. I have tried several ways. The model uses DUMP_PATH = RAILS_ROOT + "/public/dump" to save the file. But
2006 Mar 27
3
RMagick and thumbnails
I''ve based my code on the Agile example for uploading files, pages 362-365. I''ve successfully loaded the Picture object to the database, but I come unstuck when trying to replicate this for a thumbnail version of the original image: thumbnail = Thumbnail.new thumbnail.name = ''thumbnail_'' + @picture.name.to_s
2006 Mar 29
2
Migration fails when using certain table name
I''m trying to do this migration, but it fails when I try to create a default content using Section.create I get an error saying ''unitialized contant Section'' The weird thing is if I use a table name like ''categories'' with Category.create instead of ''sections'' and Section.create then it all works fine! I''m working from
2008 Oct 22
3
Rake task vs script/runner
Hello, until now I allways used script/runner for running Rails cron jobs I wonder is there is any benefit (except not having any fake runner model in the models directory) to use a rake task instead in lib/tasks Thanks -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups
2007 Oct 15
0
Fwd: Content filtered message notification
...get a controller instance AFTER the first request (the @controller does not exist as in functionnal tests), so stubbing can''t work here. But today, I''ve rewritten the integration test and I no more need to stubs the login method, I followed the right path ;-) Regards Christophe Gimenez -- James. http://blog.floehopper.org http://tumble.floehopper.org
2006 Mar 25
67
Your Ruby IDE
Just a poll here i am looking for a good IDE for rails and wondering what you guys use? features i like in an ide code highlites auto code complete file browser Currently i am using dreamwever but the code highliting is really bad its also a pain to set up other doucment types such as .yml data config. -- Posted via http://www.ruby-forum.com/.
2006 Mar 27
14
Image manipulation/resizing server-side?
I''d like to implement a system in a Rails app where I allow the user to upload an image file, and then the app takes that image and manipulates it, saving a thumbnail, small, and original size version of the file to the server. How would I go about doing that? Thanks, Jeff -- Posted via http://www.ruby-forum.com/.
2006 Mar 25
0
How to display validation error in layout ?
Hi, for now I have to put error_messages_for in every form off my app to display validation errors. I would prefer putting an error div into the layout of the app, which would display both flash notice and validation errors accordingly for every view of the app. How can I retrieve all the errors message pending and not only the one for a specific object instance ? Thanks -- Posted via
2006 Mar 26
0
Another test problem
I hope there''s not a typo this time ;-) With self.use_instantiated_fixtures = false in test_helper.rb (default since 1.0 version) I want on demand instances. This @publish_articles[''article_linux''] return a Fixture object (breakpointed, I see the data of fixture fields). So I assume that publish_articles is well populated with fixture datas This assert_equal
2006 Mar 27
0
Where is ActionController::TestRequest documentation ?
Hi, I didn''t found any doc about this class - I''m looking for a solution to include a multipart uploaded file in a post request for testing purpose. How can I do ? Thanks -- Posted via http://www.ruby-forum.com/.
2015 Nov 23
2
Model averaging en R
...n me puede ayudar? Joan -- *Joan Giménez Verdugo* *PhD Student* *Severo Ochoa* Estación Biológica de Doñana (EBD-CSIC) Department of Conservation Biology Americo Vespucio Ave, s/n 41092 Sevilla (Spain) www.ebd.csic.es --- Research Gate: Joan Giménez <https://www.researchgate.net/profile/Joan_Gimenez2> Phone: +34 619 176 849 ü Please consider the environment before printing this E-mail [[alternative HTML version deleted]]