similar to: Puzzled with filters

Displaying 20 results from an estimated 400 matches similar to: "Puzzled with filters"

2006 May 03
8
Subversion and tmp directory in Rails 1.1 project
Hello everyone! I''m thinking of the right way to store tmp/ directory of Rails 1.1 project in Subversion. It has cache, session and sockets subdirectories. To me, it looks good to have svn delete tmp/* svn propset svn:ignore "*" tmp So it will ignore all directories and files in tmp/. Even if you create sessions/ and put some files in it, tmp/ content is still ignored. But
2006 May 08
6
how to make field in model immutable after create
Hello everyone! I want to have login field in User model which is set only once (on create), and then it should fail validation if the value is changed. How can I do this? I dig around for validation and tried def after_validation_on_update unless User.find_by_login(:login) errors.add(:login, "is immutable. You can''t change it") end end in model, but somewhat it
2006 Apr 13
3
Offsite Job
Hello I am looking for a RoR developer to work from home/their location. I would require 20-30 hrs of assistance every week. Interested developers may kindly send your resume to nakshsys@gmail.com with their hourly rate. Best -- Posted via http://www.ruby-forum.com/.
2006 Mar 20
5
Google AdSense question to Rails community
Hello everyone! I''m not sure if it''s right place to ask, but what is your experience with google adsense? I plan to implement free web service for community and would like to cover hosting costs. Is adsense worth the hassle? olegf
2006 Apr 28
1
how do I test links in templates?
Hello everyone! Sorry, if it''s stupid question, but I can''t figure out how to do this. I have a set of statements, for example, ''login page should have a link to register new user'' and ''login page should have a link to password recovery''. How do I transform it into tests? Where it should go? It does not look like functional tests or
2006 Apr 10
6
detecting browser type?
I''m wondering how i can detect the browser type for the client. I know this is possible, but i cant seem to find how to do this, nor any example code for this. I would appreciate if someone could point me to some info or just give me an explanation. thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL:
2007 Jul 14
2
Using Helpers inside a Controller
I want to use helpers inside a controller method for an AJAX application. After the page is loaded and displayed, there will be an asynchronous javascript request to load additional resources such as html forms and other data. The controller which handles the request will collect the resources and send them back in json format. def get_resources data=Hash.new data[:form1]=form_helper1()
2006 Jan 16
42
Linux Suggestions
I''m fairly new to Ruby & Rails and I come from a stricly M$ background. I''m trying to move into the world of open source, but I don''t have a good roadmap. I''m starting to develop a Rails-based product and I want to have the option to distribute it to non-hosted customers. So I''ve said all that to say this... I want to learn how to setup linux and
2005 Dec 25
2
Caching of models?
Hello, people! I have a problem. I googled, asked for help on IRC. I can''t find an answer. Suppose I have model Cart (from "Agile Web Development with Rails"). I added call to logger.warn("Some warning") to one of it''s methods. It fails with NameError, because ''logger'' is unknown to model. undefined local variable or method
2006 Mar 21
13
Double and single quote usage in AWDWR
Hello everyone! I''ve noticed, that the book uses double quotes almost everywhere. It is like <%= javascript_include_tag "prototype" %> I''ve checked the "programming ruby, 2ed" book and found that double quotes are most suited when escape sequences and substitutions are required. Isn''t it more semantically correct to write this code like
2010 Nov 09
2
new column from column in another df
If I have a data frame where a species occupies several rows with different phases such as (both col's ar factors): species,phase Populus tremula,1 Populus tremula,2 Populus tremula,3 Calluna vulgaris,1 Calluna vulgaris,2 Betula alba,1 Betula alba,2 Betula alba,3 Primula veris,1 Primula veris,2 and another df where each species only have one row: species,growth_form Populus tremula,tree Acer
2011 Feb 02
3
reshape data, adding rows to dataframe
Hello everyone, I have a data set like this: > head( fish_transect) ID_TRANSECT ID_PROJECT DE_ZONE DE_LOCALITY DE_SECTOR MES 1 42 MB Tarragona Creixell Control I 9 2 42 MB Tarragona Creixell Control I 9 3 42 MB Tarragona Creixell Control I 9 4 42 MB Tarragona Creixell Control I 9 5 42
2012 Sep 10
2
how to create a segplot in black and white?
Hi to all I hope you can help me. # I'm trying to plot the following ratio data with standard error bars (horizontal). ratioBiomass <- c(1.327, 0.865, 1.900, 0.992, 1.469, 1.381, 1.230,1.269, 2.411, 1.288, 1.861, 0.714, 1.341, 1.362, 1.065, 2.374) SEratio <- c(19.28, 5.04, 0.01, 0.01, 0.90, 0.02, 0.002, 11.37, 0.004, 0.29, 0.003, 0.13, 0.21, 0.52, 1.66, 14.57) Species <-
2006 Apr 14
2
Language setting before routing?
When processing a request, where can you obtain the language setting of a user''s browser? I know we can read @request.env["HTTP_ACCEPT_LANGUAGE"] in an action easily. But I need to access it before being routed to a controller''s action... because the accepted language dictates my app''s language setting programmatically and what action to take.
2011 Jan 19
2
count of factors
Hello everyone, I have a data set like this: > head( fish_transect) ID_TRANSECT ID_PROJECT DE_ZONE DE_LOCALITY DE_SECTOR MES 1 42 MB Tarragona Creixell Control I 9 2 42 MB Tarragona Creixell Control I 9 3 42 MB Tarragona Creixell Control I 9 4 42 MB Tarragona Creixell Control I 9 5 42
2006 Aug 17
1
Dovecot public folders ACL
Hi, all! I'm new to dovecot but trying to setup read-only public folders for different user groups. My goal is to create several public folder such as sales, operation etc with per user index. But I have some problem which I can't resolve with Google and Dovecot.Org. Now users can see and subscribe to test folder "share", but I can't block ability to delete messages via
2007 May 23
8
Rails Rendering diagnostics.rhtml in Controller Spec
Forgive me if this isn''t the proper list. It''s specific to the rSpec Rails plugin. The problem is, some controller actions are rendering the "diagnostics.rhtml" template when I''m expecting it to render something else in a controller spec. I''m assuming this is the template that displays the error message and a stack trace when an error is raised in the
2007 Oct 04
5
Specs and Libs
How would I go about writing specs for a lib, particularly one with all protected and private methods. I''m trying to spec the AuthenticatedSystem library from the rails restful_authentication plugin: http://pastie.caboo.se/103625 Also, when you''re mocking objects, a side-effect is helping you define the api of the object. Is there a way to get all the behaviors that
2006 Mar 19
2
How to create a proper name for the diff for the RoR patch?
Hello, http://dev.rubyonrails.org/wiki suggests to: Create a patch with your changes: svn diff > my_properly_named_patch.diff but how this proper name looks like? olegf
2015 Jan 14
3
Abreviado de especies
Hola, Vaya desastre al mandar la cabecera de la base de datos. Al enviarlo, se veía bien, pero está visto que por el camino la cosa se torció. Siguiendo el consejo de Javier, he subido un pequeño fragmento al DropBox. He quitado algunas especies para no hacerlo muy largo. Espero que ésta vez no haya problemas. https://www.dropbox.com/s/q7zla50oq7owg8k/CPUE.csv?dl=0 Un saludo y gracias Juan