easy fix...got me disturbed for 30mins..I added :dependent => :destroy...maybe you want to add this to you documentation just to be prevent another person (newbie i suppose) from running around.
I am not concerned that Ryan is no longer responding directly, BTW. Having the gem author, or other community members involved is a great thing. More people means more brains, and better answers.
I do fear that his lack of response, and the recent mail about dropping the free episode frequency, is a warning sign.
We can expect him to fulfill the promise of "one pro episode per week" though. I have mailed him using the feedback on this site asking what's up, but overall the frequency of pro episodes has been less than one a week -- nearly one every 2 weeks in some cases.
411 came out on Mar 27, and 410 on Mar 12 -- 15 days. March 12 to Mar 4 is 8 days, and March 4 to Feb 14 is well over two weeks apart.
I understand he has other tasks, but if we buy into something with a promise, I would like that promise to be fulfilled, or we change the terms. I too would find the lack of something like Railscasts a serious loss to the Rails community, but if he can't fulfill the terms under which I signed up for the pro episodes, having already dropped the free ones somewhat, then we need to have new terms agreed upon.
Just an FYI...I finally gave up on solving this problem, and worked through the docs and examples on the stripe site. It's now working fine after I ditched jQuery and used plain old js. I know seems crazy.
Hi Ryan, thanks for the great screencast, worked like a charm!
I have a small question though:
I use the add_fields strategy to add an extra row to a table of records in a nested form. However, the td's don't get rendered correctly, because they are put into 'data', which does not render the td's (the entire table row is rendered in the first td of the row).
Any ideas on how to tackle this? I would like to continue using the table to maintain overview...
Hello, It works for me, but I can't make it run on production :( please help. I have no errors, and I have done exactly as the tutorial says. I'm on ubuntu, digital ocean.
I put <%= Rails.env %> on the third line http://rubyonrailsperu.com
I have restarted everything a lot of times. and I'm pretty sure that the "- E production" flag it's on the right place.
Yes, it was working fine for me but them after a bundle install it started giving this error. Can't find the cause, but all indicates it's Devise's fault.
I have tried the gem. It works, and thanks for the great work.
I have a question though. Is it ajax/pjax enabled? I see the whole page gets refreshed while sorting the tables. Any hint is most welcome. Thanks in advance.
You do bring up a point. Understood and well taken. I cannot and will not speak for Ryan, so here is my take on it. The Pro episodes are by definition providing cutting edge research and we cannot expect him to express his opinion anymore than he already does while presenting the episodes.
What I find significantly more valuable is that more knowledgeable and experienced people with those technologies chime in and contribute their opinions and share their knowledge. Angular JS episode is a great example. I find Brandon Tilley's contributions so good that I am often referring to them as I am learning Angular JS.
This does not mean that I do not ask Ryan any questions or provide my feedback etc. I have found that he always responds to the feedback that I provide via emails and does not shy away from expressing his opinion. May be RailsCasts episode discussions are just not the right forum for him to take a position.
So, personally, it does not bother me that he chooses not to participate in the Railscasts forums anymore. What would bother me infinitely more is that he "stops" publishing the Railscasts. The research that he puts into them saves an incredible amount of time as a Rails developer.
How do you filter a filter by another filter?
Meaning, if I click a category like "Brand", How do I have another filter Model with models from only that brand?
Not to be that guy, but as i usually see valid questions after the railscasts episodes, I'm wondering why Ryan doesn't seem to respond to any of them anymore. I love railscasts and have been a pro member since the beginning, but a lot of the time valid questions asked directly to Ryan or the community go unanswered. I think for the number of pro members and the posts it would be helpful to get an experts opinion on the valid points that are brought up after each episode is released. I'm not saying directly that this episode is the root of the problem, I'm just looking at the overall picture after about a year of pro episodes.
Disclaimer: This is not a troll post and I greatly value both the content and quality of the episodes. Just bringing up a valid point.
Heck a lot of the times the gem author even ends up contributing in most of them, but it seems like Ryan is ususally mum lately after each episode has been released. Now I know he is a busy guy and has a lot on his plate, but at least answer a few questions after the initial release, when the iron is hot, I don't expect him to answer all questions, but some feedback or clarification would be appreciated.
fixed. this had nothing to do with rails 3.2.13 or so. The problem was tokeninput was making a crossDomain request from within a subdomain towards a path without a subdomain, logically. I should have noticed. All I needed to do was to send the json response together with the callback. Should have done more research on this topic. Sorry
this is inexplicable to me. if I make the exact same requests in the console (even with the 2 strange parameters), everything works fine and I get the results. However, in the token form the results aren't displayed. This normally should mean that the tokeninput itself is the problem, however, it is an exact copy of a different app where it works just fine.
edit: might the usage of subdomains be the problem?
the form is within a subdomain blogs, I make the call to /tags.json that doesn't have a subdomain in front of it.
config/application.example.yml should be a file containing the skeleton of the variables you want to keep secret (don't put real values there); check this in, then in the deployed application rename the skeleton to config/application.yml and manually add the private data.
The purpose is to keep private data out of source control. The need here is clear when your SCM is public, but even in a small organization with multiple developer, one might want to set up an environment where not everyone has access to everything.
i like the idea of asserting the complexity itself instead of a specific time value.
sure it's something different but as far as it concerns tests that could/should brake if violated this idea sound interesting.
after upgrading from rails 3.2 to 3.2.13 tokeninput doesn't get the results anymore. Something doesn't work. The only clue I have are these 2 parameters that weren't sent in 3.2: /tags.json?callback=jQuery191040979262322760657_1364525075625&q=books&_=1364525075627
All the logic in controller and model works fine. The request goes through, but then the results aren't submitted back to tokeninput. Does anybody experience similar things in 3.2.13??
hm, for me using pg in production everything worked fine so far with tags = where("name ILIKE ?", "%#{query}%"). The problem thus seems to be somewhere else in your app i guess.
Hey Ryan, thanks for this great episode. I'm currently ramping up an app which uses the jquery-fileupload / sidekiq combination. And it seems to work fine.
One thing I've encountered though is the use of the :after_save callback in your Painting model. Sometimes Sidekiq is so fast that the record has not yet been commited when the worker is already on it. So I've changed the :after_save to an :after_commit and everything was fine again.
After the download completes and the paintings appear in the list (via the javascript callback), if I click on a painting to show the #show page, and then click "back" in my browser, the #index page shows the paintings without the most recent additions until I refresh it. This makes sense, because the cached version of the page didn't have the extra divs added by the javascript. Is there some way I could make the invalidate the cache for this page so it shows the newer uploads too (without manually reloading it via the browser)?
How can you tell how much loading time is too much?
For example, my home page takes ~340 ms to load in dev environment.
Is it too long or not?
I understand that it all depends on the complexity of my app, but I'm struggling with this because this's my first rails project and I simply doesn't know what performance time is OK.
What happens if user signs up with facebook, then edits his password on the site? So now the user has a different password for facebook and the site. Doesn't that mean the password for facebook and the site will get out of sync and wouldn't be able to login?
easy fix...got me disturbed for 30mins..I added :dependent => :destroy...maybe you want to add this to you documentation just to be prevent another person (newbie i suppose) from running around.
has_many :phones, :dependent => :destroy
accepts_nested_attributes_for :phones, allow_destroy: true
Thanks. Awesome gem!
I am not concerned that Ryan is no longer responding directly, BTW. Having the gem author, or other community members involved is a great thing. More people means more brains, and better answers.
I do fear that his lack of response, and the recent mail about dropping the free episode frequency, is a warning sign.
We can expect him to fulfill the promise of "one pro episode per week" though. I have mailed him using the feedback on this site asking what's up, but overall the frequency of pro episodes has been less than one a week -- nearly one every 2 weeks in some cases.
411 came out on Mar 27, and 410 on Mar 12 -- 15 days. March 12 to Mar 4 is 8 days, and March 4 to Feb 14 is well over two weeks apart.
I understand he has other tasks, but if we buy into something with a promise, I would like that promise to be fulfilled, or we change the terms. I too would find the lack of something like Railscasts a serious loss to the Rails community, but if he can't fulfill the terms under which I signed up for the pro episodes, having already dropped the free ones somewhat, then we need to have new terms agreed upon.
I just tried using you gem...it works great but I cant delete child objects even after setting allow_destroy: true....pls do you have any sugestions?
This was a great episode ! Thanks, but any tips on how to have more colors in the rails log (and console ?)
Just an FYI...I finally gave up on solving this problem, and worked through the docs and examples on the stripe site. It's now working fine after I ditched jQuery and used plain old js. I know seems crazy.
Hi Ryan, thanks for the great screencast, worked like a charm!
I have a small question though:
I use the add_fields strategy to add an extra row to a table of records in a nested form. However, the td's don't get rendered correctly, because they are put into 'data', which does not render the td's (the entire table row is rendered in the first td of the row).
Any ideas on how to tackle this? I would like to continue using the table to maintain overview...
Any suggestions are greatly appreciated!
Hello, It works for me, but I can't make it run on production :( please help. I have no errors, and I have done exactly as the tutorial says. I'm on ubuntu, digital ocean.
I put <%= Rails.env %> on the third line
http://rubyonrailsperu.com
I have restarted everything a lot of times. and I'm pretty sure that the "- E production" flag it's on the right place.
ok, now I see it. My bad :P
Yes, it was working fine for me but them after a bundle install it started giving this error. Can't find the cause, but all indicates it's Devise's fault.
Excuse me, I don't see any of your view files contains "id=new_painting", how does $("#new_painting").fileupload() work in painting.js.coffee?
hey Ryan, you might want to delete that 'episode-316' directory from the github repo? (https://github.com/railscasts/316-private-pub) It's a redundant and confusing repeat....
If some one needs a really fast way to make guest users with Devise:
https://github.com/plataformatec/devise/wiki/How-To:-Create-a-guest-user
Hi Michael,
I have tried the gem. It works, and thanks for the great work.
I have a question though. Is it ajax/pjax enabled? I see the whole page gets refreshed while sorting the tables. Any hint is most welcome. Thanks in advance.
... I see Ryan adds it at the end of the episode, I had to do it when I first implemented the storeage
I also had to commit the record creation, here's my
addEntry
(ember 1.0.0-rc.1)You do bring up a point. Understood and well taken. I cannot and will not speak for Ryan, so here is my take on it. The Pro episodes are by definition providing cutting edge research and we cannot expect him to express his opinion anymore than he already does while presenting the episodes.
What I find significantly more valuable is that more knowledgeable and experienced people with those technologies chime in and contribute their opinions and share their knowledge. Angular JS episode is a great example. I find Brandon Tilley's contributions so good that I am often referring to them as I am learning Angular JS.
This does not mean that I do not ask Ryan any questions or provide my feedback etc. I have found that he always responds to the feedback that I provide via emails and does not shy away from expressing his opinion. May be RailsCasts episode discussions are just not the right forum for him to take a position.
So, personally, it does not bother me that he chooses not to participate in the Railscasts forums anymore. What would bother me infinitely more is that he "stops" publishing the Railscasts. The research that he puts into them saves an incredible amount of time as a Rails developer.
How do you filter a filter by another filter?
Meaning, if I click a category like "Brand", How do I have another filter Model with models from only that brand?
+1, Embelm.js can take the place of slim.
This seems to be the solution:
https://github.com/sinisterchipmunk/rspec-prof
Not to be that guy, but as i usually see valid questions after the railscasts episodes, I'm wondering why Ryan doesn't seem to respond to any of them anymore. I love railscasts and have been a pro member since the beginning, but a lot of the time valid questions asked directly to Ryan or the community go unanswered. I think for the number of pro members and the posts it would be helpful to get an experts opinion on the valid points that are brought up after each episode is released. I'm not saying directly that this episode is the root of the problem, I'm just looking at the overall picture after about a year of pro episodes.
Disclaimer: This is not a troll post and I greatly value both the content and quality of the episodes. Just bringing up a valid point.
Heck a lot of the times the gem author even ends up contributing in most of them, but it seems like Ryan is ususally mum lately after each episode has been released. Now I know he is a busy guy and has a lot on his plate, but at least answer a few questions after the initial release, when the iron is hot, I don't expect him to answer all questions, but some feedback or clarification would be appreciated.
Again, sorry to be that guy on the forum.
@Ryan is we can not fetch the email id while login with twitter??
Would you not want validation when a user updates his details as well?
Great episode as always. How do I do this testing with devise authentication?
I'd suggest you guys just check out the new Stripe docs. They're very clear and have been updated over the past year and a half.
fixed. this had nothing to do with rails 3.2.13 or so. The problem was tokeninput was making a crossDomain request from within a subdomain towards a path without a subdomain, logically. I should have noticed. All I needed to do was to send the json response together with the callback. Should have done more research on this topic. Sorry
this is inexplicable to me. if I make the exact same requests in the console (even with the 2 strange parameters), everything works fine and I get the results. However, in the token form the results aren't displayed. This normally should mean that the tokeninput itself is the problem, however, it is an exact copy of a different app where it works just fine.
edit: might the usage of subdomains be the problem?
the form is within a subdomain blogs, I make the call to /tags.json that doesn't have a subdomain in front of it.
i was able to find out that it's not rails 3.2.13 which causes the misfunctioning. still didn't find the real problem tho
config/application.example.yml
should be a file containing the skeleton of the variables you want to keep secret (don't put real values there); check this in, then in the deployed application rename the skeleton toconfig/application.yml
and manually add the private data.The purpose is to keep private data out of source control. The need here is clear when your SCM is public, but even in a small organization with multiple developer, one might want to set up an environment where not everyone has access to everything.
Turbolinks is like an electric car...it's so smooth, you don't even know it's working. And from a UI perspective, that can be bad.
The git page in one of it's examples has this:
I'm not sure if I like this. It's like adding a fake engine noise that is louder than a regular engine.
I'm curious if anyone has any good solutions.
Thank you!
If i deploy this application. will i be able to do the same change to a similar file on a linux server?
actually they are not nil they lose values
The performance gem has been moved outside of Rails 4. Did you remember to include these gems to include the benchmark functionality?
gem 'ruby-prof', group: :test
gem 'test-unit', group: :test
what do you think of the assert_linear_performance idea.
http://www.revision-zero.org/benchmarking
i like the idea of asserting the complexity itself instead of a specific time value.
sure it's something different but as far as it concerns tests that could/should brake if violated this idea sound interesting.
Hi,
after setting value in around filter, the values are nil during using them in scopes ?
after upgrading from rails 3.2 to 3.2.13 tokeninput doesn't get the results anymore. Something doesn't work. The only clue I have are these 2 parameters that weren't sent in 3.2:
/tags.json?callback=jQuery191040979262322760657_1364525075625&q=books&_=1364525075627
All the logic in controller and model works fine. The request goes through, but then the results aren't submitted back to tokeninput. Does anybody experience similar things in 3.2.13??
hm, for me using pg in production everything worked fine so far with tags = where("name ILIKE ?", "%#{query}%"). The problem thus seems to be somewhere else in your app i guess.
I fixed it. Follow these steps:
bundle exec rake db:migrate
bundle exec rake db:bootstrap
Thanks Ryan!
Went ahead and set it up in my development environment on Mac OS 10.8.3.
I'm using RVM, so getting the ruby gc patch for p125 was like so:
BUMP.
I'm receiving the same error.
Hey Ryan, thanks for this great episode. I'm currently ramping up an app which uses the jquery-fileupload / sidekiq combination. And it seems to work fine.
One thing I've encountered though is the use of the :after_save callback in your Painting model. Sometimes Sidekiq is so fast that the record has not yet been commited when the worker is already on it. So I've changed the :after_save to an :after_commit and everything was fine again.
Thanks again and keep up the great work!
@carlosmendes Did you do that before or after you did cap rubber:create_instance?
After the download completes and the paintings appear in the list (via the javascript callback), if I click on a painting to show the #show page, and then click "back" in my browser, the #index page shows the paintings without the most recent additions until I refresh it. This makes sense, because the cached version of the page didn't have the extra divs added by the javascript. Is there some way I could make the invalidate the cache for this page so it shows the newer uploads too (without manually reloading it via the browser)?
cap rubber:bootstrap
solved the problem.
To fix this you must add username to you User table. See this: http://goo.gl/dQiU5
To fix this you must add username to you User table. See this: http://goo.gl/dQiU5
I get this error when I try this tutorial:
undefined method `username=' for #User:0x40e1cb0
+100
Very useful, thank you!
How can you tell how much loading time is too much?
For example, my home page takes ~340 ms to load in dev environment.
Is it too long or not?
I understand that it all depends on the complexity of my app, but I'm struggling with this because this's my first rails project and I simply doesn't know what performance time is OK.
Hi Guys,
What happens if user signs up with facebook, then edits his password on the site? So now the user has a different password for facebook and the site. Doesn't that mean the password for facebook and the site will get out of sync and wouldn't be able to login?