Questions tagged [respond-to]

112 questions
0
votes
1 answer

Modifying respond_to in Rails 3

Here is the premise: I have a model called Rules, which has a corresponding controller and view. I'd like the user to be able to create a new rule from their Dashboard, which has a separate view and controller. The dashboard has three tabs called…
Ramsay Lanier
  • 426
  • 6
  • 18
0
votes
1 answer

Respond_to many AJAX calls from same controller

I have a page which has 2 or more lists which I want to paginate (with kaminari for instance) @list_a and @list_b these are being created in my pages#home controller I want to have a link for each list (with remote: true) to append new elements via…
Nick Ginanto
  • 31,090
  • 47
  • 134
  • 244
0
votes
2 answers

rails respond_to json format to include two (or more) models and some of their virtual attributes?

in one of my controller actions, I am assigning a project to a user, and I want to respond to json requests to it with some info about the user and some info about the project. I can, at the moment, see all of their database attributes like this: …
Nik So
  • 16,683
  • 21
  • 74
  • 108
-1
votes
1 answer

Can't generate pdf with wicked_pdf in rails ,using search results

Hi everybody I'm trying to use wicked pdf in rails. Get a pdf based on the object generated by the query, @questions When downloading the pdf, the query data is lost. when I visit "/simulators.pdf" it shows me the following error in console Started…
Gerson
  • 3
  • 3
-1
votes
1 answer

Creating php xml listener and listening.Having trouble in responding back an XML

I am using a third party API in the system which post xml data to my URL which I get and process the xml. They are saying server has to reply back as Accepted. I am having trouble in this part. Example: if ( $_SERVER['REQUEST_METHOD'] === 'POST'…
VAD
  • 13
  • 3
-1
votes
1 answer

Rails Render Multiple in controller Using Json API

I would like to be able to render multiple Json renders in my controller. I have a rails Json API using the Model serializers gem. At the moment I can only render one object. What I would like to do is to also render the @news and @users but right…
RailsNewb
  • 3
  • 4
-1
votes
1 answer

Program to respond to Keycodes while minimized

I need a program to respond while not active/not selected by user or minimized to KeyCodes. Anyone got ideas? In VB.NET.
Frosty Tosty
  • 63
  • 1
  • 8
1 2 3 4 5 6 7
8