[Rails] Re: rails and react.js tutorial ?

2016-05-03 Thread Taras Matsyk
@David, thank you for the tutorial! -- 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+unsubscr

[Rails] Re: remote:true with redirect. Does it make sence?

2016-03-19 Thread Taras Matsyk
Nice to meet you Jim. Thank you for time. I do realise how Ajax works and probably did not think long enough to realise how it is implemented :) -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group

[Rails] Re: remote:true with redirect. Does it make sence?

2016-03-15 Thread Taras Matsyk
Got it, so client side is on my shoulders :) Thank you, dear stranger! -- 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

[Rails] remote:true with redirect. Does it make sence?

2016-03-13 Thread Taras Matsyk
Dear community, I have a small concern about remote true. I am building simple twitter site. Let's say user has "tweet" from on the main page and a list of tweets below. here is what I do: <%= form_tag("/tweets", method: "post", class: "new-tweet") do %> <%= label_tag(nil, "New tweet") %>

[Rails] Re: Google analytics integration

2016-01-05 Thread Taras Matsyk
There is a gem to add google analytics. Check google-analytics-rails. May be a little old but old and new GA works almost in the same way. -- 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 unsu

[Rails] Re: Is better to user ember inside rails o separate

2016-01-05 Thread Taras Matsyk
Hello, @alessio_v85, I think there is no best way to use one or another JS framework with rails. There are some best practices but I think you should pick one that fits to you. If you need an example of Rails Api with separate ember app check out "Sean Devine"s Live Code a Charity Auction Appl

[Rails] Re: Contributing in Rails

2016-01-05 Thread Taras Matsyk
Hi @Aishwarye Omer, The last week I was trying to fix a couple of bugs in active_record. I found them in issues list of the rails framework. There were not easy ones and I still have not fix any of them. I suppose that there is no easy way. Getting done more projects will not help you to unders

[Rails] Social auth in rails api

2015-10-11 Thread Taras Matsyk
Hi folks, I want to rewrite my rails app in order to work as an API. I decided to go with rails_api however rails suits me needs as well. The bottleneck for me at this point is finding an easy way to provide authentication using REST API. I have limited experience in omniauth gem that's why I am w

[Rails] Re: Free online RoR course

2015-10-11 Thread Taras Matsyk
So far, there is no any course, the only thing there is a quiz. -- 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 t

[Rails] Ruby on Rails way of managing views

2015-10-07 Thread Taras Matsyk
Hi RoR experts, I have a really small question which is probably depends on a personal taste but I want to know your opinion. I was told that RoR is widely used to render erb files and allows to deliver things faster however I do know about the dark side of using the rails api and some js framewor

[Rails] Re: Ruby charting library?

2015-10-03 Thread Taras Matsyk
Hi Gerardo, You can check the next libs out: - chart.js (which is probably one of the most popular chart framework) - lazy_high_charts (ported on rails. Not so nice and cool but fun and easy to use) -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscri

[Rails] What JS framework would be your first choise in Rails World 2015

2015-07-31 Thread Taras Matsyk
Hi everyone, Just want to know your opinion on what JS framework better suites rails world in 2015. Which one would you prefer and what advantages and disadvantages it has? Personally I found Angular good enough to work with and I ended up in a mess with Ember (Ember CLI) which some people claime

[Rails] Re: Re: How to pass a parameter from input using button_to or similar

2015-07-31 Thread Taras Matsyk
Colin Law wrote in post #1176976: > On 29 July 2015 at 19:23, Taras Matsyk wrote: >> Thanks, I though that logically forms should not be used to display a >> list of tens items with different properties. >> >> Will follow your advice, @Colin > > Glad to be of

[Rails] Re: How to pass a parameter from input using button_to or similar

2015-07-29 Thread Taras Matsyk
Thanks, I though that logically forms should not be used to display a list of tens items with different properties. Will follow your advice, @Colin -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" gro

[Rails] Re: GitHub - Rails ToDo application code

2015-07-28 Thread Taras Matsyk
Hi Lazarus, Great example, Are you planning to add more tutorials? I would like to see something with JS frameworks like Ember or ReactJS -- 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 uns

[Rails] Rails pass parameter from input through button_to

2015-07-28 Thread Taras Matsyk
Hi everyone, A short description of the issue. I have a one page app which displays a list of items people can vote for. The tricky part is that some users can add more than 1 vote because of their status. Each item is displayed through @item.each loop with its picture, amount of votes and button

[Rails] Re: rails 2.3.5 and ruby 1.8.7 expert

2015-07-28 Thread Taras Matsyk
Hi @Elizabeth, Drop me a message and a link to the code, I would like to help with a task. Not experienced but at least I can fix bugs ;) -- 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 uns

[Rails] Re: React.JS and what server to use ?

2015-07-24 Thread Taras Matsyk
Thanks Andrey! I have not heard about Flux before. -- 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

[Rails] Re: beginner in Ruby on rails

2015-07-24 Thread Taras Matsyk
Thank you, @Colin. Good to know that I have not taken a wrong direction for the very beginning. :) -- 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 receiv

[Rails] Re: i'm getting this error with rails cannot load such file -- bcrypt

2015-07-20 Thread Taras Matsyk
Hi Omar, Put your code on github and post a link. -- 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

[Rails] Re: beginner in Ruby on rails

2015-07-20 Thread Taras Matsyk
Hey, beginner, send me a message. We are in the same boat =D @Colin, can I have question. Why should I use rvm? I am using rbenv at the moment, which reminds me a python virtualenv and I am pretty satisfied with it. So what is the advantage? -- Posted via http://www.ruby-forum.com/. -- Yo

[Rails] Re: Good queue manager?

2015-07-20 Thread Taras Matsyk
Hi Jeff, I am not so advanced in web-dev but what you are looking like sounds like a rake task or delayed_job gem. @Guys, please correct me if I am wrong. I do not want to point this guy in to the wrong direction. -- Posted via http://www.ruby-forum.com/. -- You received this message becaus

[Rails] Re: how to find what all associations have dependent: destroy associated with them from a concern

2015-07-20 Thread Taras Matsyk
Hi Aravind, I am not sure if I understood your question correctly but I will give a try. I think you want to delete all associated records with another type of the Model. class Body has_many: boobs, dependent: :destroy end >> In this instance destroy parameter is responsible for generating/

[Rails] Re: React.JS and what server to use ?

2015-07-20 Thread Taras Matsyk
Hi Jedrin, what is wrong with react-rails? You can put ReactJS in vendor folder and use it as you would typically use it in any other web app. PS. I have no idea what is flex and do not see any issue with MVC. -- Posted via http://www.ruby-forum.com/. -- You received this message because you

[Rails] Re: HELP

2015-07-12 Thread Taras Matsyk
Hi Stepa, Have you generated active record model? What controller are you using and how does it look like? In general, You have to send a put request to your controller and pass all data you want to save or you have (depending on behaviour you are trying to achieve). Then you will be using Act

[Rails] Re: Migrating a complete Ruby rails app off heroku!

2015-07-12 Thread Taras Matsyk
Hi OPSPL Goan, drop me a message, I can take a look on that app. -- 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

[Rails] Re: DonĀ“t work my program :( , please help

2015-07-12 Thread Taras Matsyk
Hi Richard, You definitely missed a couple of important topics about OOP and encapsulation in particular. Take a look on attribute accessors in Java (as example), so you could understand how it work in ruby and what attr_accessor key word does. This guy has a nice explanation (cannot say it about

[Rails] Image storage server using activeadmin

2015-07-09 Thread Taras Matsyk
Hi guys, I want to create a portfolio for a photographer and here how I image it under the hood: - Images will be stored on image hosting server (maybe cloudinary, is there anything else which is free to test and more or less cheap to pay for?) - An administrator can load files by logging into ac

[Rails] Re: contributing to rails

2015-06-19 Thread Taras Matsyk
try to read rails from the very first commits, did not help a lot but so far I do not other way except suffering till you understand how it works -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.

[Rails] Re: Respond with ID of newly create object and ok status

2015-05-30 Thread Taras Matsyk
Thank you, Walter! Now it makes more sense. Hey, if this is your pet on a profile - then you have a nice dog, it looks very friendly and funny! -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.

[Rails] Re: Respond with ID of newly create object and ok status

2015-05-25 Thread Taras Matsyk
Great, it did the trick. Thank you, Walter. Just one more question, I started googling for differences between JSON (used in my example) and JSONP format suggested by you. I would appreciate if you could give a couple of links or resources to read more about JSONP, CORS or anything like that s

[Rails] Respond with ID of newly create object and ok status

2015-05-25 Thread Taras Matsyk
Hi everyone, A client sends a post query which contains all required data to create a Todo except 'id'. From what I know 'id' field will be created when @todo.save is called. So the question is how to inject id (if it is possible and the right way) in to Controlller.create action? Here is what I

[Rails] Re: The right way to display one to many models using Angular and Rails

2015-05-25 Thread Taras Matsyk
If somebody is interested in solution - the easiest way to use properly $resource Task = $resource("/api/todos/:todo_id/tasks/:id", {todo_id: "@todo_id", id:"@id"}, {update: {method:"PUT"}}) Task.query([params], success, error) Task.save([params], postData, success, error) as example Task.sav

[Rails] The right way to display one to many models using Angular and Rails

2015-05-24 Thread Taras Matsyk
To get better understanding of how Angular works with Rails I am creating a simple todo app.This is my first week with Angular and I have no idea how to use it correctly with rails. An idea is following. I have a list of todos and when I click on todo I get a list of tasks below which are associat