[Rails] Rails check partial is fully loaded following ajax call

2015-12-10 Thread Bazley
I render a partial after an ajax call: *show.js.erb* $("#notice_feed").html("<%=j render 'shared/notice_feed' %>") *_notice_feed.html.erb* <%= render @notices %> This ends up rendering a list of `@notices`. The names of each notice are listed on the right and I have some

[Rails] monkey patch using capybara

2015-12-10 Thread wbsurf...@yahoo.com
I am using capybara minitest on windows using selenium driver .. webkit driver would require me to install QT so I am avoiding that I am trying to simulate things like http error on an ajax request. I have this test in my feature as shown below. I have a library that I include in my real

[Rails] create/unload runtime routes

2015-12-10 Thread mark
Hi, I am trying to create routes at runtime but I am finding this a but of a challenge. I can get it to register as a route using the code below but then when url_for( with_url_options ) is called it throws an on any different fout error: No route matches {:action=>"index",

Re: [Rails] Rails check partial is fully loaded following ajax call

2015-12-10 Thread Walter Lee Davis
> On Dec 10, 2015, at 5:11 PM, Bazley <1975...@gmail.com> wrote: > > I render a partial after an ajax call: > > show.js.erb > > $("#notice_feed").html("<%=j render 'shared/notice_feed' %>") > > _notice_feed.html.erb > > > <%= render @notices %> > > > This ends up

[Rails] Any one has Rails Bricks 3.2.8

2015-12-10 Thread Karthikeyan A K
Hello Folks, Does any one have Rails Bricks 3.2.8 on their github or something. I have 3.2.6, wanted the latest to analyze the code and possibly contribute to it as its no more there. -- Karthikeyan A K http://is.gd/rubybook -- You received this message because you are subscribed to the

[Rails] Migration with active records

2015-12-10 Thread Manuel Shenavai
Hi everyone, I got a question regarding active records. Im new to ruby as well as active records. As mentioned here , its possible to migrate database schema with active records. "Rails provides a domain-specific language