Displaying 2 results from an estimated 2 matches for "assign_nam".
Did you mean:
assign_name
2009 Jun 06
2
How does controller call render when there's no render in action
Hello,
I was studying Rails source and at this point:
def process(request, response, method = :perform_action, *arguments)
#:nodoc:
response.request = request
initialize_template_class(response)
assign_shortcuts(request, response)
initialize_current_url
assign_names
log_processing
send(method, *arguments)
send_response
I have a question.
"send(method, *arguments)" this calls action of a controller, right?
But if there''s no ''render'' in action - how does it automatically call
render and renders t...
2008 Jan 21
0
70 commits - configure.ac libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_loader.c libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_socket.c libswfdec-gtk/swfdec_gtk_socket.h libswfdec-gtk/swfdec_playback_alsa.c
...;
- g_print ("%s ", (char *) g_object_get_data (G_OBJECT (sock), "name"));
+ g_print ("%p ", sock);
va_start (varargs, format);
g_vprintf (format, varargs);
va_end (varargs);
@@ -66,17 +66,9 @@ do_read (SoupSocket *conn, gpointer unused)
}
static void
-assign_name (SoupSocket *sock)
-{
- static guint count = 0;
- g_object_set_data_full (G_OBJECT (sock), "name", g_strdup_printf ("%u", ++count), g_free);
-}
-
-static void
new_connection (SoupSocket *server, SoupSocket *conn, gpointer unused)
{
- assign_name (conn);
- g_object_set (co...