[Rails] Re: /app/helpers/url_helpers.rb

2018-03-09 Thread André Orvalho
Dude you really need to read a book or learn how to start using google. You ask every single question of the most simple usage of the framework. You can learn here: http://bit.ly/2tvfGTT -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.

[Rails] Re: module A class B vs class A::B

2018-02-19 Thread André Orvalho
Could you post some code about what you need to change and how you were thinking of changing it? -- 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

Re: [Rails] How do I create a form that allows users to add additional instances of the same field if needed

2017-04-24 Thread André Orvalho
You could also use https://harvesthq.github.io/chosen/ or this http://stackoverflow.com/questions/39921381/adding-a-tag-if-it-doesnt-exist-in-rails-chosen-rails google a little around I know I have done this a long time ago and it wasn't that hard. -- You received this message because you

Re: [Rails] Re: [QUESTION] How to have different routes ids on different routes for the same resources?

2017-04-20 Thread André Orvalho
Thats great! I am glad you shared this. -- 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...@googlegroups.com. To post to this

[Rails] Re: [QUESTION] How to have different routes ids on different routes for the same resources?

2017-04-20 Thread André Orvalho
I don't think it is an hack what you are doing. To actually have routes receiving different types of ids you probably needed to change how those helpers are generated by rails. That means you might have to monkey patch rails. The alternative rails is giving you to be able to do this is by doing

[Rails] Re: Ayuda con asociaciones

2017-01-06 Thread André Orvalho
I am sorry but my written spanish is bad so it goes in english: You should read this: http://guides.rubyonrails.org/association_basics.html#the-has-many-through-association and also the whole guide. Your migration is not correct. -- You received this message because you are subscribed to the

[Rails] Re: Rails association in concerns

2015-06-23 Thread André Orvalho
Maybe this can help you https://robots.thoughtbot.com/whats-the-deal-with-rails-polymorphic-associations search google about polymorphic associations -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group and

[Rails] Re: Getting Approved by Adsense

2015-06-02 Thread André Orvalho
Also I signed up for your website but the habits page gives an an error! -- 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

[Rails] Re: Unpermitted params security warning

2015-06-02 Thread André Orvalho
you need to read documentation: http://edgeguides.rubyonrails.org/action_controller_overview.html#strong-parameters -- 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] Re: Solve my problem, please

2015-04-21 Thread André Orvalho
To solve your problem: 1. Quit windows 2. Second either run bundle, or google your problem and you will find stuff like this: http://stackoverflow.com/questions/15480381/how-do-i-install-sqlite3-for-ruby-on-windows -- You received this message because you are subscribed to the Google Groups

Re: [Rails] Re: Solve my problem, please

2015-04-21 Thread André Orvalho
yea sorry about that, I meant quit windows like you should quit a bad job! :) -- 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

[Rails] hash keys, symbolize_keys and sintrigify_keys

2015-04-17 Thread André Orvalho
Hey guys, I had recently a very weird experience. I have a Loader class that run's a lot of different things on Active Record objects. One thing this loader does, is to preload data based on each classes settings. so basically: scope.preload(preloads) scope has a collection of Active Record

Re: [Rails] Re: Re: Re: Re: Re: which Gem To Used For Building A Site Like Mediafire

2015-03-23 Thread André Orvalho
To get the right answers you got ask the right questions, but maybe you should try and google a little around: http://bit.ly/1xcPWrc just a little... -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group and stop

[Rails] Re: Why does this test fail.

2014-12-08 Thread André Orvalho
Normally that problem occurs when you have a weird nesting or the naming of the controller compared to the test name is not correct as you can see in this 2 posts: http://stackoverflow.com/questions/14267506/keep-getting-controller-is-nil-error

Re: [Rails] mobile development on ruby

2014-08-26 Thread André Orvalho
Hey guys, Thanks for your input. I have done API's before in rails and I understand and follow the advices on using a versioned API. I think what Collin was trying to say is in the beginning to get the app development going I should be using the common API, and after build a version API. I also

Re: [Rails] mobile development on ruby

2014-08-25 Thread André Orvalho
2014-08-24 18:32 GMT+02:00 Colin Law clan...@gmail.com: On 24 August 2014 17:08, and...@benjamin.dk wrote: Hey guys, I am about to develop my first mobile app with the same function of a website I have developed in rails. So I have a few questions: 1. My plan is to create an API to

Re: [Rails] Re: Jquery code is not executed

2014-07-07 Thread André Orvalho
Hey Arup, what version of rails are you using? Also have you read this: http://api.rubyonrails.org/classes/ActionController/RequestForgeryProtection.html try to google your error might help you. all the best, Andre -- You received this message because you are subscribed to the Google Groups

Re: [Rails] Re: Calendar Rails 4

2014-06-25 Thread André Orvalho
There is an option called month_calendar that should give you that, but you can also look at the example that is on the documentation https://github.com/excid3/simple_calendar-ajax-example Do you have a field in your database called start_time? If this does not fill your requirements, you can

Re: [Rails] Re: Calendar Rails 4

2014-06-25 Thread André Orvalho
This is my own calendar helper: https://gist.github.com/andreorvalho/fdb28af8284b13fc9829 I have build it from the rails casts. if you look at my weeks method there, you can probably do the same for a day. create an array of hours and use them to render what you want. Hope it helps. -- You

Re: [Rails] Re: Calendar Rails 4

2014-06-25 Thread André Orvalho
You can always accept my answer at stackoverflow :) -- 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...@googlegroups.com. To post

Re: [Rails] testing a REST API that receives params in json and returns data in json

2013-09-08 Thread André Orvalho
Hi Emil, I have also found that link and that only shows GET requests. Its a very good example for those. But I need to make a pull request where I need to send data in JSON just like the example you posted here in cucumber, and I dont seem to find the way to do this in Rspec. at least I cant

Re: [Rails] testing a REST API that receives params in json and returns data in json

2013-09-08 Thread André Orvalho
Thanks everyone for your help, I have found the answer here http://stackoverflow.com/questions/18337609/rspec-request-test-merges-hashes-in-array-in-post-json-params It seems that the request parameters I was sending was not the correct ones. this worked it should return an error if there is

Re: [Rails] testing a REST API that receives params in json and returns data in json

2013-09-07 Thread André Orvalho
Hello there, I have found ur post while googlin. Its very useful if you wanna use cucumber. I dont like cucumber for many reasons and would like to use RSPEC to test this. do you know how to do it? If so can you help me? thanks for the help though, all the best, Andre -- You received this

Re: [Rails] Re: Concerns vs libraries

2013-07-27 Thread André Orvalho
I have read the post. actually I have it read it several times to try to see if I could find the particular answer. But I guess I got my question answered. Independent is the key word here and that's what a library should be and the ability of using it anywhere. I think I just saw a lot of bad