action

Controller action is called twice

I've noticed, that "index" action of my controller is called twice. The action has following structure: def index if params[:tags].nil? # [fork #1] just return the whole collection of model @items = Item.all else # [fork #2] filter items by tags @items = Item.select_by_tags params[:tags] end # Another oper...

Intent_Filter Action won't work in AndroidManifest

Hi, I have an Activity which also has t olisten to a specific broadcast from a self-made service. I have noticed though that when I add that as an action to my Androidmanifest file the app won't actually start whilst debugging. The Activity is also my MAIN activity : <intent-filter> <action android:name="android.intent.action.MAIN" ...

Silverlight, Caliburn, Actions and DataGrids

Anyone know of good code examples of the Caliburn or Caliburn Micro framework example that illustrate routing Actions with DataGrid items? ...

Understand when user is speaking at the phone

(Android) Some days ago I saw a way to register a broadcast receiver to understand when the screen goes black or the inverse. Now i'd like to find a way to understand when the users is speaking at the phone but i don't find a broadcast for this case, so how can i understand if the user is at the phone? (Possibly without always running a...

What are typical ASP.NET MVC - Controller Action Name conventions ?

I'm struggling to choose appropriate names for my actions. I want to distinguish between actions that return a view to: Create Edit Edit-Create Here is what I have so far: Create --> Show the Empty Form for Create Add --> Receives data from Create and Save New Entity Edit --> Shows Existing Entity in a form for editi...

Can you add onto an Action dynamically?

I want to be able to add to my Mappings Action dynamically, so that when I run a particular integration test I can export the mappings to an xml file. So I have the following setup for my Mappings: private static Action<MappingConfiguration> _mappings; public static Action<MappingConfiguration> Mappings { get { return _mappings ...

iPhone SDK : Add UISlider and UISwitch in a table view only crash when touch slider ???

OK,here is my question foe example,I create a UISwitch in the first 3 cell's accessoryView theSwitch = [[[UISwitch alloc] initWithFrame:CGRectZero] autorelease]; [cell addSubview:theSwitch]; cell.accessoryView = theSwitch; and add 2 slider in next 3 cells theSlider = [[[UISlider alloc] initWithFrame:CGRectMake(174,12...

How can I assign different actions to same html form ?

I am trying to assign different actions to same html form according to different submit buttons. Can I do something like this ? <FORM> ------ <INPUT type="submit" value="DoSomething" action="DoSomething.pl" method="POST"> <INPUT type="submit" value="DoSomethingElse" action="DoSomethingElse.pl" method="PO...

html input file action after file selected

I am in a predicament with input files. The project I am working on has added a jQuery extension that masks all input types and makes them more 'vibrant'. However it has also caused a lot of trouble in the updating of what is listed in these inputs. One such problem is the input with type file. It currently will not change what is being ...

Action with a string array as parameter

I want to call an action with something similar to this uri: http://server/controller/action/?columns=firstname&amp;columns=lastname&amp;columns=age and use it like this: public ActionResult Action(string[] columns) { } how do I do it? ...

Adding a button index to this

I have multiple action sheets in a view. I use the following code to get them to do an action but it seems to only work for the 1st button, not any of the other buttons. How can I get it to work with the 2nd and 3rd button, etc.? Here's the code: - (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIn...

Addressing from the root directory of website in action script

Hello you all , I have a flash banner in my website and it has some navigation links on it . Because I have several different folders in my website I need address them from the root . At the moment i use getUrl like this : getURL("ArticleList/Default.aspx"); But it doesn't work . Thanks in advance ...

Can I use params in Action or Func delegates?

When I'm trying to use params in an Action delegate... private Action<string, params object[]> WriteToLogCallBack; I received this design time error: Invalid token 'params' in class, struct, or interface member declaration Any help! ...