Ruby on Rails Thursday, January 1, 2015

Jason Fb wrote in post #1165836:
> Asset pipeline doesn't work like this... check out the Asset pipeline
> guide. you don't load your jquery libraries this way:
>
>> <script type="text/javascript" src="jquery.backstretch"></script> <=
>
>
>
>>
>> $.backstretch([
>> their demo.
>> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/rubyonrails-talk/2f68359d4fc6beb52f6f1acbdbb44da8%40ruby-forum.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> ----
>
> Jason Fleetwood-Boldt
> tech@datatravels.com
> http://www.jasonfleetwoodboldt.com/writing
>
> All material © Jason Fleetwood-Boldt 2014. Public conversations may be
> turned into blog posts (original poster information will be made
> anonymous). Email jason@datatravels.com with questions/concerns about
> this.

I tried to call the js file using <%= javascript_include_tag
"jquery.backstretch" %> But, still it doesn't fire off.

<script type="text/javascript">
$.backstretch([
"http://dl.dropbox.com/u/515046/www/outside.jpg"
, "http://dl.dropbox.com/u/515046/www/garfield-interior.jpg"
, "http://dl.dropbox.com/u/515046/www/cheers.jpg"
], {duration: 3000, fade: 750});
</script>

--
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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/f66ae30eb17b73cf2dab35a622809afc%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment