Displaying 20 results from an estimated 3000 matches similar to: "Rails 3.1 assets pipeline issue in production"
2011 Sep 27
1
Rails 3.1 assets path for video player Flash script 'player.swf'
I was using a Flash video player within a previous Rails version app
Moving to Rails 3.1.0 , I dob''t know where I should put the script ...
I tried to move it into an app asset sub-directory
assets
- jwplayer
- - player.swf
but this raises an error
"NetworkError: 406 Not Acceptable - http://localhost:3000/assets/jwplayer/player.swf"
player.swf
the flash script is given as a
2012 Jan 04
0
how to avoid pre-compile on deployment ..
I commented the following code in my deploy.rb , to avoid pre-
compiling upon deployment ..
# namespace :assets do
# desc "Compile assets"
# task :precompile, :roles => :app do
# run "cd #{release_path} && rake RAILS_ENV=#{rails_env}
assets:precompile"
# end
# end
but it seems to have no effect .... cap deploy log show precompiling
again...
.....
2011 Jul 22
0
Asset Pipeline and Sprockets
Ok I would love to work out how to use the new Raisl 3.1 Asset
Pipeline with SCSS variables, mixins etc and being able to use the
asset_path tag.
What I have so far is this. Im my application.css.scss I have the
following.
*= require_self
*= require layout
*= require home
This works fine with using the asset_path helper and variable within
layout ie,
// layout.css.scss.erb
2011 Sep 23
1
Rails 3.1.0 how to pass the full url of an image asset ?
I need to reference the full url of an image stored in the assets,
this url is passed to fancy box to open it
I build the image path in helper and it get the path
"ceramics/big/c0d0.jpg" "ceramics/big/c0d2.jpg", ...
but I need to get the full url to these image
asset_path("ceramiques/big/c0d0.jpg") => "/assets/ceramiques/big/
c0d0.jpg"
but there
2012 Feb 19
0
Session id unavailable if assets pipeline enabled in Rails 3.2.1
I have a Rails 2.3.2 application I am upgrading to Rails 3.2.1. I am
using ActiveRecord::SessionStore connected to an Oracle database using
the oracle_enhanced_adapter.
On my first attempt (creating a new, default Rails 3 application
copying in the application code, and fiddling with routes etc) I found
that most things could be made to work, but that:
request.session_options[:id] returns
2020 Jul 02
0
Integration of VAST Plugin
2020 Jul 02
2
Integration of VAST Plugin
As far as I know, the most common practice is handling the ads insertment
at the client side. eg. at the player level.
I know that videojs got a vast plugin:
https://github.com/googleads/videojs-ima
as well as JWPlayer:
https://developer.jwplayer.com/jwplayer/docs/jw8-advertising
However this method has one drawback, Adblock addons will target most VAST
requests and disable the advertisements..
2011 Sep 10
4
Finding HTML attributes with jQuery in Rails 3.1
I''m having trouble wrapping my head around the proper syntax to have
jQuery (in an .js file) grab an HTML attribute and use the value of
that attribute to load a partial.
HTML fragment:
<a href="/toggle" data-remote="true" section="training">
jQuery string (now setting a static partial, I need this to be
dynamic)
2011 Sep 04
1
Linking failure in stylesheet_link_tag in production mode with asset pipeline enabled
Hey,
in my `application.html.erb`, I have this line:
<%= stylesheet_link_tag ''application'' %>
which should compile through the asset pipeline and link to the
application.css (which does a `require_tree .`). In development mode,
I''d expect a
<link ... href="/assets/application.css" />
This file is actually delivered by, for example, the
2013 Jul 25
0
Re What HTML5 radio player do you use ?
Hi everybody .
i'm testing html5media to move from flashonly to "works everywhere" icecast
webplayer.
I have both my ogg and mp3 streams served by my page :
http://www.radiogalere.org/ecoute/index.html
and opus and aac in the works.
But I experience very frequent disconnection, do you confirm ?
2013 Jul 25
0
Re What HTML5 radio player do you use ?
On which browser/ os?
Le 25 juil. 2013 16:01, "Tim Baker" <tim at tjbaker.co.uk> a ?crit :
> Yes it disconnected after 1:52 on the player.
>
> On 25 Jul 2013, at 10:59, michel memeteau <michel.memeteau at gmail.com>
> wrote:
>
> Hi everybody .
>
>
> i'm testing html5media to move from flashonly to "works everywhere"
> icecast
2012 Oct 18
3
#asset_url helper method
Just putting this out there before I make a pull request.
Is there any interest in an asset_url method as a view helper?
It would work by using the config.action_controller.asset_host if it exists
and prepending this to the results of asset_path.
I have found this necessary when writing html emails and needing a full url
path for assets. Since my CDN in the asset_host mirrors my assets in my
2013 Jul 25
0
Re What HTML5 radio player do you use ?
You are s?re it s using html5 and not flash?
Le 25 juil. 2013 16:13, "Tim Baker" <tim at tjbaker.co.uk> a ?crit :
> Sorry forgot to say - Firefox 22 Mac 10.8
>
> On 25 Jul 2013, at 15:11, michel memeteau <michel.memeteau at gmail.com>
> wrote:
>
> On which browser/ os?
> Le 25 juil. 2013 16:01, "Tim Baker" <tim at tjbaker.co.uk> a ?crit :
2011 Nov 29
1
ajax question
Hello,
could you please explain what''s wrong with this code:
Rails 3.1.1
skills_controller.rb
class SkillsController < ApplicationController
# GET /skills
# GET /skills.json
def index
@skills = Skill.all
respond_to do |format|
format.html # index.html.erb
#format.json { render json: @skills }
format.js
end
end
end
index.html.erb
<%=
2010 Jun 11
2
AR after_initialize quandry
I have a case where I am abstracting the creation of models. After a
fair bit of indirection, I eventually get around to making a .new call.
I need to be able to pass params to that .new call.
I know I can''t use def initialize() in an AR model (rather frustrating).
So, I have found some references to after_initialize, but that doesn''t
work either.
I see several threads on
2013 Jul 25
1
Re What HTML5 radio player do you use ?
Its seem to be ok in here.
Also, i would suggest giving http://jplayer.org/ a try, provides fallback
solutions as well as customization options and large active community.
On Thu, Jul 25, 2013 at 12:59 PM, michel memeteau <michel.memeteau at gmail.com
> wrote:
> Hi everybody .
>
>
> i'm testing html5media to move from flashonly to "works everywhere"
> icecast
2011 Aug 31
4
Issue with asset pipeline helper with Rails 3.1 final release.
Hi, I''ve just updated my app to the final 3.1 release and deployed it to the
staging server after running tests but there is a problem with the
precompiled assets. The precompiled assets are all in the public directory,
like they were before, Capistrano doesn''t throw any error and running `rake
assets:precompile` in the current directory work as expected. But the asset
2013 Jul 25
2
Re What HTML5 radio player do you use ?
Yes it disconnected after 1:52 on the player.
On 25 Jul 2013, at 10:59, michel memeteau <michel.memeteau at gmail.com> wrote:
> Hi everybody .
>
>
> i'm testing html5media to move from flashonly to "works everywhere" icecast webplayer.
>
> I have both my ogg and mp3 streams served by my page :
>
>
> http://www.radiogalere.org/ecoute/index.html
2013 Jul 25
2
Re What HTML5 radio player do you use ?
Sorry forgot to say - Firefox 22 Mac 10.8
On 25 Jul 2013, at 15:11, michel memeteau <michel.memeteau at gmail.com> wrote:
> On which browser/ os?
>
> Le 25 juil. 2013 16:01, "Tim Baker" <tim at tjbaker.co.uk> a ?crit :
> Yes it disconnected after 1:52 on the player.
>
> On 25 Jul 2013, at 10:59, michel memeteau <michel.memeteau at gmail.com> wrote:
2009 Sep 04
2
escape_javascript error
Hello,
I am using jQuery for all ajax stuff and recently got following error:
ActionView::TemplateError (private method `gsub'' called for #<Array:
0x2425ae8>) on line #1 of...
and the code where it happens:
$("#notice_ajax").before(''<div id="notice_ajax"><%= escape_javascript
(flash.delete(:notice)) %></div>'').remove();