[Rails] Re: Beginner's routing question: Redirecting to a different controller

2014-05-25 Thread Ronald Fischer
Thanks a lot for the detailed explanations. Two remarks for this: As for the naming, my application evolves a dictionary of foreign language idioms, and the main purpose it to train the user in the usage of these idioms. From the perspective of the user, there are 3 types of "screens" (HTML pag

[Rails] Re: How to invoke cache sweeper from background jobs / models?

2014-05-25 Thread mike2r
On Sunday, May 25, 2014 1:26:38 PM UTC-4, mike2r wrote: > > > > On Saturday, May 24, 2014 6:48:50 PM UTC-4, Kai Krakow wrote: >> >> Hello list! >> >> I need to expire fragment caches from a background job. The usual way to >> expire caches is to create a cache sweeper and put the observer hooks

[Rails] Re: How to invoke cache sweeper from background jobs / models?

2014-05-25 Thread mike2r
On Saturday, May 24, 2014 6:48:50 PM UTC-4, Kai Krakow wrote: > > Hello list! > > I need to expire fragment caches from a background job. The usual way to > expire caches is to create a cache sweeper and put the observer hooks into > the controller. That is fine as long as database is only mod

[Rails] Re: Beginner's routing question: Redirecting to a different controller

2014-05-25 Thread mike2r
On Sunday, May 25, 2014 2:31:33 AM UTC-4, Ruby-Forum.com User wrote: > > mike2r wrote in post #1146887: > > I would use resources, as > > Scott > > suggests, but limit the actions that you really need such as: > > > > resources :dicts, only: [:show] > > Now in my case, the action has a "non

[Rails] How to invoke cache sweeper from background jobs / models?

2014-05-25 Thread Josh Jordan
MVC doesn't mean that all your logic has to be in a model, view, or controller. It sounds like you just need a class to do your import work, such can be called from a controller, background job, script, migration, etc. -- You received this message because you are subscribed to the Google Group

[Rails] Re: Re: link_to with array parameter for URL : What does it mean?

2014-05-25 Thread Ronald Fischer
Walter Davis wrote in post #1147032: > Think of the array of elements as the first variable passed to the > method. You can have three or more elements in that array, if that's how > deep the nesting goes. Well, this part I understand; it's just the usual parameter passing, and of course you can

Re: [Rails] Re: link_to with array parameter for URL : What does it mean?

2014-05-25 Thread Walter Lee Davis
On May 25, 2014, at 2:12 AM, Ronald Fischer wrote: > Thanks for the explanation! I noticed your response only now, and it > would have at least partially answered my other question I had posted in > this forum too ;-) > > I think I get the idea with nested routing now. What I still don't > u