Feature tests

Lol. good to know. the only thing I am doing with the JS, is to make a call
to my Rails server to do exactly what you describe, call the instagram API
and parse the response. In terms of setting all of my view srcs, to iterate
through the response. do a put a `@images.each do |image|` in my view?

On Fri, Dec 5, 2014 at 11:12 AM, Evan Hemsley <notifications@github.com>
wrote:

> In app/assets/javascripts/welcome.js:
>
> > @@ -24,39 +25,39 @@ jQuery(document).ready(function(){
> >        rounded_style = " style='border:1px solid #; -webkit-border-radius: 20px; -moz-border-radius: 20px; border-radius: 20px;'"
> >        $.each(response.data, function(i, item) {
> >          if (count == 0 ){
> > -       htmlz += "<div class='col-md-6'><img src='"+item.images.standard_resolution.url+ "'" + rounded_style+"></div><div class='col-md-6'><div class='no-top'>";
> > +       htmlz += "<div class='col-md-6'><a href='http://instagram.com/flsinternational'><img src='"+item.images.standard_resolution.url+ "'" + rounded_style+"></a></div><div class='col-md-6'><div class='no-top'>";
> >            count = count + 1;
> >          }
> >          else if (count == 9){
>
> Basically, whenever you are about to use Javascript to do something, ask
> yourself: do I absolutely NEED to use javascript? And if the answer is no,
> don't use Javascript.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/ebbnormal/rationalinternslf/pull/2/files#r21392768>.
>



-- 
ॐ नमः शिवाय