Re: [Rails] GET/POST/PUT/DELETE

2014-03-03 Thread Loganathan Sellapa
http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html regards, Loganathan Mob: +91 7760780741 | +91 9944414388 Skype: loganathan.sellappa ViewMe On Tue, Mar 4, 2014 at 12:21 PM, Selvag Ruby wrote: > I trying to understand the purpose of each request of > GET/P

[Rails] What are the best strategies/practices for Rails upgradation from 2.3.11 to 4.0.0?

2014-03-03 Thread Raju Ay
I would like to upgrade one of my application from rails -2.3.11 to 4.0.0. Before going to do anything, I just need plan for it and my application not that much of big size but got some 6/7 plugins and 5/6 gems. Existed: Ruby 1.8.7 + Rails 2.3.11 Expected : Ruby 2.0.0 + Rails 4.0.0 For

Re: [Rails] GET/POST/PUT/DELETE

2014-03-03 Thread KPSN.Leo
http://en.wikipedia.org/wiki/Restful#Concept http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol#Request_methods 2014-03-04 14:51 GMT+08:00 Selvag Ruby : > I trying to understand the purpose of each request of > GET/POST/PUT/DELETE, generally we are using those in routes.rb of our > Rails A

[Rails] GET/POST/PUT/DELETE

2014-03-03 Thread Selvag Ruby
I trying to understand the purpose of each request of GET/POST/PUT/DELETE, generally we are using those in routes.rb of our Rails App. I need exact explainition with example of each one in Rails app. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscrib

[Rails] Calling function from html.erb

2014-03-03 Thread Alfredo Barrero
Good night everyone, My name is Alfredo Barrero and I'm getting started with RoR. I have been learning with "Agile Web Development". Now I'm trying to do my own web application. I have a problem and I don't know what I'm doing wrong, could you please give me a hand?. This is what I'm trying

Re: [Rails] Rails controller problems

2014-03-03 Thread Brandon
This is what my User/Create looks like after rethinking my controller. Does it need more work to make it slimmer? Basically current_order_id and current_follow_id returns Session values from Application Controller. Basically site visitors can click place an order or follow someone and then afte

Re: [Rails] Rails controller problems

2014-03-03 Thread Dave Aronson
On Mon, Mar 3, 2014 at 11:14 AM, Brandon wrote: > So I assumed that getting an Order list from User > should be a method placed inside Order. Not necessarily, though it will have to interact with Order at some point. Getting a User's Orders should be as simple as user.orders, assuming orders be

Re: [Rails] Re: Coffee Script Sucks

2014-03-03 Thread Rodrigo Mendonça
Coffee is good We can do this in cofee boxPerson = ' any thing ' Coffe support breakline.. we can do identation. We can make beautifull views with coffee. In javascript its impossible. Its my point Em 03/03/2014 15:40, escreveu: > I was very resistant to it at first, as well. As i

[Rails] Re: Coffee Script Sucks

2014-03-03 Thread jim
I was very resistant to it at first, as well. As it turns out, it was really for no good reason at all. After diving in and forcing myself to use it on a project, comparing that project's CS to an older project's JS sold me on using it forever. It's simply easier to read, more concise, and t

[Rails] Re: Access Control - Roles

2014-03-03 Thread jim
You can also check out Pundit (https://github.com/elabs/pundit). Jim On Monday, March 3, 2014 10:24:21 AM UTC-5, Rita Ferreira wrote: > > Hi, > I'd like to have your opinion/help in the following situation: > > I want to install a Gem to Access Control according to user roles giving > only some

[Rails] Re: Web App looking for a new business model

2014-03-03 Thread Eric Palumbo
apps for sale great prices will take offers too https://www.apptopia.com/listings/7043-2-photo-editing-apps-with-iap-and-ads-one-free-one-paid-for-a-lot-of-potential https://www.apptopia.com/listings/7032-1000-downloads-unblock-me-game-with-trucks-ads-and-iap https://www.apptopia.com/listings/7014

Re: [Rails] Rails controller problems

2014-03-03 Thread Brandon
Thanks Dave, does that mean I'm no longer a novice since I found God? :) Yes I always though I was doing it correctly by putting everything related to say Order into Order. So I assumed that getting an Order list from User should be a method placed inside Order. Then I noticed it expects to get

Re: [Rails] Rails controller problems

2014-03-03 Thread Dave Aronson
On Mon, Mar 3, 2014 at 5:36 AM, Colin Law wrote: > On 3 March 2014 09:18, Brandon wrote: ... >> But it seems that User controller will be pretty FAT over time. > > Why? Because User has a classic tendency to become a God Object. :-) Brandon, sorry if I'm repeating stuff that came earlier, I di

Re: [Rails] Access Control - Roles

2014-03-03 Thread Colin Law
On 3 March 2014 15:24, Rita Ferreira wrote: > Hi, > I'd like to have your opinion/help in the following situation: > > I want to install a Gem to Access Control according to user roles giving > only some permissions > For instance, after log in, according to the kind of user, it is just shown > so

[Rails] Access Control - Roles

2014-03-03 Thread Rita Ferreira
Hi, I'd like to have your opinion/help in the following situation: I want to install a Gem to Access Control according to user roles giving only some permissions For instance, after log in, according to the kind of user, it is just shown some menus. I don't know which GEM should I choose. Does

[Rails] Re: Is it possible to backup Solr

2014-03-03 Thread Rick
you might look here: http://wiki.apache.org/solr/SolrReplication On Monday, March 3, 2014 12:22:43 AM UTC-5, Ruby-Forum.com User wrote: > > Hello People, > > In one of my rails projects I use solr via sunspot gem. I was wondering > if its possible to back up solr indexing so that when I move fro

Re: [Rails] Override layout or view file through plugin

2014-03-03 Thread Rajesh Mayara
Thanks for your suggestion. But i didn't find anything from that.So how can i override a application view,application controller. Please give some example regarding this using a plugin.Thanks in advance. -- You received this message because you are subscribed to the Google Groups "Ruby on Rai

Re: [Rails] Override layout or view file through plugin

2014-03-03 Thread Colin Law
On 3 March 2014 11:43, Rajesh Mayara wrote: > Hi > > My client has some application which has done on rails 2.3. I need to > implement some features in that application.But i need not to change > anything from original application. I need to add the features through > plugin. Actually i need to ch

[Rails] Override layout or view file through plugin

2014-03-03 Thread Rajesh Mayara
Hi My client has some application which has done on rails 2.3. I need to implement some features in that application.But i need not to change anything from original application. I need to add the features through plugin. Actually i need to change theme and some view page.Theme should be effec

[Rails] Re: A question about Optimistic Locking

2014-03-03 Thread Frederick Cheung
On Monday, March 3, 2014 3:37:06 AM UTC, femto wrote: > > Hello all,for Optimistic Locking, I believe > the implementation is like this: > rails will issue the following statement to database > Update user set name="a",version=2 where id=1 and version=1 > but the problem is, generally database w

Re: [Rails] Charts in Rails 4 application

2014-03-03 Thread James Turley
Also consider D3? http://d3js.org/ It's an open source html5-based javascript visualisation library. There's a gem here: https://github.com/logical42/d3_rails On Mon, Mar 3, 2014 at 6:33 AM, Manoj M. wrote: > Hi, > Somebody advice me to find a better solution to implement charts in my > Rails

Re: [Rails] Rails controller problems

2014-03-03 Thread Colin Law
On 3 March 2014 09:18, Brandon wrote: > Thanks for that Colin, after revisiting a few chapters there I understand it > better now. > > But it seems that User controller will be pretty FAT over time. Why? > > What are the strategies to DRY it up? > > On Sunday, March 2, 2014 5:15:53 AM UTC+8, Col

Re: [Rails] Rails controller problems

2014-03-03 Thread Brandon
Thanks for that Colin, after revisiting a few chapters there I understand it better now. But it seems that User controller will be pretty FAT over time. What are the strategies to DRY it up? On Sunday, March 2, 2014 5:15:53 AM UTC+8, Colin Law wrote: > > On 1 March 2014 19:20, Brandon > wrote: