similar to: Mapping/Routing: connecting ?lang=de to blah.org/de?

Displaying 20 results from an estimated 3000 matches similar to: "Mapping/Routing: connecting ?lang=de to blah.org/de?"

2006 Mar 03
7
Best Practices question regarding views & controllers
Hi List! I''m reading the Agile book, as many online articles as I can, but there''s still some things that are just too hard to answer for yourself. In building my application, I often find myself putting code into my views of which I am not quite certain it belongs there. Where do you usually draw the line? Is it okay to, say, loop through an array of hashes that represents
2006 May 02
10
[OT]: Asking questions on this list
Hi List, it appears that for the third or fourth time now, I''ve asked a question that nobody seems to respond to. Other questions (often things that could quite easily have been extracted by searching with Google or from api.rubyonrails.org) are answered almost momentarily. I''ve to admit I''m more than a little frustrated by this, so have to ask myself if it was my own
2006 Mar 03
17
RCSS problems
Hi List! Following http://rcss.rubyforge.org/files/README.html, I''m trying to get RCSS to work with Rails. The rcss command itself works fine, but when trying to access http://localhost:3000/rcss/test.css I always get "Unknown action - No action responded to test.css", which I don''t understand since the route and controller are in place. Anyway, hopefully this is
2006 Mar 22
9
Setting empty fields with in_place_editor_field
Hi all! Playing around with in_place_editor_field, I found that when you set a field to be empty, you can''t edit it at all anymore after that. Am I doing something wrong or is this the way it is intended to be? If so, is there any way around that behaviour? Is it just styling? Best regards, Raphael -- Posted via http://www.ruby-forum.com/.
2006 May 01
1
i18n: duplicate message definition
Okay, this internationalization stuff with gettext is driving me nuts. "duplicate message definition" all over. Searching Google brings up lots of info that there may not be duplicate message ids, oh wonder. Nobody on IRC knows anything about it. One guy has had the problem, there''s a transcript on rails-weenie''s website, but no answer. PLEASE, HELP! -- Raphael
2006 May 02
16
no one cares about i18n (was [OT]: Asking questions on this list)
Do most others in the community agree with this statement? It seems to me that i18n is: 1. Actually important to many people 2. Not really the difficult to implement in concept 3. Something that people like to point out about Rails to say it''s not ready foir "Enterprise" It seems to be that a big part of Rails is encouraging people to do things the "Right Way",
2006 Mar 15
4
[NQ] How to set an initial FK for a new item of something?
Hi all, running into a little problem here. I''ve a list of things with a "New thing" link beneath it. When you click that link, obviously, a new thing shall be created. Now, that works pretty fine for things that don''t have foreign keys, but for things that do it crashes, since there is not yet a thing.other_thing.name available. I suspect you can somewhere in
2006 Mar 19
38
Macbook for Rails Development
Hi All, I''ve finally got fed up of struggling with Windows and am on the verge of splashing out on a Macbook for Ruby/Rails development. I''ve seen DHH''s post about it on loudthinking but I wondered if anyone else has any more wisdom... Is it worth it over a powerbook? Any tips on good OSX apps for Rails dev (textmate, i know already)? Anything not working well on
2007 Nov 08
4
vectorize a list
Dear R user Suppose I have the following list: > f <- rnorm(2) > s <- rnorm(3) > l <- list(f,s) > l [[1]] [1] 0.31784399 0.08575421 [[2]] [1] -0.6191679 0.7615479 -1.0087659 Can I stack the entries of this list in 1 vector with the first list entry followed by the second? The reference manual says that I can use the command /stack/, which can take as arguments
2005 Oct 03
3
Save output
Dear R-Mastermind Within a while or a for-loop, is there a way that I can save to disk the results of the previous calculations at the end of each loop with filenames called "file01.Rdata", "file02.Rdata" etc? So far, I have tried to write the outcome of each loop in a 3 dimensional array and saved it just once after the loop. Or is there another way so that I can keep
2006 May 17
1
rails will page cache all actions but one....why?
I have page caching turned on for all actions in my controller (pragmatic is it''s name). Rails will cache each actions except for one. I''ll list the three ways this action can be called. It is only cached one of the ways. Can somebody help? http://www.recentrambles.com/pragmatic/index - This will not cache httphttp://www.recentrambles.com/pragmatic This will not
2010 Jan 09
3
string functions
Hi! Does anybody know a string function that would calculate how many characters two strings share? I.e. ("Hello World","Hello Peter") would be 7. Thanks. Laetitia
2006 May 10
3
NumbersToWords
= numbersToWords - convert your integers and floats to english or japaneese words,or translate it into american currency - This plugin was created from a solution to the ruby quiz (english numbers) by Matthew D Moss. I modified the code to work as a rails plugin and added the to_dollars method. - the to_dollars method will work with integers and floats - the to_english and to_japaneese methods
2006 May 23
7
how to pull text from database and eval it?
I''m trying to add some executable code to my blog posts. How can I include this inside of a blog post and eval it? Charlie bowman http://www.recentrambles.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060523/a3536408/attachment.html
2006 Apr 29
1
Caching foor starters
Hi there... I have some experience in building web applications but all of them have been intranet apps so I have never had to think about things like caching. Actually my experience with caching has more been in the area of removing it since it just gets in the way for a intranet app with 10-100 users. But now I am writing a site which might stand or fall by the quality of it''s
2006 Feb 26
3
how to format and syntax highlight code in html
I''ve written my own blog (I know typo is better, but I wanted the experience of writing my own) and I want to add syntax highlighting to it. I''ve read about using the ruby gem syntax but I can''t figure out how to implement it. I''ve also wondered if it could be used in my case. How does it work when you have a long line of code but the <div> your
2006 May 29
4
Prompting user to enter value to feed Find
Hi, While viewing part of a long list of records, the user may want to do a Find of a specific record (for example, find_by_name). The found record is then displayed using the list view. I''ve searched the wiki and couldn''t find a sample or information that will help directly in implementing this function. Any pointers? Thanks! gk -- Posted via http://www.ruby-forum.com/.
2005 Sep 22
2
R: extracting elements in a matrix
Dear R-users For a given matrix of dimension, say (n,p), I'd like to extract for every column those elements that are bigger than twice the interquartile range of the corresponding column. Can I get these elements without using a loop? Thank you for your help Frank [[alternative HTML version deleted]]
2006 Aug 22
3
How to interrupt running computation?
If I start a computation in R, how can I interrupt it? I' using R 2.1.0. Thanks for your help, Lothar
2007 Apr 16
2
MultiLingual option for site with Rails
Hi, I was wondering if there is a plugin or a code snippet, that would translate the static content [possibly dynamic too] on the website for the visitors coming from different geographical regions of the world. In one of my earlier projects, I used the plugin on Joomla [CMS] that auto translates the content. Here is the site, the plugin is at the left bottom. http://www.elixirco.com/ Any