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
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
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
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
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
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
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.
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
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
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
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
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
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
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
>> 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
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
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:
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
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
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
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
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
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
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
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
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
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_
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
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
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
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/.
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
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
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
"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
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
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
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
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
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
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
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
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).
>
&
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_
> 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
>> 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
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
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
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
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
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
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
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
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
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
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
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.
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
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:
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
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
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
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
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
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
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
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
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.
>
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.
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
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
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
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
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
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
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
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
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
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.
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
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
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
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
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",
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
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
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
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
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
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
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
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"
>>
>
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
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
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.
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
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
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
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
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 - 100 of 329 matches
Mail list logo