Search Results

Search found 18244 results on 730 pages for 'controller action'.

Page 46/730 | < Previous Page | 42 43 44 45 46 47 48 49 50 51 52 53  | Next Page >

  • Update array in rails action?

    - by Elliot
    Hey guys, I have the following code in an action: @user = @current_user @user.votes[1430]='up' @user.update_attributes(params[:user]) Votes is a string type, there is no default value - I just want to set it for the first time when this action occurs. Unfortunately I get this error: NoMethodError You have a nil object when you didn't expect it! The error occurred while evaluating nil.votes any ideas what I'm doing wrong?

    Read the article

  • iOS - Open certain view controller with URL scheme

    - by hansenmd
    I'm playing around with URL schemes in my app. I easily made one to open my app, just adding the necessary items to info.plist. This current URL "myappname://" takes the user to the initial view controller, FirstTableViewController, but I was wondering if it would be possible to modify that URL scheme so it I can have one that takes the user to a certain view controller, such as ThirdTableViewController. I would use this as a handy feature in something like Launch Center.

    Read the article

  • ASP.NET MVC: calling a controller method from view

    - by Alice in wonderland
    I'm implementing paging on an ASP.NET MVC view, and I want to call a method in the controller from the view. Code in the view: <a href="<%= Url.Action("Search", new { page = NextPage(Request["exactPage"])).ToString()}) %>"> Controller method: public string NextPage(string currentPage) { return (int.Parse(currentPage) + 1).ToString(); } How can I call the NextPage method from the view? thanks!

    Read the article

  • a Problem to pass a string between 2 view controller (iPhone)

    - by Toma
    my problem is quite simple, but as a beginner, I'm lost :D I have to view controller : view one call view 2 like this : self.FacebookTypeRequest =@"favoris"; FaceBookViewController *viewcontrol = [[FaceBookViewController alloc]initWithNibName:@"FaceBookViewController" bundle:[NSBundle mainBundle]]; viewcontrol.title = @"FaceBook"; [self.navigationController pushViewController:viewcontrol animated:YES]; [viewcontrol release]; How can i send my string facebookTypeRequest to my view controller 2 ? Thanks for your help

    Read the article

  • Jquery - Dynamically build form action on submit?

    - by Probocop
    Hi, I'm trying to have the action of a HTML form built when the user clicks the submit button. So the user fills in a form, clicks submit, then the action gets built then it actually gets submitted. The reason being is because the form has a load of options on it which will be passed to a script. How would I go about doing this with Jquery?

    Read the article

  • zend one controller many views

    - by Sherif
    hi there when i build my web site it was handling only one interface but now i need to handle many interface i can detect which site to communicate and isolate it from other sites but i stuck with this : all the sites have the same views ... is there are a way so i can rander from the same controller different views .. something like application application controller model site_1_view site_2_view is this possible ??!!

    Read the article

  • NSTextField enter to trigger action

    - by Chris
    I've been looking all over for a simple example of how to have an action (or button) be triggered when the enter key is hit in the text field. Should I subclass the text field? Would I need to set a delegate to call the action I need? Is there a way to catch the event in my main window controller class? If you could even just point me to the right direction that would be great. Thanks.

    Read the article

  • Crashing app when i want to go rootview from other view controller

    - by Priyanka
    Hello All, I want to go Root view Controller from another view controller but i got the terminating error. following is the error message in console, Terminating app due to uncaught exception 'NSRangeException', reason: '* -[NSCFArray removeObjectsInRange:]: index (4) beyond bounds (1)' This is my code for that NSArray *arr=self.navigationController.viewControllers; //ListOfInjuriesViewController *list=[[ListOfInjuriesViewController alloc]init]; [self.navigationController popToViewController:[arr objectAtIndex:2] animated:YES]; So any one can give me the suggestion on it so can remove the crash

    Read the article

  • Html.RenderAction - the controller for path '/' was not found

    - by billyonemate
    Using ASP.NET MVC 2 and and Html.RenderAction in my masterpage implemented as below throws an error with "the controller for path '/' was not found": I'm a bit of a newbie, do i have to do something in RegisterRoutes to make this work? <% Html.RenderAction("TeaserList", "SportEventController"); %> public class SportEventController : Controller { public string TeaserList() { return "hi from teaserlist"; } }

    Read the article

  • Java Version of Action Delegate

    - by ikurtz
    the issue i mentioned in this post is actually happening because of cross threading GUI issues (i hope). could you help me with Java version of action delegate please? in C# it is done as this inline: this.Invoke(new Action(delegate() {...})); how is this achived in Java? thank you.

    Read the article

  • Problem with thread after SCREEN_OFF in Android

    - by michael
    I’m doing an application that listens to the android.intent.action.SCREEN_OFF in a Service (if that matter) and then it is supposed to wait a few seconds and launch an action, I’ve tried a timer schedule method, thread and handler postDelay method but all of them seems to fail, they are never executed on a device, it seems like it’s being freezed/killed after phone is locked. It works on emulator and on device attached to USB, but never with device working on battery only, which actually is a main scenario. Do you know any solutions to this?

    Read the article

  • wait t time before launch an action ?

    - by Nanis
    Hi, I actually had a multiautocompletetextview, where i call host after 3 characters to have a dynamic search list. But if the user put others characters, my code call host for each of them. So it must be very long. Could I wait a moment (about 500 ms) before launching the action , in order to look if user do an action or not ? that's possible ?

    Read the article

  • passing id to controller

    - by coure06
    I have 4-5 partial view files (.ascx) like abc.ascx, cde.ascx, fgh.ascx. I want to return different partial views based on the name of the view passed to url parameter like this /someservice/abc will go to action someservice and will return abc.ascx partial view. /someservice/cde will go to action someservice and will return cde.ascx partial view. How can achieve this?

    Read the article

  • Struts2 form to action fields mapping automatically

    - by hkansal
    Hello, I would like to know if it is possible, in Struts2, to map an HTML form's fields to those of an action, automatically, without getters and setters. It is clear that by getters and setters or the ParameterAware interface and the Map, fields can be set in the action, but I just wanted to know if otherwise there was a way.

    Read the article

  • How to edit resharper's action list

    - by Gerard
    In Resharper I edited the inspection severity of the 'use var keyword when possible' to ''do not show'. But when I select a certain word in the code file, Resharper still shows a pencil with an Action list in the left border with the action 'use var'. Where can I edit the actions that should be shown? I cannot find this option.

    Read the article

< Previous Page | 42 43 44 45 46 47 48 49 50 51 52 53  | Next Page >