[Rails] form_for, submit, and parameters disappearing

2010-03-06 Thread Ralph Shnelvar
Consider the following: -- 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 to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to ruby

[Rails] Re: form_for, submit, and parameters disappearing

2010-03-06 Thread Ralph Shnelvar
Consider the following: - - - <% form_for @countryToSearchFor, :url => signed_in_path(:action => "show", :id => 'connected_to_country', :something => 'other'), :html => {:method => :get} do |f| %> <%= f.select :country, language_neutral_array_of_countries, :prompt => 'e

[Rails] Re: Re: form_for, submit, and parameters disappearing

2010-03-07 Thread Ralph Shnelvar
Colin Law wrote: > I think maybe you cannot include query terms in form_for :url. An > alternative is to use hidden fields in the form. Colin, thank you. You appear to be correct. So for the next poor person fighting to get internationalization to work (I18n. See http://guides.rubyonrails.org

[Rails] Re: Re: Re: form_for, submit, and parameters disappearing

2010-03-07 Thread Ralph Shnelvar
Colin Law wrote: > On 7 March 2010 11:00, Ralph Shnelvar wrote: >> form_for cannot be, uh, "internationalized" because the various flavors >> 'connected_to_country'), >> � >> >> Both parameters (locale, somename) will end up

[Rails] Re: Re: form_for, submit, and parameters disappearing

2010-03-13 Thread Ralph Shnelvar
Marnen Laibow-Koser wrote: > Why not store the locale in the session, instead of passing around > hidden fields? >From http://guides.rubyonrails.org/i18n.html - - - - You may be tempted to store the chosen locale in a session or a cookie. Do not do so. The locale should be transparent and a part

[Rails] Keeping it DRY. Same constant needed in js, sass, and rails

2010-03-27 Thread Ralph Shnelvar
I need a constant, X, to be known in a jQuery script In an .rb file in Rails ins some css/SASS How can I get this constant known in all three places? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Tal

[Rails] jRails, jQuery, Hide (4 arguments)

2010-03-30 Thread Ralph Shnelvar
Is this the right forum to post this to? In jRails.js there is a call to hide in which hide takes four parameters. Where is that hide defined? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.

[Rails] Re: jRails, jQuery, Hide (4 arguments)

2010-04-01 Thread Ralph Shnelvar
Ralph Shnelvar wrote: > Is this the right forum to post this to? > > In jRails.js there is a call to > hide > in which hide takes four parameters. > > Where is that hide defined? To answer my own question ... so for the next poor schmuck who doesn't know any Javascr

[Rails] Server detects change in data

2010-05-07 Thread Ralph Shnelvar
My fundamental lack understanding of Rails and the architecture of the 'Net wil be demonstrated by the following question: The following is a contrived example: Assume I have several users looking at (identical) screens. Say, there is some slowly changing stock market data that they are all loo

[Rails] Re: Server detects change in data

2010-05-07 Thread Ralph Shnelvar
Marnen Laibow-Koser wrote: > One doesn't, at least not without using Flash, Java, or Comet. Web > technologies don't do push. > > The best you can do is to have the client poll the server every so > often. > Can this polling be done with jQuery? Can one point to an example? -- Posted via h

[Rails] Re: Server detects change in data

2010-05-07 Thread Ralph Shnelvar
Marnen Laibow-Koser wrote: >> Can one point to an example? > > Do you really need an example? It's just a matter of periodically > making Ajax requests (or refreshing a page, which is the same thing on > the server side). Yes, a nice small Ajax query being made from javaScript or jQuery would

[Rails] Lazy regexp is not lazy enough

2011-02-08 Thread Ralph Shnelvar
Consider the string xyzx P0 yx Q1 y1 Placeholder2 2abc and the pattern <(h\d)>.*?Placeholder2.*?<\/\1> the pattern matches x P0 yx Q1 y1 Placeholder2 2 I want it to match 1 Placeholder2 2 How can I do this? That is, I want to find the nearest ... surrounding Placeholder2. -- Pos

[Rails] Re: Lazy regexp is not lazy enough

2011-02-08 Thread Ralph Shnelvar
In terms of Nokogiri and Hpricot ... I develop on a Windows machine and my ISP's machine is a Linux. Nokoogiri works great on my development machine. My ISP does not support Nokogiri on his ... unless I am willing to spend the money to have him install it .. which I don't ... and for political

[Rails] Like gsub but the parameter is matchdata

2011-02-08 Thread Ralph Shnelvar
Is there a mechanism in Ruby that works like gsub {|x| something} where x is MatchData instead of String? -- 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 to

[Rails] Re: Like gsub but the parameter is matchdata

2011-02-10 Thread Ralph Shnelvar
>> Check this out. > http://www.ruby-doc.org/core/classes/String.html#M001186 I must be blind. I see no MatchData anywhere. I see *match* which is a string ... but no MatchData. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google G

[Rails] Playing videos one after another

2011-02-23 Thread Ralph Shnelvar
Let's say I have 5 flv files that I want to play in a browser one after another. Is it possible to do this without user intervention? Is there a Jquery event that I could use to trigger the next flv to play? -- Posted via http://www.ruby-forum.com/. -- You received this message because you ar

[Rails] jw_player_helper, IE8, no full screen

2011-03-08 Thread Ralph Shnelvar
I have some code that displays flash (flv) video. This code runs perfectly in FireFox, Chrome, and Safari. IE8 plays the video but I am unable to get IE8 to get the video to go full screen by pressing the "full screen" button. I am using jw_player_helper. Some of the relevant HAML code follows:

[Rails] Resuming a download

2011-03-10 Thread Ralph Shnelvar
Is there a document somewhere that describers how I would implement, in Rails, a "resume download"? I have a large video I want people to download (if they want to). My partner has a bad Internet connection and it crashed several times and he wanted to resume but the download wouldn't. How do I

Re: [Rails] Re: Resuming a download

2011-03-11 Thread Ralph Shnelvar
FC> On Mar 11, 12:27 am, Ralph Shnelvar wrote: >> Is there a document somewhere that describers how I would implement, in >> Rails, a "resume download"? >> I have a large video I want people to download (if they want to). >> My partner has a bad Internet co

[Rails] flash duration

2011-03-19 Thread Ralph Shnelvar
Is there a way in Rails to get the duration (minutes, seconds, etc.) of a flash video? I want to display the amount of time to the users before they start playing it or downloading it. I control the flash video and it is in my public directory. There are many video clips and they change frequent

Re[2]: [Rails] flash duration

2011-03-19 Thread Ralph Shnelvar
Saturday, March 19, 2011, 11:12:58 AM, you wrote: CL> On 19 March 2011 16:47, Ralph Shnelvar wrote: >> Is there a way in Rails to get the duration (minutes, seconds, etc.) of >> a flash video?  I want to display the amount of time to the users before >> they start playing

[Rails] Re: flash duration

2011-03-21 Thread Ralph Shnelvar
For those who may need the answer to this question I will outline my OS-independent solution. The file format of an .flv file is documented in http://download.macromedia.com/f4v/video_file_format_spec_v10_1.pdf To spare you the effort of reading the documentation ... Read the metadata header int

[Rails] EULA and downloading softwae

2011-03-23 Thread Ralph Shnelvar
I have a zip file I want to give my users. But first I need for them to agree to a End User License Agreement (EULA). I can't think of any way to prevent them from going to the download link and getting the file without agreeing to the End User License Agreement first. Any suggestions? -- Post

[Rails] SEO, MS Word, Compact HTML, and object/data

2011-04-14 Thread Ralph Shnelvar
We have twenty-or-so MS Word 2000 documents that we want to display on our website. What we did was convert the MS Word documents to Compact HTML. We then display a document via an This all works great except for a bit of a fly in the ointment. Doing an SEO (Search Engine Optimization) analy

[Rails] Where is the anchor?

2011-05-01 Thread Ralph Shnelvar
It has to be simple ... but I can't find it. Where in the _controller_ does the anchor show up? If the link_to is to xyz#abc ... I end up at the right dispatch function def xyz # I get here end But I cannot find where to find abc. -- Posted via http://www.ruby-forum.com/. -- You receiv

Re[2]: [Rails] Where is the anchor?

2011-05-01 Thread Ralph Shnelvar
Chris, Sunday, May 1, 2011, 6:52:39 AM, you wrote: CM> On 1 May 2011, at 13:37, Ralph Shnelvar wrote: >> It has to be simple ... but I can't find it. >> >> Where in the _controller_ does the anchor show up? >> >> >> >> If the link_to is to

[Rails] Triggering the standard Save dialog

2010-11-19 Thread Ralph Shnelvar
I have a file, a non-ruby executable or zip file, and I want to trigger the standard "Save file As" dialog. What is the RoR way to do this? - - - - I have scoured the net and the only think I can come up with is some Javascript that gets triggered when the user clicks on an image. function my_

Re[2]: [Rails] Triggering the standard Save dialog

2010-11-19 Thread Ralph Shnelvar
Hassan, Friday, November 19, 2010, 10:37:36 AM, you wrote: HS> On Fri, Nov 19, 2010 at 9:28 AM, Ralph Shnelvar wrote: >> I have a file, a non-ruby executable or zip file, and I want to trigger >> the standard "Save file As" dialog. >> Surely there must be a s

[Rails] Re: Triggering the standard Save dialog

2010-11-19 Thread Ralph Shnelvar
I don't understand. I apologize for being such a novice. I am also running webrick for testing. Does that make a difference? -- 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

[Rails] Re: Triggering the standard Save dialog

2010-11-19 Thread Ralph Shnelvar
Directly accessible how? What do you recommend as the way to trigger the save dialog? -- 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 to rubyonrails-t...@googl

[Rails] Re: Re: Triggering the standard Save dialog

2010-11-19 Thread Ralph Shnelvar
Hassan Schroeder wrote in post #962641: > On Fri, Nov 19, 2010 at 10:26 AM, Ralph Shnelvar > wrote: >> Directly accessible how? > > Just provide a link with that URL. This is a basic web operation. > What kind of link? ... ? -- Posted via http://www.ruby-forum.com/.

[Rails] Re: Triggering the standard Save dialog

2010-11-19 Thread Ralph Shnelvar
I am so frustrated. My HAML code is %div{'id' => becca_chap_1_human_img_div} %a{'id' => download_file_a, 'href' => '/public/LaunchBrowser.zip'} = image_tag('PhotosOfBecca.png', :'id' => becca_chap_1_human_img) The HAML parses correctly ... Yet when I click on the image I get a rout

[Rails] Re: Triggering the standard Save dialog

2010-11-19 Thread Ralph Shnelvar
I'm sorry, Hassan, I still don't get it. When I make that link, i.e. /public/LaunchBrowser.zip why is the link going through rails routing? If I make the link LaunchBrowser.zip then rails seems to want the link to be http://localhost:3000/marketing/LaunchBrowser.zip which makes sense becaus

[Rails] Equivalent to View Page Source; No AJAX

2010-11-20 Thread Ralph Shnelvar
I am developing a website that does not use AJAX. What I would like to be able to do on the server side is find the point in RoR (assuming it exists) where the HTML is "rendered" and capture that string so that I can manipulate it for my purposes. To be a little clearer, the user at their browser

[Rails] Re: Equivalent to View Page Source; No AJAX

2010-11-21 Thread Ralph Shnelvar
"José Mota" wrote in post #962911: > Perhaps try to override the content-type: > > @headers["Content-Type"] = "text/plain; charset=utf-8" > > Let us know if it works. I'm sorry, Jose, I do not understand this at all. -- Posted via http://www.ruby-forum.com/. -- You received this message b

[Rails] Re: Equivalent to View Page Source; No AJAX

2010-11-21 Thread Ralph Shnelvar
Frederick Cheung wrote in post #962809: > On Nov 20, 4:19pm, Ralph Shnelvar wrote: >> >> Is this possible and/or easy to do? >> > > You could probably do that from an after_filter - you should be able > to play around with response.body. > > Fred Fred, this

[Rails] Including MS Word in a DIV

2010-11-22 Thread Ralph Shnelvar
Let's say that I have an MS Word document saved as an HTML document. I want to present this document as a div; that is, make the MS HTML sort of a partial. Is there a RoR facility to do so? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to th

[Rails] Re: Including MS Word in a DIV

2010-11-23 Thread Ralph Shnelvar
Walter Davis wrote in post #963121: > > I would say your best bet is to simply generate a partial that holds > an iframe, targeted to the MSWord "html" file. That will at least > sandbox that code and keep it from wreaking havoc with your layout. > > Walter Thank you, Walter. Until you mentioned

[Rails] iFrame and routes

2010-11-23 Thread Ralph Shnelvar
I have the following haml line: %iframe{'id' => main3Wrap_iframe, 'src' => "/documentation/Marketing Overview - Ralph 011.htm", 'width' => '100%', 'height' => "550"} (main3Wrap_iframe is properly defined.) When I attempt to run this, RoR complains that Routing Error No

[Rails] Re: iFrame and routes

2010-11-23 Thread Ralph Shnelvar
Colin Law wrote in post #963366: > By putting the file in your_app/public/documentation. Then your link > will find it. > > Colin While this works, it sorta doesn't answer the question. Let's say that the document is in /documentation (not /public/documentation), how do I tell RoR to look ther

[Rails] Installing a gem in an application

2010-11-29 Thread Ralph Shnelvar
When I attempt to launch my application on my server, the Mongrel log says that Missing these required gems: haml I do not control my server and the ISP has told me that he will give me no support in terms of Ruby on Rails. Is there a way to install the gem in my application and/or place the g

[Rails] Re: Installing a gem in an application

2010-11-29 Thread Ralph Shnelvar
Ok ... a long search on Google found something called gem unpack Sadly, I am clueless how to use it ... what my current directory should be ... and how to point to it once I do the unpack. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to th

[Rails] Re: Installing a gem in an application

2010-11-30 Thread Ralph Shnelvar
Matt Jones wrote in post #965193: > On Nov 29, 9:50pm, Ralph Shnelvar wrote: >> in some directory that will allow haml to be found? > I'm guessing that you're running on Rails 2.3, as I believe the 3.x > message is different (and Bundler would handle most of this). > &

[Rails] Mongrel, .htaccess, cpanel, rewrite, Mongrel::HttpParserError

2010-12-01 Thread Ralph Shnelvar
I just installed my RoR application on my ISP's server. This is a Cpanel environment and it creates a .htaccess file: RewriteEngine on RewriteCond %{HTTP_HOST} ^xyz.com$ [OR] RewriteCond %{HTTP_HOST} ^www.xyz.com$ RewriteRule ^(.*)$ "http\:\/\/127\.0\.0\.1\:12001\/$1" [P,L] in a public_

[Rails] Re: Mongrel, .htaccess, cpanel, rewrite, Mongrel::HttpParserError

2010-12-01 Thread Ralph Shnelvar
> OMG. Do you actually have spaces in your image file names? > > -- > Hassan Schroeder hassan.schroe...@gmail.com > twitter: @hassan Yes ... why not? I have not had any troubles with spaces in file names on my Windows development environment, Linux static web page environ

[Rails] Re: Re: Mongrel, .htaccess, cpanel, rewrite, Mongrel::HttpParserError

2010-12-01 Thread Ralph Shnelvar
>> What's the issue? > > The issue isn't really the filenames directly, but that URLs cannot > contain spaces. [snip] > > -Rob Rob and Hassan and all ... I don't believe it ... but you were right. Replacing the spaces with hyphens every and ... everything works. Wow. I thought I was chasing a

[Rails] Where is my file?

2010-12-09 Thread Ralph Shnelvar
I have a file whose name is f:\Ralph-Rails-Apps\myproject\public\documentation\marketing\myproject-Upgrade-and-Update-Policy.htm on my Windows machine I have attempted to open this file (which I know exists) in my controller using a variety of names to no avail. /public/documentation/mark

[Rails] Running ImageMagick on Windows and Linux under Rails

2010-12-12 Thread Ralph Shnelvar
gregated cPanel environment I am running ... so I ask the collected wisdom here: How do I run /usr/bin/convert in my environment? Ralph Shnelvar -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" gro

[Rails] Re: Running ImageMagick on Windows and Linux under Rails

2010-12-13 Thread Ralph Shnelvar
Well ... issue resolved. My ISP did not have ImageMagick installed correctly on his server. Amazingly, I was doing everything correctly. -- 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

[Rails] detecting IE in HTML; Where to place favicon.ico?

2010-12-18 Thread Ralph Shnelvar
I am suffering from a strange, uh, bug. I have some html that the W3C W3C Markup Validation Service says has zero problems. I have some images placed into table cells. This works perfectly on IE8, Chrome, Firefox, and Safari. But ... When I add the following single haml line to the head %link

[Rails] favicon.ico (shortcut icon) & Internet Explorer 8 & rails

2010-12-19 Thread Ralph Shnelvar
For all the poor programmers out there who have been scratching their heads ... If you do something like and place it immediately after the in the section of a webpage then you may experience the following bizarre behavior: Firefox, Safari, Chrome will all display the webpage correctly. Inte

[Rails] Rails, Ruby, haml, metaprogramming problem

2010-12-21 Thread Ralph Shnelvar
In HAML I have hundreds of lines like the following: - xyz = someFuncThatReturnsString('xyz') and elsewhere %div{'id' => xyz} The above lines work fine. - - - Attempting to keep things DRY (Don't repeat yourself) I want to do something like - eval(otherFuncThatReturnsString('xyz')) wh

[Rails] Where to find bookmark in controller

2010-12-21 Thread Ralph Shnelvar
If I do a link_to 'XYZ', '/usage/Faq.html#GB_limit' in my view ... can I detect "GB_Limit" in my controller? Where? I know I can do link_to 'XYZ', '/usage/Faq.html?bookmark=GB_limit' and I can find GB_limit in params[:bookmark]. -- Posted via http://www.ruby-forum.com/. -- You received t

[Rails] Rails (Javascript?): Does an outline viewer exist?

2010-12-21 Thread Ralph Shnelvar
I have a large MS Word document organized in outline format. I exported this document via "Export to compact HTML" command. I was wondering if anyone knows of a rails plugin or a javascript/jquery script that would allow a user to open (i.e. expand) and close various levels of the html the same w

[Rails] Re: Rails, Ruby, haml, metaprogramming problem

2010-12-24 Thread Ralph Shnelvar
Marnen Laibow-Koser wrote in post #969841: > You're using eval (almost never necessary in Ruby -- > send is usually what you want). How in Ruby does one create a variable and then set a value for it without using eval? That is, I have a string named "xyz" and I want to create a variable named xyz

[Rails] Forcing a download rather than playing a .wm

2010-12-25 Thread Ralph Shnelvar
I have the following HAML code ... %ul %li{'class' => list_item_L3} %div{'id' => getting_started_div} %span{'id' => getting_started_span} %a{'id' => getting_started_a, 'href' => '/videos/msg_ralph2.shnelvar.wmv} Shnelvar The link displays correctly but IE

[Rails] Re: Forcing a download rather than playing a .wm

2010-12-25 Thread Ralph Shnelvar
Marnen Laibow-Koser wrote in post #970622: > By automatically downloading, you are depriving the user of the choice > of what he wants to do with that file. (You might want him to download > it, but he might prefer to take a quick listen in the browser before he > does so.). That's a UI mistake.

[Rails] Playing video works in IE8 and not in FireFox

2010-12-25 Thread Ralph Shnelvar
I have the following HAML %div{'id' => getting_started_div} %span{'id' => getting_started_span} %a{'id' => getting_started_a, 'href' => '/videos/msg_ralph2.shnelvar_16_Dec_2010_07_58_59.wmv'} 'Free Edition' The code displays correctly in FF and IE8. When the user clicks on "Fr

[Rails] How does rails know how to find my movie?

2010-12-25 Thread Ralph Shnelvar
I have the following HAML %div{'id' => getting_started_div} %span{'id' => getting_started_span} %a{'id' => getting_started_a, 'href' => '/videos/msg_ralph2.shnelvar_16_Dec_2010_07_58_59.wmv'} 'Free Edition' When the user clicks on "Free Edition" the link is http://localhost:

[Rails] Vidoe, webrick, Apache(?)

2010-12-25 Thread Ralph Shnelvar
I kept scratching my head as to what was wrong with my HAML code and I could not find anything wrong. So, out of desperation, I uploaded (ftp'd) my videos (*.wmv and *.mov) and new haml code to my ISP's server (Linux Apache?) and everything seems to be working. So ... is there something about web

[Rails] Preserving state across a "back"

2010-12-31 Thread Ralph Shnelvar
I have a Javascript accordion. The accordion starts in the completely closed state. The accordion opens up to a bunch of links. If the user clicks on a link it takes the user to a document that I have created and display. What I want is for the user to be able to click on the back button and ha

[Rails] Rails, .swf, .flv

2011-01-01 Thread Ralph Shnelvar
I have the following HAML code ul{ 'id' => tutorials_ul } %li %a{'href' => '/videos/create-command-001.swf'} 'Edition swf' %li %a{'href' => '/videos/create-command-001.flv'} 'Edition flv' When the user clicks on 'Edition swf' the video plays nicely in both F

[Rails] Re: Rails, .swf, .flv

2011-01-02 Thread Ralph Shnelvar
paul h wrote in post #971856: > > If you want the flv to behave like the swf, you need to embed the flv > in a swf. > > If you want to provide a link to the page, I can have a look, and > maybe drop the flv into a swf for you ;) > > Paul Thanks, Paul. I know how to drop the .flv into the .swf. T

[Rails] Re: Re: Rails, .swf, .flv

2011-01-02 Thread Ralph Shnelvar
Walter Davis wrote in post #971878: > Maybe you want to transcode and skip Flash altogether. Please explain. Flash seems to be the best compromise between compression and clarity. I am open to other formats. > You'll get a wider playback audience (including iDevices) and the > visitors will get

Re: [Rails] Looking for the best tutorials for setting up a message board and wiki

2011-10-26 Thread Ralph Shnelvar
Monday, October 24, 2011, 7:04:05 PM, you wrote: JHMSL> I'm interested in setting up a web site consisting of a message board JHMSL> and wiki. (It will be about how to start and run a Linux distro or JHMSL> other open source project.) JHMSL> I'm new to Ruby on Rails. Before I started learning R

[Rails] CPanel and web hosting

2011-12-14 Thread Ralph Shnelvar
My current ISP uses CPanel. Sadly, my ISP is not giving me the support I need. He has some firewall stuff that is causing my website to report 406 errors. My preference is to go with a good ISP who uses CPanel to host RoR. Or ... does anyone know how hard it is for a relative novice (me) to mov

[Rails] Heroku & rails new ultradedup001

2011-12-18 Thread Ralph Shnelvar
Because my ISP is giving me zero help in fixing a problem I fee is his problem, I have decided to migrate my code to Heroku. I attempted a port but the port failed. Oh well, it was worth a try. So, instead, I did "Hello, world" by doing rails new ultradedup001 I actually saw the "Welcome aboa

Re: [Rails] Re: Heroku & rails new ultradedup001

2011-12-18 Thread Ralph Shnelvar
Frederick, FC> On Dec 18, 9:14 am, Ralph Shnelvar wrote: >> Because my ISP is giving me zero help in fixing a problem I fee is his >> problem, I have decided to migrate my code to Heroku. >> >> I attempted a port but the port failed.  Oh well, it was worth a try. >

Re: [Rails] Re: Heroku & rails new ultradedup001

2011-12-18 Thread Ralph Shnelvar
Frederick, Sunday, December 18, 2011, 6:57:20 AM, you wrote: FC> On Dec 18, 12:48 pm, Ralph Shnelvar wrote: >> >> FC> The /rails/info route is only setup in development, so if your heroku >> FC> deployment is running in production it's normal for it not to work.

[Rails] Lost upgrading from 2.3.8 to 3.1.1

2011-12-20 Thread Ralph Shnelvar
I have been converting from Rails 2.3.8 to Rails 3.1.1 and have made some progress. The 2.3.8 code works fine. I am now getting the following error and am fairly clueless where to look. I think I've got an error in my requires but I'm not sure. All suggestions are welcome. C:/RailsInstaller/R

Re[2]: [Rails] Lost upgrading from 2.3.8 to 3.1.1

2011-12-20 Thread Ralph Shnelvar
Greg, Tuesday, December 20, 2011, 10:52:43 AM, you wrote: GA> On Tue, Dec 20, 2011 at 12:49 PM, Ralph Shnelvar wrote: >> can't convert Array into String GA> This is a huge guess. But didn't ActiveSupport change some of the GA> methods for finding records; so you c

[Rails] My app does not need to talk to any database

2011-12-22 Thread Ralph Shnelvar
My Rails 3.1 app doesn't need to talk to any database. Nonetheless, Rails is attempting to connect to a database and failing. How do I prevent my app from connecting? Ralph Shnelvar -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed t

[Rails] Rails 3.1 & Routes & Root

2011-12-24 Thread Ralph Shnelvar
I have Ultradedup002::Application.routes.draw do match ':controller/:action(:id)' root :to => 'home#show' end Focusing on root :to => 'home#show' how do I add a parameter? root :to => 'home#show?locale=en' does not seem to work. -- Posted via http://www.ruby-forum.com/. -- You receiv

[Rails] Re: Rails 3.1 & Routes & Root

2011-12-24 Thread Ralph Shnelvar
That was exactly what I wanted and it works. Thank you. -- 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 to rubyonrails-talk@googlegroups.com. To unsubscribe fr

[Rails] 2.3.8 v. 3.1.1 text escaping

2011-12-24 Thread Ralph Shnelvar
In a view I emit a 12 character string "abcdef". In 2.3.8 "abcdef" is rendered. In 3.1.1 "abc\<br /\>def" is rendered. The 2.3.8 behavior is what I want. How do I get it? Ralph Shnelvar -- Posted via http://www.ruby-forum.com/. -- You received this m

[Rails] Re: 2.3.8 v. 3.1.1 text escaping

2011-12-25 Thread Ralph Shnelvar
I'm answering my own question. This is an issue with HAML. The relevant statement comes from http://haml-lang.com/docs/yardoc/file.HAML_REFERENCE.html - - - Haml supports Rails’ XSS protection scheme, which was introduced in Rails 2.3.5+ and is enabled by default in 3.0.0+. If it’s enabled, Haml

[Rails] player undedfined. want video_player in jw_player_helper

2011-12-25 Thread Ralph Shnelvar
I am converting my 2.3.8 Rails app to 3.1.1 I have much of it working. When I attempted to play a video and I found out that the function "player" is undefined. The (latest?) version of vendor\bundle\ruby\1.9.1\gems\jw_player_helper-0.0.1\lib\jw_player_helper\helper.rb uses def video_player(f

[Rails] method_missing not working in RoR 3.1.1 & Ruby 1.9.2p290?

2011-12-25 Thread Ralph Shnelvar
I am porting a Rails 2.3.8 app (ruby 1.8.7 (2010-01-10 patchlevel 249) [i386-mingw32]) to Rails 3.1.1 Ruby 1.9.2p290 In the 2.4.8 app a method_missing is being called correctly. It's a ghost method. In Rails 3.1.1 Ruby 1.9.2p290 the method_missing is not being called. If I explicitly code a met

[Rails] Re: method_missing not working in RoR 3.1.1 & Ruby 1.9.2p290?

2011-12-26 Thread Ralph Shnelvar
Ok, I solved this one. Short answer: replace def method_missing(undefined_name, *args) with def action_missing(undefined_name, *args) in your controller Longer answer: I can't find this documented anywhere but in the Rails source code. See vendor\bundle\ruby\1.9.1\gems\actionpack-3.1.

[Rails] Re: method_missing not working in RoR 3.1.1 & Ruby 1.9.2p290?

2011-12-26 Thread Ralph Shnelvar
Oh, yeah, this is a Rails issue and not a Ruby one. -- 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 to rubyonrails-talk@googlegroups.com. To unsubscribe from th

[Rails] Where to put videos? Heroku?

2011-12-26 Thread Ralph Shnelvar
I am attempting to port a Rails 2.3.8 application to 3.1.2 In my 2.3.8 app I am able to play videos ... no problem. In 3.1.2, I am not. I have read http://rubydoc.info/gems/jw_player_helper/0.0.1/file/README.markdown and the documentation there says, ":file => "relative path to file (for example

Re[2]: [Rails] Where to put videos? Heroku?

2011-12-26 Thread Ralph Shnelvar
Hassan, Monday, December 26, 2011, 10:11:39 AM, you wrote: HS> On Mon, Dec 26, 2011 at 7:43 AM, Ralph Shnelvar wrote: >> Part of what I am trying to do is get the app ready to be hosted by >> Heroku.  I have about a gigabyte of videos and I remember reading that >> that

[Rails] Adding a path to assets for Rails 3.1.2

2011-12-26 Thread Ralph Shnelvar
Referring to http://guides.rubyonrails.org/asset_pipeline.html it says: - - - - You can add additional (fully qualified) paths to the pipeline in config/application.rb. For example: config.assets.paths << Rails.root.join("app", "assets", "flash") - - - - I did that but when I look at Rails.appl

Re: [Rails] Adding a path to assets for Rails 3.1.2

2011-12-26 Thread Ralph Shnelvar
Monday, December 26, 2011, 1:17:14 PM, you wrote: RS> Referring to http://guides.rubyonrails.org/asset_pipeline.html it says: RS> - - - - RS> You can add additional (fully qualified) paths to the pipeline in RS> config/application.rb. For example: RS> config.assets.paths << Rails.root.join("app",

Re[2]: [Rails] Adding a path to assets for Rails 3.1.2

2011-12-26 Thread Ralph Shnelvar
Monday, December 26, 2011, 3:45:08 PM, you wrote: RS> Monday, December 26, 2011, 1:17:14 PM, you wrote: RS>> Referring to http://guides.rubyonrails.org/asset_pipeline.html it says: RS>> - - - - RS>> You can add additional (fully qualified) paths to the pipeline in RS>> config/application.rb. For

Re[2]: [Rails] Adding a path to assets for Rails 3.1.2

2011-12-26 Thread Ralph Shnelvar
Monday, December 26, 2011, 3:45:08 PM, you wrote: RS> Monday, December 26, 2011, 1:17:14 PM, you wrote: RS>> Referring to http://guides.rubyonrails.org/asset_pipeline.html it says: RS>> - - - - RS>> You can add additional (fully qualified) paths to the pipeline in RS>> config/application.rb. For

[Rails] jw_player_helper & Rails 3.1.1

2011-12-26 Thread Ralph Shnelvar
I am trying to get this http://rubydoc.info/gems/jw_player_helper/0.0.1/file/README.markdown# gem to work on 3.1.1 and am having a really difficult time. (I got a similar gem to work in 2.3.8). Does anyone know how to send a message to the author for help? Has anyone been successful in gettin

Re[3]: [Rails] Adding a path to assets for Rails 3.1.2

2011-12-26 Thread Ralph Shnelvar
Monday, December 26, 2011, 4:54:22 PM, you wrote: RS> Monday, December 26, 2011, 3:45:08 PM, you wrote: RS>> Monday, December 26, 2011, 1:17:14 PM, you wrote: RS>>> Referring to http://guides.rubyonrails.org/asset_pipeline.html it says: RS>>> - - - - RS>>> You can add additional (fully qualifie

Re: [Rails] how to play video in ruby on rails

2011-12-28 Thread Ralph Shnelvar
hr> hey everyone i want to add a video and play it using ruby on rails . hr> how can i do it. can anyone help me plzz.. hr> Thanks in advance After struggling with this for several days, I have finally been able to get some videos to play in Rails 3.1.2. There may be other ways of playing video

[Rails] Am I having an asset problem?

2011-12-29 Thread Ralph Shnelvar
dered page: As you can see, the scripts (Why aren't they inlined?) are in partial alphabetical order. This is not the order I have my javascript_include_tags in and this is causing problems. Can someone tell me what I'm doing wrong and/or suggest a solution? Ralph

Re: [Rails] Re: Am I having an asset problem?

2011-12-29 Thread Ralph Shnelvar
Title: Re: [Rails] Re: Am I having an asset problem? Thursday, December 29, 2011, 12:32:32 PM, you wrote: They are not compressed because you have "config.assets.debug = true" Kind of strange though that they are in the wrong order. What does your _javascript__include_tag look like, and

Re[2]: [Rails] Re: Am I having an asset problem?

2011-12-29 Thread Ralph Shnelvar
Thursday, December 29, 2011, 4:26:30 PM, you wrote: CW> On Dec 29, 2011, at 3:36 PM, Ralph Shnelvar wrote: >> Thursday, December 29, 2011, 12:32:32 PM, you wrote: >> >> >> They are not compressed because you have "config.assets.debug = true" >> >

Re[4]: [Rails] Re: Am I having an asset problem?

2011-12-29 Thread Ralph Shnelvar
Thursday, December 29, 2011, 8:54:05 PM, you wrote: CW> On Thu, 2011-12-29 at 18:30 -0700, Ralph Shnelvar wrote: >> Thursday, December 29, 2011, 4:26:30 PM, you wrote: >> CW> >> CW> I gather that including 'application.js' in your template is what c

[Rails] Conflicting libraries: jQuery.js & accordion.js

2011-12-30 Thread Ralph Shnelvar
I have a library conflict between jQuery.js & accordion.js The first line of accordion.js is $(document).ready(function() { Firebug displays $(document).ready is not a function I have read http://docs.jquery.com/Using_jQuery_with_Other_Libraries. This link is an explanation of how to re

[Rails] bundle --deployment & --no-deployment

2011-12-30 Thread Ralph Shnelvar
deployment . . . c:\RailsInstaller\Sites\ultradedup002> bundle install --deployment - - - - What's going on? Why do I need to go through these contortions? Ralph Shnelvar -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.

Re[2]: [Rails] bundle --deployment & --no-deployment

2011-12-31 Thread Ralph Shnelvar
automatically. This just works for me. Gautam Pai On Sat, Dec 31, 2011 at 6:57 AM, Ralph Shnelvar <ral...@dos32.com> wrote: So O have a working 3.1.2 application.  I had done a  bundle install --deployment Now I want to add nokogiri so I added  gem 'nokogiri' to the

Re[2]: [Rails] Conflicting libraries: jQuery.js & accordion.js

2011-12-31 Thread Ralph Shnelvar
Friday, December 30, 2011, 7:09:08 PM, you wrote: CW> On Fri, 2011-12-30 at 12:21 -0700, Ralph Shnelvar wrote: >> I have a library conflict between jQuery.js & accordion.js >> >> The first line of accordion.js is >> >> $(document).ready(function() { >&g

Re[4]: [Rails] bundle --deployment & --no-deployment

2011-12-31 Thread Ralph Shnelvar
Hassan, >> Am I even able to do a bundle whatever on the server they provide? HS> You don't need to; Heroku uses your Gemfile to make the required HS> gems available to the app at deployment. Dear God! One sentence and "everything" snaps into focus. Thank you! Question: Does that mean I can

Re[6]: [Rails] bundle --deployment & --no-deployment

2011-12-31 Thread Ralph Shnelvar
Hassan, Saturday, December 31, 2011, 11:27:29 AM, you wrote: HS> On Sat, Dec 31, 2011 at 10:18 AM, Ralph Shnelvar wrote: >> Question:  Does that mean I can't add more gems to the gemfile when I do the >> next upload? HS> No, each deployment reads the Gemfile and loads

Re[2]: [Rails] Conflicting libraries: jQuery.js & accordion.js

2012-01-01 Thread Ralph Shnelvar
S> (function($) { ZS> // jquery listeners here ZS> })(jQuery); ZS> On Fri, Dec 30, 2011 at 2:21 PM, Ralph Shnelvar wrote: >> I have a library conflict between jQuery.js & accordion.js >> >> The first line of accordion.js is >> >>  $(document).re

  1   2   3   4   >