[Rails] Invoking one controller's methods from other controller

2012-04-02 Thread Pallav_bfs
I have a controller (employee) with it's model and view. Now I need to write another controller (emp) which would not have any model or view. This emp controller should be able to invoke all the methods of employee controller.And eventually be able to represent all the relevant information. I have

[Rails] How to use One controller's CRUD methods from another controller?

2012-03-28 Thread Pallav_bfs
In a sample app,we have one controller called employee_controller.This one has its model and view parts. Now can we create another controller(say,emp_controller,which shouldn't have model or view parts) in such a way that one can access all employee's methods through emp_controller. That means,GET

[Rails] how to restrict edit/removing privileges on others' records?

2012-02-07 Thread Pallav_bfs
Hello,I am quite new on rails. Currently making CRUD apps in rails 3.0 in windows. I've used devise [1.1.rc0] for authentication.In those apps, any logged in user can change other user's details. How can I design the app, so that any logged in user can edit/remove his details only if he wishes to

[Rails] how to assign edit/remove privileges for only own details and not on others?

2012-02-07 Thread Pallav_bfs
Hello,I am quite new on rails. Currently making CRUD apps in rails 3.0 in windows. I've used devise [1.1.rc0] for authentication.In those apps any logged in user can change other user's details. How can I design the app, so that any logged in user can edit/remove his details only if he wishes to d

[Rails] Re: How to make my RESTApps work faster

2012-02-02 Thread Pallav_bfs
I didn't assume that you would do the research for me! Thanks for guiding the direction. I only asked for sharing any clue in case you find something ... Thanks again -Pallav On Feb 2, 3:04 pm, Colin Law wrote: > On 2 February 2012 09:55, Pallav_bfs wrote: > > > Thanks Col

[Rails] Re: How to make my RESTApps work faster

2012-02-02 Thread Pallav_bfs
Thanks Neethu,we will surely try that also. On Feb 2, 2:32 pm, Neethu Satheesh wrote: > My team also faced the slowness of app when upgraded to Rails 3.1 from > Rails 2.3.8, using Ruby 1.8.7. > > We upgraded to Ruby version to 1.9 to overcome the slowness. > The app runs better in Ruby 1.9.2 wit

[Rails] Re: How to make my RESTApps work faster

2012-02-02 Thread Pallav_bfs
Thanks Colin,I am trying to resolve this. Please share if you find anything useful there. On Feb 2, 2:24 pm, Colin Law wrote: > On 2 February 2012 09:18, Pallav_bfs wrote: > > > Hello Colin, > > I've tried production mode also..But that doesn't come with a lot of &

[Rails] Re: How to make my RESTApps work faster

2012-02-02 Thread Pallav_bfs
Hello Colin, I've tried production mode also..But that doesn't come with a lot of improvement. And I am using webbrick server. On Feb 2, 2:02 pm, Colin Law wrote: > On 2 February 2012 07:43, Pallav_bfs wrote: > > > > > > > Hello All, > > I am working

[Rails] Re: mySQL: ERROR 1045: Access denied for user 'root'@'localhost' (using password: NO)

2012-02-01 Thread Pallav_bfs
Sorry for delayed response,Colin. Your advice helped and I fixed the error. Thanks ! -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group,

[Rails] Re: mySQL: ERROR 1045: Access denied for user 'root'@'localhost' (using password: NO)

2012-02-01 Thread Pallav_bfs
Thanks Norm! I fixed the error.I used a wrong password in database.yml. And sorry for delayed response. Thanks for your response :) -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@goog

[Rails] How to make my RESTApps work faster

2012-02-01 Thread Pallav_bfs
Hello All, I am working with rails in Windows xp platform since last 2 month or so.I have made some basic and simple rails CRUD app. But whenever I tried to put some authentication on top of the apps,the app went a lot slower.Specially when accessed from remote client machines. - RUBYGEMS VERSION:

[Rails] mySQL: ERROR 1045: Access denied for user 'root'@'localhost' (using password: NO)

2012-01-06 Thread Pallav_bfs
Hello, I am using InstantRails 2.0 on windows. When building an app,I get this error when hit the browser(Action ControllerException caught): Access denied for user 'root'@'localhost' (using password: NO) -