[Rails] Re: RESTful design

2009-10-01 Thread Brian Hogan
No, it doesn't necessarily need more actions. Changing the product's price? that's an update Changing its on-hand quantity? That's an update Changing it's availability? That's an update. You may opt to have two controllers for your products... one for the public pages where the products are

[Rails] Re: Any way to avoid instantiating a class twice?

2009-10-01 Thread Brian Hogan
Persist that information to some other storage engine on your server, per user. The database is the first place I'd think of. Using database sessions removes the session limit. However, look into Memcached, MongoDB, CouchDB, and other options. They're pretty cool. Also, maybe have someone else

[Rails] Re: collection_select default selected value

2009-10-01 Thread Lisa Lee
Thanks for the link Zt Di. @selected_state = state_id.to_i works. This is because state_id = params[:state][:state_id] returns a string. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[Rails] ActiveResource and validation errors

2009-10-01 Thread lathiat
Howdy All, I am trying to implement a fairly simple REST controller which I am then interfacing with ActiveResource. The problem I am having is when the validation fails, the errors are not being returned to the model on the ActiveResource style in a way I can access. I am running Rails 2.3.4

[Rails] Generating new div when link is clicked

2009-10-01 Thread ryan8720
Hi everyone, I'm new to rails, and I've got my application up and running. Now I'd like to add a function that I haven't been able to find information on. Basically, I start with a form that asks the user to input the number of widgets of some type they have. For example ( is a

[Rails] Ruby On Rails Developer - West Chester, PA

2009-10-01 Thread Jason
Summary: Primary responsibilities include the development of EMS tool and integrations amongst them. This role requires a strong development background, the ability to set and deliver against deadlines, a basic understanding of EMS technologies and concepts, and the ability to work effectively

[Rails] Problem with git remote repository

2009-10-01 Thread ratnik
Hello I have a problem accessing remote git repository located on Linux machine in my local network. I performed the following steps: - firstly setup the remote repository on my Linux machine: $ mkdir /root/projects/test/.git $ cd /root/projects/test/.git $ git init —bare Initialized empty

[Rails] Beginning Rails development without internet

2009-10-01 Thread Zak Strassberg
When I told some web developer friends that I was going to try to learn Rails while taking a year off before college (when I would have very little internet), they were a little concerned, saying that it was almost essential to get advice from more experienced developers to really understand the

[Rails] StyleSheets on Ruby on Rails

2009-10-01 Thread metdos
I'm making some changes on Redmine Project on my local, I need to alter appearance, so I changed application.css, then I realized that I need changes in only some views, so let application.css to be same, but I copy my modified version to applicationNewIssueForm.css and I added %=

[Rails] Re: ScITE Question

2009-10-01 Thread D.G.
SciTE is a wonderful ide, unfortunately it does not take well to input in its output panel. While the output panel can handle plenty of shell commands, in general it was not implemented in SciTE to handle many input situations, not just the ones that ruby presents. After spending many cumulative

[Rails] Re: Find conditions

2009-10-01 Thread Frederick Cheung
On Oct 1, 6:27 am, Greg King rails-mailing-l...@andreas-s.net wrote: I'm rails a newbie: I have a form setup where users selects datetime, the datetime serves the purpose of allowing the user to specify when the entry expires.  In efforts to filter entrys that have an earlier datetime than

[Rails] Re: Cycle/Partials issue

2009-10-01 Thread Jacob Helwig
On Wed, Sep 30, 2009 at 11:45, Shaun Pearl rails-mailing-l...@andreas-s.net wrote: Thanks :) The link is greatly appreciated! But I was hoping for a solution from within rails really, mainly for my learning purposes, I apprecaite doing it that way isn't really going to cause any harm, but

[Rails] Re: What is the Ruby on Rails equivalent to php includes?

2009-10-01 Thread Colin Law
2009/10/1 Robert Walker rails-mailing-l...@andreas-s.net: Mauricio Szabo wrote: But if you require 'open-uri': require 'open-uri' = true open(http://example.com/;).read = HTML\r\nHEAD\r\n  TITLEExample Web Page/TITLE\r\n/HEAD \r \nbody  \r\npYou have reached this web page by

[Rails] Re: Beginning Rails development without internet

2009-10-01 Thread Colin Law
2009/9/30 Zak Strassberg moomoothe...@gmail.com: When I told some web developer friends that I was going to try to learn Rails while taking a year off before college (when I would have very little internet), they were a little concerned, saying that it was almost essential to get advice from

[Rails] Community Engine

2009-10-01 Thread Smit Shah
Hi All... Is any one have ever used communityengine plugin? If yes than tell me the best site that provides the complete information about implementing the same... Thanks all.. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this

[Rails] Paperclip + asset_host uploading to external URL

2009-10-01 Thread James West
I would need to be able to upload images to an external URL I know S3 is an option but there are better image hosts out there for my requirements and one in particular I would like to make use of. I'm thinking that I could use asset_host to determine the url and path but I can't seem to make

[Rails] CSS issue with div fieldWithErrors

2009-10-01 Thread Fernando Perez
Hi, What's the correct way of writing a form? I do the following: %= form_for ... % p %= f.label :whatever % %= f.text_field :whatever % /p %- end -% Then I do some CSS to have all the labels aligned, and all the input fields aligned. The problem happens when a field is not valid, Rails

[Rails] Re: RESTful design

2009-10-01 Thread Pål Bergström
Brian Hogan wrote: Hope that helps some. It does. Thanks :-) -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email

[Rails] Re: CSS issue with div fieldWithErrors

2009-10-01 Thread Fernando Perez
Ok I found a fix: put that in an initializer: ActionView::Base.field_error_proc = Proc.new do |html_tag, instance| span class=\fieldWithErrors\#{html_tag}/span end -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message

[Rails] Safari uploads fail, FF works

2009-10-01 Thread Fernando Perez
I am experiencing a very painful problem. When I upload a file to my rails app which uses paperclip, using Safari, the upload fails with a the server unexpectedly dropped the connection error. Using FF it works perfectly well. What's going on? Am I the only seeing that weird behavior? How to

[Rails] Re: Generating new div when link is clicked

2009-10-01 Thread Sijo Kg
Hi You have to understand any ajax fashioned link One example link_to_remote http://api.rubyonrails.org/classes/ActionView/Helpers/PrototypeHelper.html#M001645 read it..Now also have a look at insert_html

[Rails] Re: Safari uploads fail, FF works

2009-10-01 Thread Peter De Berdt
On 01 Oct 2009, at 11:45, Fernando Perez wrote: I am experiencing a very painful problem. When I upload a file to my rails app which uses paperclip, using Safari, the upload fails with a the server unexpectedly dropped the connection error. Using FF it works perfectly well. What's going

[Rails] rails et amchart

2009-10-01 Thread Zied
hi everybody, I have a rails application and i want to use amchart, step by step, extracting data from my postgres database.. Can you help me please? Thanks :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby

[Rails] Re: Safari uploads fail, FF works

2009-10-01 Thread Fernando Perez
Thanks Peter, but the link is a year old, and rack should have been corrected since. Did the problem come back? Is it another bug in Ruby? I run: ruby 1.8.7 (2008-08-11 patchlevel 72) -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received

[Rails] Problem with environment

2009-10-01 Thread Roman Kononov
I've got 2 different servers, list of gems,version of ruby are the same, difference only in unit test execution process on one server all works fine but on the other i have such kind of error (whire running unit tests) NoMethodError: undefined method `use_ssl' for #Net::HTTP **net:80

[Rails] .htaccess not working, redirect all requests to maintenance

2009-10-01 Thread Priya Saini
Hi All: I need to upgrade my ROR application and in the maintenance period i want all the pages(actions) to redirect to a maintenance(html) page. I tried several options in .htaccess but it looks as if .htaccess is not even getting used. Any help will be highly appreciated. TIA, Priya Saini --

[Rails] Re: Find conditions

2009-10-01 Thread Marnen Laibow-Koser
Frederick Cheung wrote: On Oct 1, 6:27�am, Greg King rails-mailing-l...@andreas-s.net wrote: I'm rails a newbie: I have a form setup where users selects datetime, the datetime serves the purpose of allowing the user to specify when the entry expires. �In efforts to filter entrys that have

[Rails] Re: SOAP Dates and Rails

2009-10-01 Thread Marnen Laibow-Koser
Aaron Broad wrote: Super improved: require 'date' require 'rubygems' require 'active_record' module RubyToJadeXML def jadexml self.strftime(fmt='%FT%T.000') end end DateTime.class_eval do include RubyToJadeXML end You don't need class_eval to reopen a class. Just use

[Rails] Re: CSS issue with div fieldWithErrors

2009-10-01 Thread Marnen Laibow-Koser
Fernando Perez wrote: Hi, What's the correct way of writing a form? I do the following: %= form_for ... % p %= f.label :whatever % %= f.text_field :whatever % /p %- end -% Then I do some CSS to have all the labels aligned, and all the input fields aligned. The problem

[Rails] Re: Generating new div when link is clicked

2009-10-01 Thread Marnen Laibow-Koser
ryan8720 wrote: Hi everyone, I'm new to rails, and I've got my application up and running. Now I'd like to add a function that I haven't been able to find information on. Basically, I start with a form that asks the user to input the number of widgets of some type they have. For

[Rails] Using Ruby on Rails to edit a script?

2009-10-01 Thread Sonix
Is ROR a good fit if I want to edit and expand on a developed script like RoundCube( http://roundcube.net/ )? I'm planing to edit it for my business as an order/transcript application. If anyone is interested this link is what I want to make. http://handoff.wordpress.com/

[Rails] Youtube

2009-10-01 Thread Prashu
Hi How to extract the youtube videos based on the key to the web page using ruby.So that what are the steps i have to take attaching videos to web page. Regards Vinu --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[Rails] Re: Using Ruby on Rails to edit a script?

2009-10-01 Thread Marnen Laibow-Koser
Sonix wrote: Is ROR a good fit if I want to edit and expand on a developed script like RoundCube( http://roundcube.net/ )? I'm planing to edit it for my business as an order/transcript application. RoundCube is written in PHP, not Ruby. You could certainly write something equivalent in

[Rails] Paperclip performance hit

2009-10-01 Thread Fernando Perez
Hi, In order to customize my app in a web admin page, I'd like to create an @application object that will be fetched from DB and hold various customization values, it will be fetched for each request. I'd like to add some files using that web admin and paperclip. Adding 4-5 has_attached_file

[Rails] Re: CSS issue with div fieldWithErrors

2009-10-01 Thread Fernando Perez
If that's ruining your design, then your CSS has problems. Nope. It is extremely common, to see forms created with p tags to separate each input. A div inside a p tag is not allowed by html standards, look for the internet, plenty people have this div problem. But you are right with tables,

[Rails] Re: CSS issue with div fieldWithErrors

2009-10-01 Thread Marnen Laibow-Koser
Fernando Perez wrote: If that's ruining your design, then your CSS has problems. Nope. Yup. It is extremely common, to see forms created with p tags to separate each input. A div inside a p tag is not allowed by html standards, look for the internet, plenty people have this div

[Rails] Re: StyleSheets on Ruby on Rails

2009-10-01 Thread bill walton
Hi, On Wed, 2009-09-30 at 23:15 -0700, metdos wrote: so let application.css to be same, but I copy my modified version to applicationNewIssueForm.css and I added %= stylesheet_link_tag applicationNewIssueForm % to views which I want to change. Unfortunately appearance of my views are not

[Rails] Routing/format (I'm lost.)

2009-10-01 Thread doug
I understand that the default Rails routing matches URLs with the form: /controller/action/id.format Default values exist for each of the parts to the right of the controller. I also understand that the default format is html. So, for example, the URL: /blog/read/23 would route a request to

[Rails] Re: Beginning Rails development without internet

2009-10-01 Thread Zak Strassberg
I just started Agile last night, and it seems good. Head First Rails was really good in getting me interested and not overwhelming me. Does Agile cover details about tests? I don't really understand how they work/how you build them, etc, and I can't look them up... On Oct 1, 3:30 am, Colin Law

[Rails] Re: Routing/format (I'm lost.)

2009-10-01 Thread Leonardo Mateo
On Thu, Oct 1, 2009 at 4:58 PM, doug ddjol...@gmail.com wrote: I understand that the default Rails routing matches URLs with the form: /controller/action/id.format Have you read this? http://guides.rubyonrails.org/routing.html Default values exist for each of the parts to the right of

[Rails] Re: Beginning Rails development without internet

2009-10-01 Thread Marnen Laibow-Koser
Zak Strassberg wrote: I just started Agile last night, and it seems good. Head First Rails was really good in getting me interested and not overwhelming me. Does Agile cover details about tests? I don't really understand how they work/how you build them, etc, and I can't look them up...

[Rails] Re: Beginning Rails development without internet

2009-10-01 Thread John Yerhot
On Oct 1, 10:13 am, Zak Strassberg moomoothe...@gmail.com wrote: I just started Agile last night, and it seems good. Head First Rails was really good in getting me interested and not overwhelming me. Does Agile cover details about tests? I don't really understand how they work/how you build

[Rails] Re: HELP FOR SEPARATING TIME

2009-10-01 Thread Rick
Model.find(:all, :conditions = {:time_field = (from..to)}) On Sep 30, 7:02 am, Newb Newb rails-mailing-l...@andreas-s.net wrote: Colin Law wrote: 2009/9/30 Brijesh Shah rails-mailing-l...@andreas-s.net: Hi Colin Conversion is required because passing value is string not datetime  ...

[Rails] Re: SOAP Dates and Rails

2009-10-01 Thread Rob Biedenharn
On Oct 1, 2009, at 8:28 AM, Marnen Laibow-Koser wrote: Aaron Broad wrote: Super improved: require 'date' require 'rubygems' require 'active_record' module RubyToJadeXML def jadexml self.strftime(fmt='%FT%T.000') end end DateTime.class_eval do include RubyToJadeXML end You

[Rails] Re: SOAP Dates and Rails

2009-10-01 Thread Marnen Laibow-Koser
Rob Biedenharn wrote: On Oct 1, 2009, at 8:28 AM, Marnen Laibow-Koser wrote: end end DateTime.class_eval do include RubyToJadeXML end You don't need class_eval to reopen a class. Just use class DateTime, same as if you were defining from scratch. Yes, the effect is the same.

[Rails] mongrel + mysql can't connect in custom mysql install

2009-10-01 Thread Cris Shupp
Hi all... The linux box I am working on I do not have root access to, and given I am at a government site all hope of that is lost. I have installed the mysql gem as follows: env ARCHFLAGS=-arch x86_64 gem install mysql --

[Rails] Re: How to get a nice url hierarchy with slugs and acts_as_tree?

2009-10-01 Thread Julien ramel
Hi Emmek, I never found anything really convincing to handle that, but facing the same problem I found some workaround. So first to get a slug, I use the plugin ActsAsUrlParam http://github.com/caring/acts_as_url_param I use it on a page model that uses a custom acts_as_tree (with dotted

[Rails] Re: How to get a nice url hierarchy with slugs and acts_as_t

2009-10-01 Thread Marnen Laibow-Koser
Emmek on Rails wrote: I have a model Page in my application that acts_as_tree. I want this model to keep whole structure of website. Then I would strongly suggest awesome_nested_set instead of acts_as_tree. It makes it possible to use the DB *much* more efficiently. I have some root

[Rails] Strange problem with and -

2009-10-01 Thread Yiannis
Hello I have a strange problem with this code: %unless (@students.empty? and params[:commit].nil?) % %=test% %= render :partial = 'results' % % end % Even though in some cases @students.empty? returns false and params [:commit].nil? returns true (or the opposite), it displays the test and

[Rails] Re: How to get a nice url hierarchy with slugs and acts_as_t

2009-10-01 Thread Marnen Laibow-Koser
Marnen Laibow-Koser wrote: Emmek on Rails wrote: I have a model Page in my application that acts_as_tree. I want this model to keep whole structure of website. Then I would strongly suggest awesome_nested_set instead of acts_as_tree. It makes it possible to use the DB *much* more

[Rails] Re: mongrel + mysql can't connect in custom mysql install

2009-10-01 Thread heimdull
That error looks more like a mysql gem and ruby 1.9 compatibility issue. Have a look at this site http://isitruby19.com/mysql that talks about issues with Ruby 1.9 On Oct 1, 9:41 am, Cris Shupp rails-mailing-l...@andreas-s.net wrote: Hi all... The linux box I am working on I do not have root

[Rails] Re: Strange problem with and -

2009-10-01 Thread Frederick Cheung
On Oct 1, 6:00 pm, Yiannis istoseli...@gmail.com wrote: Hello I have a strange problem with this code: %unless (@students.empty? and params[:commit].nil?)  % %=test% %= render :partial = 'results' % %  end % [snip] The only way it worked was this: %  unless @students.empty? % %

[Rails] Java Script

2009-10-01 Thread Satya
Hi I am new to this group, i heard that this is a dedicated group with java script experts. if this is true then i want to be part of this. Please make me your friend. -Satya --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[Rails] Re: CSS issue with div fieldWithErrors

2009-10-01 Thread PuddingandPie
How do you manage that? IE 5, 6 and 7 don't support the table element :P. If I had my choice, I'd use them too, but until IE 6 and 7 finally die... I can't do it! On Oct 1, 5:48 am, Marnen Laibow-Koser rails-mailing-l...@andreas- s.net wrote: Fernando Perez wrote: Hi, What's the correct

[Rails] Re: Rails server on linux

2009-10-01 Thread kitty00
Thank you for the clarification! On Sep 29, 4:52 pm, Greg Donald gdon...@gmail.com wrote: On Tue, Sep 29, 2009 at 3:41 PM,kitty00yanl...@gmail.com wrote: I don't know if Debian is better or CentOS is better. 99% of the software you find inside will be the same.  Every Linux distro uses the

[Rails] Re: Rails server on linux

2009-10-01 Thread kitty00
Thank you for the suggestion! I do prefer Debian as a server. On Sep 30, 3:05 am, Leonardo Mateo leonardoma...@gmail.com wrote: On Tue, Sep 29, 2009 at 10:41 PM,kitty00yanl...@gmail.com wrote: Hi, I am trying to decide which Linux OS to use to implement rails server. I don't know if

[Rails] Re: Strange problem with and -

2009-10-01 Thread E. Litwin
Change it to || (or). Try this in IRB: puts Render unless(true false) # Prints Render puts Render unless(true || false) # Does not print puts Render unless(false || true) # Does not print puts Render unless(true || true) # Does not print puts Render unless(false || false) # Prints render

[Rails] Backend game server.

2009-10-01 Thread WyattBiker
Hi, I have a game that I need to make a small backend game management server so that gamers can play against each other. My game is turn based and very little data goes across only 2 players per game but many games can be going on at once. Kind of like chess rooms. As you can imagine, events are

[Rails] Re: Java Script

2009-10-01 Thread Frederick Cheung
On Oct 1, 4:06 pm, Satya satya...@gmail.com wrote: Hi I am new to this group, i heard that this is a dedicated group with java script experts. This is a group about rails. There are many other groups dedicated to javascript and/or libraries written in javascript but this isn't one of them

[Rails] Re: Backend game server.

2009-10-01 Thread Peter De Berdt
On 01 Oct 2009, at 19:00, WyattBiker wrote: Hi, I have a game that I need to make a small backend game management server so that gamers can play against each other. My game is turn based and very little data goes across only 2 players per game but many games can be going on at once. Kind of

[Rails] Re: SQLite3::SQLException: id may not be null

2009-10-01 Thread Matt Jones
I'd say there's probably something wrong with your session table schema - is id declared as an autoincrement field? --Matt Jones On Sep 29, 10:34 pm, John Mark rails-mailing-l...@andreas-s.net wrote: I am getting the following error using sqlite3. If I ran the same query directly in sqlite3

[Rails] Re: Strange problem with and -

2009-10-01 Thread Jeffrey L. Taylor
Quoting Yiannis istoseli...@gmail.com: Hello I have a strange problem with this code: %unless (@students.empty? and params[:commit].nil?) % %=test% %= render :partial = 'results' % % end % unless both conditions are true, render the partial the equivalent is: if

[Rails] Re: CSS issue with div fieldWithErrors

2009-10-01 Thread Marnen Laibow-Koser
Josh Infiesto wrote: How do you manage that? IE 5, 6 and 7 don't support the table element :P. Of course they do. If I had my choice, I'd use them too, but until IE 6 and 7 finally die... I can't do it! Nonsense. On Oct 1, 5:48�am, Marnen Laibow-Koser rails-mailing-l...@andreas- Best,

[Rails] Problem with %=select%

2009-10-01 Thread Rafael Roque
Hi all, Today I have the following: %= select( x, Y, { = ,FOO = F ,BAR = B}) % Now I have to test each item in the hash against a determined condition and display only if the test returns true.How could I do that? -- Posted via http://www.ruby-forum.com/.

[Rails] Re: Routing/format (I'm lost.)

2009-10-01 Thread djolley
Have you read this? http://guides.rubyonrails.org/routing.html Yes, I have. However, because of your referral I have taken a fresh look. It is still none too clear to me. Here is what I get: The respond_to block allows us to assign separate action code and a separate response to each

[Rails] Re: Routing/format (I'm lost.)

2009-10-01 Thread Marnen Laibow-Koser
Doug Jolley wrote: Have you read this? http://guides.rubyonrails.org/routing.html Yes, I have. However, because of your referral I have taken a fresh look. It is still none too clear to me. Here is what I get: The respond_to block allows us to assign separate action code and a

[Rails] Re: Problem with %=select%

2009-10-01 Thread Marnen Laibow-Koser
Rafael Roque wrote: Hi all, Today I have the following: %= select( x, Y, { = ,FOO = F ,BAR = B}) % Now I have to test each item in the hash against a determined condition and display only if the test returns true.How could I do that? Hash#select() . Best, -- Marnen Laibow-Koser

[Rails] Timezone and tzinfo

2009-10-01 Thread tashfeen.ekram
since rails added timezone support and integrated tzinfo, is there a difference in usine TimeZone vs Tzinfo::Timezone? Is there a relationship between the two? Looking at the API docs there is more functionality in the latter. Thanks --~--~-~--~~~---~--~~ You

[Rails] want to jump/scroll to a certain row in a table

2009-10-01 Thread Matt
Hi This might be more of an HTML question but it could be because of an interaction with Rails that the solution I use right now is not working. I have tried several ways to jump/scroll to a certain row in a large table, I tried an event like div id=event#666 and use http://website#section#666

[Rails] Re: Problem with %=select%

2009-10-01 Thread Rafael Roque
Marnen Laibow-Koser wrote: Rafael Roque wrote: Hi all, Today I have the following: %= select( x, Y, { = ,FOO = F ,BAR = B}) % Now I have to test each item in the hash against a determined condition and display only if the test returns true.How could I do that? Hash#select() .

[Rails] how to make rails parse p, b, strong entered in text area?

2009-10-01 Thread Nik
Hello, I have this simple blog Post, I just want to jazz it up a bit with paragraphs, and bold faces, thought that wasn't too much to ask for. But when I enter the following in the text area strongYou won't believe this!!/strong and save submit it, and then display it in the show action,

[Rails] Re: Apache2.2 + what to get Rails

2009-10-01 Thread John
OK I am back with some better data. I have Apache2.2 set up with a VirtualHost for the Rails site and loading fcgid not fastcgi. Apache is sending all requests to the base URL to dispatch.fcgi and the Redmine site checks the db and loads very slowly without any CSS or Javascript. The Redmine

[Rails] Re: sqlite limit

2009-10-01 Thread Rajinder Yadav
On Wed, Sep 30, 2009 at 10:45 PM, kashyap ckkash...@gmail.com wrote: Hi All, I am working on a POC that I'd like to show a group of 10 to 15 folks. I was wondering if sqlite would do for db with about 20 people hitting on the application. Does sqlite locking the entire db while writing

[Rails] Re: Strange problem with and -

2009-10-01 Thread JohnDel
Oops! Yes indeed I need an or instead of and, how I missed that?? :) Thank you all for your help and the advices! On Oct 1, 8:31 pm, Jeffrey L. Taylor r...@abluz.dyndns.org wrote: Quoting Yiannis istoseli...@gmail.com: Hello I have a strange problem with this code: %unless

[Rails] Re: how to make rails parse p, b, strong entered in text area?

2009-10-01 Thread jemminger
What version of Rails are you using? I seem to remember discussion of auto-escaping by default in v3, but to my knowledge and testing this is not the case as of 2.3.4. Check to make sure that your data is not html-escaped in the database. --~--~-~--~~~---~--~~

[Rails] Re: Routing/format (I'm lost.)

2009-10-01 Thread Leonardo Mateo
On 10/1/09, djolley ddjol...@gmail.com wrote: Have you read this? http://guides.rubyonrails.org/routing.html Yes, I have. However, because of your referral I have taken a fresh look. It is still none too clear to me. Here is what I get: The respond_to block allows us to assign separate

[Rails] Re: want to jump/scroll to a certain row in a table

2009-10-01 Thread jemminger
You're just using the wrong syntax. Use id=event666 and link to it like http://some/url#event666 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to

[Rails] Installing RMagick on UBUNTU 9.04

2009-10-01 Thread techtimer
I installed ImageMagick 6.5.6 and all seems to be installed ok. I downloaded ImageMagick 6.5.6 I entered $ ./configure and everything seems OK. When I enter $ identify -version I get Version: ImageMagick 6.5.6-6 2009-09-30 Q8 OpenMP http://www.imagemagick.org Copyright: Copyright (C)

[Rails] Re: Problem with %=select%

2009-10-01 Thread Marnen Laibow-Koser
Rafael Roque wrote: Marnen Laibow-Koser wrote: Rafael Roque wrote: Hi all, Today I have the following: %= select( x, Y, { = ,FOO = F ,BAR = B}) % Now I have to test each item in the hash against a determined condition and display only if the test returns true.How could I do that?

[Rails] Re: sqlite limit

2009-10-01 Thread Marnen Laibow-Koser
kashyap wrote: Hi All, I am working on a POC that I'd like to show a group of 10 to 15 folks. I was wondering if sqlite would do for db with about 20 people hitting on the application. Does sqlite locking the entire db while writing manifest itself in such scenario? From what I understand,

[Rails] Re: Apache2.2 + what to get Rails

2009-10-01 Thread Marnen Laibow-Koser
John wrote: [...] other Rails apps ( simple hello world works in present config) Then perhaps this *is* a Redmine issue. well, here's my logic: a simple hello world rails app works, but it doesn't have complex routes or stylesheets or javascript files, It *does* have stylesheets and

[Rails] Re: Apache2.2 + what to get Rails

2009-10-01 Thread Marnen Laibow-Koser
John wrote: OK I am back with some better data. I have Apache2.2 set up with a VirtualHost for the Rails site and loading fcgid not fastcgi. Apache is sending all requests to the base URL to dispatch.fcgi and the Redmine site checks the db and loads very slowly without any CSS or Javascript.

[Rails] Re: Rails server on linux

2009-10-01 Thread Fernando Perez
I've had some problems with Debian and Ubuntu in what comes to the version of the rubygems package. Usually it's outdated and if you need too new gems versions you will have problems. Install rubygems manually, always, period. I think Apache + Passenger is the best choice. Nginx +

[Rails] Re: Problem with environment

2009-10-01 Thread jemminger
require 'net/https' ... or else sounds like maybe ruby wasn't compiled with SSL support. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to

[Rails] Re: Rails server on linux

2009-10-01 Thread Marnen Laibow-Koser
Fernando Perez wrote: I've had some problems with Debian and Ubuntu in what comes to the version of the rubygems package. Usually it's outdated and if you need too new gems versions you will have problems. Install rubygems manually, always, period. I don't seem to recall any problems on

[Rails] Re: Strange problem with and -

2009-10-01 Thread Colin Law
2009/10/1 JohnDel istoseli...@gmail.com: Oops! Yes indeed  I need an or instead of and, how I missed that?? :) Thank you all for your help and the advices! I think Jeffrey is right, unless with complex logic is just too difficult for most of us to get our brains round easily. I avoid it

[Rails] Re: Any way to avoid instantiating a class twice?

2009-10-01 Thread jemminger
Is there any way around this situation?  Is there some way to keep the instantiated class alive so it can be used in subsequent actions? Sure, for the non user-specific parts, you can lazy-load and cache: class Expensive def self.share_me @some_val ||= expensive_calculation end

[Rails] Re: Rails server on linux

2009-10-01 Thread Greg Donald
On Thu, Oct 1, 2009 at 2:50 PM, Marnen Laibow-Koser rails-mailing-l...@andreas-s.net wrote: I'll try that sometime.  For the second time in this thread, though: why is Nginx better?  Just speed? It's the fastest I've ever used. Resource usage? It uses the least memory of anything I've tried

[Rails] Re: want to jump/scroll to a certain row in a table

2009-10-01 Thread Colin Law
2009/10/1 Matt mattbog...@gmail.com: Hi This might be more of an HTML question but it could be because of an interaction with Rails that the solution I use right now is not working. I have tried several ways to jump/scroll to a certain row in a large table, I tried an event like div

[Rails] Re: Strange problem with and -

2009-10-01 Thread Greg Donald
On Thu, Oct 1, 2009 at 2:52 PM, Colin Law clan...@googlemail.com wrote: I think Jeffrey is right, unless with complex logic is just too difficult for most of us to get our brains round easily. You just insulted thousands of Perl programmers. But seriously.. it's just the opposite of if. --

[Rails] Re: Timezone and tzinfo

2009-10-01 Thread tashfeen.ekram
Looking around it seems like TimeZone is the calss to use at least for storing timezones to make time displays in user's local zone. On Oct 1, 2:49 pm, tashfeen.ekram tashfeen.ek...@gmail.com wrote: since rails added timezone support and integrated tzinfo, is there a difference in usine

[Rails] Re: want to jump/scroll to a certain row in a table

2009-10-01 Thread Greg Donald
2009/10/1 Matt mattbog...@gmail.com: I have tried several ways to jump/scroll to a certain row in a large table, I tried an event like div id=event#666 and use http://website#section#666 I inserted the div with the even before the tr and after it, both did not work I've started using this

[Rails] Re: Strange problem with and -

2009-10-01 Thread Colin Law
2009/10/1 Greg Donald gdon...@gmail.com: On Thu, Oct 1, 2009 at 2:52 PM, Colin Law clan...@googlemail.com wrote: I think Jeffrey is right, unless with complex logic is just too difficult for most of us to get our brains round easily. You just insulted thousands of Perl programmers. But

[Rails] erb question

2009-10-01 Thread spokra
I currently have a page controller that gets html content from the DB and then renders it. is there a way to use ERB to pre process the html and make it rhtml? allowing me to post more dynamic content.. --~--~-~--~~~---~--~~ You received this message because

[Rails] Re: mongrel + mysql can't connect in custom mysql install

2009-10-01 Thread Cris Shupp
I just tried with 1.8.7. Same results. It is not a 1.9 issue. Cris heimdull wrote: That error looks more like a mysql gem and ruby 1.9 compatibility issue. Have a look at this site http://isitruby19.com/mysql that talks about issues with Ruby 1.9 On Oct 1, 9:41�am, Cris Shupp

[Rails] Re: want to jump/scroll to a certain row in a table

2009-10-01 Thread Marnen Laibow-Koser
Matt wrote: Hi This might be more of an HTML question but it could be because of an interaction with Rails that the solution I use right now is not working. I have tried several ways to jump/scroll to a certain row in a large table, I tried an event like div id=event#666 and use

[Rails] Re: Rails server on linux

2009-10-01 Thread Marnen Laibow-Koser
Greg Donald wrote: On Thu, Oct 1, 2009 at 2:50 PM, Marnen Laibow-Koser rails-mailing-l...@andreas-s.net wrote: I'll try that sometime. �For the second time in this thread, though: why is Nginx better? �Just speed? It's the fastest I've ever used. Resource usage? It uses the least

[Rails] Re: erb question

2009-10-01 Thread Marnen Laibow-Koser
spokra wrote: I currently have a page controller that gets html content from the DB and then renders it. is there a way to use ERB to pre process the html and make it rhtml? I suppose so, but this is a bad idea from a security point of view. It's too easy for someone to put into the DB a

[Rails] Re: how to make rails parse p, b, strong entered in text area?

2009-10-01 Thread Nik
Hi Jemminger, I am using 2.3.2 On Oct 1, 12:31 pm, jemminger jemmin...@gmail.com wrote: What version of Rails are you using?  I seem to remember discussion of auto-escaping by default in v3, but to my knowledge and testing this is not the case as of 2.3.4. Check to make sure that your data

[Rails] Re: how to make rails parse p, b, strong entered in text area?

2009-10-01 Thread Nik
oh yes and the database is mysql that comes with instantrails 2.0 On Oct 1, 12:31 pm, jemminger jemmin...@gmail.com wrote: What version of Rails are you using?  I seem to remember discussion of auto-escaping by default in v3, but to my knowledge and testing this is not the case as of 2.3.4.

  1   2   >