Questions tagged [controllers]

Controller provides a centralized entry point for handling requests. Usually is referred as a part of Model-View-Controller design pattern.

903 questions
0
votes
1 answer

How to organize paths to view templates with Controllers using inheritance in JavaScriptMVC?

I'm struggling almost the whole day now with the following: I have two controllers, where controller A extends $.Controller and B extends controller A. Controller A provides event handlers for some common events on it's element and Controller B…
Thorsten Schöning
  • 3,501
  • 2
  • 25
  • 46
0
votes
2 answers

Change parameters in controller

I create an form and i want my description for exemple has a text add by me , not by the user who send the form. But i dont know how i can pass my parameters in the controller . My form view <%= form_for @issue, :url => contact_path do |form| %> …
0
votes
1 answer

Create item in Ruby DB through form submission

I'm new to Ruby and back-end programming, and am trying to build my first app. What I'm trying to do is create an HTML form that stores the submitted data into a database. I have everything finished, and when I click the submit button on my form it…
Jake Stevens
  • 157
  • 4
  • 13
0
votes
2 answers

Date And Time Needed

Well, I want to display departure and arrival times(with dates) for my flights application. I had created two fields 'departure' and 'arrival' with data-type datetime. What methods can be used for these in the controller aand how can i show them in…
Pavan
  • 33,316
  • 7
  • 50
  • 76
0
votes
2 answers

Can rails controllers be inherited to a third level deep?

Can I have controllers in Rails that are 3 levels deep inheritance? One would think such a trivial thing is possible, but the concrete controller at the "third" level gives the generic/useless error of "uninitialized constant…
0
votes
1 answer

spring 2.5 Controllers depreciation?

By using Spring 2.5,i have done a leave management project and it was adoptable.But in the reality,many of the controllers and other have been deprecated like "SimpleFormController", "MultiController" ...so on in the other verion i.e 3.0.Iam little…
0
votes
1 answer

Ember.js - Communicating between controllers and their views

I'm just in the early stages of learning Ember, and have run into something puzzling. I'm trying to communicate between two controllers and have their corresponding views update as well. In a simplified version, I'd like to click a button to fire an…
rainbowFish
  • 265
  • 3
  • 13
0
votes
1 answer

restful controller inside controller with laravel

I'm having a designcontest website where my contests controller to show a single contest is as follows: Route::get('contests/(:any)', array('as' => 'contest', 'uses' => 'contests@show')); This will create a url like…
Stephan-v
  • 19,255
  • 31
  • 115
  • 201
0
votes
2 answers

Rails: Special classes based on params in views

What is the best way to add classes to table cells in rails based on differing criteria for each cell? For example...I have a date cell: If the date is coming up on 10 days from that date, need to add a "upcoming-due" class. Or if the date is past…
Kevin Brown
  • 12,602
  • 34
  • 95
  • 155
0
votes
1 answer

How to share an array between two classes that inherit from different classes

I've got a Rails application with a PubSub Server (Faye) as middleware.. I've got the usual Rails-structure for Models, Views and Controllers, and I've got some controllers for my Socket-channels.. (Provided by FayeRails) The problem: I need to…
Tim Baas
  • 6,035
  • 5
  • 45
  • 72
0
votes
2 answers

Zend Framework: Multiple Modules in layout

How can I have multiple actions in my layout from different controllers/modules? I tried this:
LoginAction() ?>
ShowAction() ?>
Jeremy
  • 57
  • 1
  • 8
0
votes
1 answer

beginning with winAVR

I have 20 odd years in programming starting from pascal 7 to delphi. I want to start programming micro controllers using C and the tool most electronics kit recommend is winAVR with programmers notebook. I have installed the software and would like…
Clinton
  • 347
  • 1
  • 2
  • 14
0
votes
3 answers

Codeigniter subfolder named like controller

I'm trying to make folder in controller folder with exact name like controller in Codeigniter. Is it possible by some trick or something? Screenshot here: https://i.stack.imgur.com/sJnbe.png
Arm Peev
  • 128
  • 4
0
votes
1 answer

How do I establish associations between multiple ember views and their associated objects?

I'm confused about the relationship between templates, views and models. I understand that one of the primary roles of a view is to translate primitive events into semantic events, but I'm unclear how I should provide the necessary data to a…
doublea
  • 2,546
  • 1
  • 23
  • 35
0
votes
2 answers

Devise user paths

I am using devise for my auth and it works great. I need a profile page and I created a controller for Users and have a show method in there which links to show.html.erb and that works once the id is passed. I want to add a link in the profile to…
DMH
  • 2,529
  • 3
  • 24
  • 35