Sql :: Learning Ruby To Use Serverside To Manage An Existing Database?

Mar 28, 2012

I am very much a beginner to rails and I have a specific need for it. I wish to connect it to a flex app, and also use it to call a database.

For example when the following web page is visited: ?User=bob&id=4&lic=234 Take 'bob' and 4 and add them to an existing database table if the license number is valid and not already used. I don't want to use the standard database stuff, I will need to write my own SQL queries as well as have logic for checking other stuff to do with registering users etc. It is already done with Coldfusion but I am having issues with it, and would like to have it work with Ruby instead.

But to start with, I just want the ability to call a web page (on localhost:3000) get the string after the URL "?User=bob&id=4&lic=234" in this case and output "User:bob id:4" to the screen. I want to learn what the code is doing rather than have the least lines of code solution. I would rather use as little of the rails framework to do this as this will help me learn the language. I won't be making the standard website so learning the rails framework won't be so useful to me.

looking for, however I am having problems connecting with databases, mysql in this case:

[Code]...

View 1 Replies


Similar Posts:


Database :: Generate SWX Data Files Serverside?

May 12, 2009

By storing data in SWX files on the server, it can be interpreted automatically like loading one SWF into another.

Now I'd like this data to be modified by server side code, how can I do this? Are there any SWX libraries for PHP that I can use?

View 1 Replies

Actionscript 3 :: Manage Complex Models - Cache Data From Database?

Oct 24, 2010

My app has windows that are components. In my case, now I have 2 components that have a drop down list that show the current logged user lists. So when I use one component for the first time it make a request to database, save data in model, and load data from model, but when the second component opens, it will just load data from model. Easy for now: ListModel: this contains the current user lists.

Now I have another component but this needs the lists of another user. Where do I save these lists? I can't put in the ListModel as then will mix up with current user. Just a remind: there is not just 2 users. It might have more users, so it should be scalable.

View 1 Replies

Ruby On Rails :: Flex - Ruby On Rails Routing Error

Feb 11, 2010

I was developing the Application in Flex and ruby on rails.

It is working fine some times. but some times i am getting routing error.

Error: "No route matches "/index.html" with {:method=>:get}"

Here index.html is my login page

View 1 Replies

Convert SWF To PDF Or Image Serverside?

Mar 10, 2010

we use Flex Charts to generate reports and want to be able to have these reports emailed out on a scheduled basis. To do that, we need the SWF to run (as if in the browser) to fetch the report data and then have its contents converted to PDF or a static image. This needs to happen server side with no interaction from a user. Currently we solve this via an AIR app that can read the report file, but a static image or PDF would be much more desirable.

View 2 Replies

Media Server :: Get Some Xml On The Serverside To Parse?

Jan 25, 2010

I'm trying to get some xml on the serverside to parse. I can load the xml just fine so there is no problem there but i can't get the streamArray to populate  nor can i get any of the if statments after loaded to execute. Here is the code feel free to use the xml document on my server.

var StreamArray = new Array();var location_xml = new XML();
location_xml.onLoad = function( success ) {
if(location_xml.loaded == true) {trace(location_xml); if (location_xml.firstChild.hasChildNodes()) { for (var aNode = location_xml.firstChild.firstChild; aNode != null; aNode=aNode.nextSibling) {

[Code]...

View 5 Replies

Media Server :: Get NetStream.time On The Serverside?

Jan 26, 2010

I'm using the following code to attempt to get netStream.time on the serverside.....i've tried various ways googled it but have come up short...what code do i need to use so i can track a streams progress from the server side?
 
myStream = Stream.get("home1");
setInterval(time,5000,myStream.time); function time(myStream){  trace(myStream); }

View 2 Replies

ActionScript 3.0 :: Serverside Script Upload Big Files To A Ftp?

Mar 20, 2009

I've been struggling with this a while now and I'm wondering if there's a way to through flash and perhaps some serverside script upload big files to a ftp. My webhost has a php upload limit at 20MB, so I need to find a solution so that I can upload files up to 1 gig to my ftp. Is it a dead end situation or can I solve it in any way?

View 2 Replies

ActionScript 3.0 :: Screen/Stage Capture Without Serverside Scripting?

Jun 2, 2010

I have a game that allows people to arrange images however they like, but I need a way for users to take a screenshot/image of their design (stage) so it can be emailed. I've found loads of examples that use server side scripts such as php (JPEGEncoder) but this particular program I�m creating is for internal office use only and don�t have access to a server to upload it.

View 3 Replies

Media Server :: Serverside Recording Suddenly Stops?

Jun 3, 2009

I've implemented a serverside script that records the current stream to disk. This record method is called from another clientside flash application. On some occasions the recording suddenly stops after a few hours without giving any errors, and without there being any network dropouts (Flash Media Encoder doesn't report any dropouts). What can be the cause of this, and what can I do to make the recording more stable?

View 7 Replies

ActionScript 3.0 :: Convert A Drawing From SWF To Image/PDF Without Any Serverside Program

Jan 29, 2009

I need a help in AS 3.0. The requirement is, user needs to draw something and take a screenshot or in the PDF format from flash swf by clicking a Save button[Save button will be in the same flash file]. Is it possible in AS 3.0 without any other server-side program?

This is very urgent. Please let me know whether this is possible or not.

View 9 Replies

Convert The Uploaded Video File To FLV (serverside Not Client)?

Aug 26, 2010

I have a project that will have a video upload capability. The thing with this is when the user uploads it has to of course play in the custom Flash player - the only way for that to happen, to my knowledge, is if that video is in FLV format. how to convert the uploaded video file to FLV (serverside not client).

View 1 Replies

Flash :: IDE - Cs3 Independently Upload Photos To Server Without Serverside Script?

Aug 12, 2009

I need to develop small flash aplication which will upload photos, videos and other files to server. But is it possible to upload these assets without serverside scripting like php or coldfusion? I mean that flash should independently upload images to server. Is it possible?

View 2 Replies

Actionscript 3 :: Developing Chatroom In Flex / Red5 / Remote Shared Object Based UserList / Serverside?

Mar 29, 2010

We are going to develop a simple chatroom in flex using Red5.Should we store UserList in a Remote Shared Object or Server Side List?Are there any example exit on Red5 or FMS , which uses Server Side programming and Remote Shared Objects? Red5 examples are not documented at all.

View 2 Replies

IDE :: Make A Flash Movie Display Text That Is In The Sql Database And A Php Script To Change The Database?

Jul 15, 2009

i want to intertwine php, MySql and flash. so i can make a flash movie display text that is in the sql database and a php script to change the database, php > sql = i can do but sql > flash = i can't do..i want it so the sql data show's in a text box in the flash movie...

View 1 Replies

Flex :: Get Local SQLite Database In Sync With Live Server Database?

Dec 17, 2009

I want to create a Flex 3 application running in Adobe Air that accesses an SQLite database and I need to keep this database in sync with an SQL server 2005 database running a website.Is this something that Flex supports or is it going to be a custom script? Also, has anybody done anything like this?

Edit: The synchronisation can be done on a daily basis rather than real time. The data will be read only from a front end perspective with a CMS to do updates on the website.

View 2 Replies

Php :: FLEX Database Will Not Refresh After Updating Database Unless Browser Is Restarted?

Jun 7, 2010

I have researched this issue all over and most people say use the .refresh() method to update a datagrid after updating or adding a new record. This does not do anything. So, my issue is this. I have a mySQL database hosted I am connecting via PHP, I have 1 mxml file and 2 php files (I know I can use just 1 but I am learning and this was easier for me to use for troubleshooting). The issue is no matter what I change on the datagrid the update does not show on the datagrid unless I close out of IE and reopen it. I can refresh or open the page in another window and the update does not show. I have to exit entirely and restart in order for any updates or additions to show.Here is my licenseTracker.mxml

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"

[code]....

View 9 Replies

Database :: Save A Form To The Database Without Knowing The Field Type?

Jun 17, 2010

I am working on a function to generate a form at runtime in Flex based on a call to the DB. The call to the DB returns the field types, id, tooltips etc as an arraycollection, the arraycollection is then parsed in order to ascertain what control to display based on the type field in the array - this bit works fine.However, i am stuck on trying to save the form fields back to the database using a CFC.my form rendering code is as follows but how do i save values entered back to the database? rendering code..

[Bindable]
public var getglobalprofileb:ArrayCollection;
public function init(event:ResultEvent):void {[code].......

View 1 Replies

Php :: FLEX Database Will Not Refresh After Updating Database Unless Browser Is Restarted

Aug 31, 2011

I have updated the mxml code to only show the needed code for the program to run the update.

I am new to Flex and have an issue I hope you all can help me out with.

I have researched this issue all over and most people say use the .refresh() method to update a datagrid after updating or adding a new record. This does not do anything.

So, my issue is this. I have a mySQL database hosted on 000webhost.com, I am connecting via PHP, I have 1 mxml file and 2 php files (I know I can use just 1 but I am learning and this was easier for me to use for troubleshooting). The issue is no matter what I change on the datagrid the update does not show on the datagrid unless I close out of IE and reopen it. I can refresh or open the page in another window and the update does not show. I have to exit entirely and restart in order for any updates or additions to show.

Here is my licenseTracker.mxml

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"

[Code].....

View 1 Replies

Database :: Approach Local Database Management Via Flex/Air App?

Jan 17, 2011

I am planning on using Flash Builder 4/Flex to write an AIR application which is primarily based around recording, storing and analyzing data.I'll be creating charts etc that need to update in almost real time.It's essential to me that the application be able to function without an internet connection so I need a local database of some variety,but I would also eventually like to build in online synchronization of the data where either database can be update each other based on newer information. Moreover, some type of encryption would definitely be welcome, and speed is a large concern

Synchronization: Primarily updates/additions/deletions will be done on the offline database, but ideally I want to have a web interface that will allow the same updates/additions/deletions and will be synced (beyond that I'm not sure exactly how to do it as I can model that based on what is most achievable).I'm wondering if there's any prebuilt engine that could handle the synchronization of 2 databases. I may end up having the web interface only be for additions, which would be significantly easier to sync.. and I may start that way, but i want to build with technologies that will best allow me to implement full online crud at some point.

View 1 Replies

Database :: Connect Adobe Flash CS To Database Of Any Kind?

Jul 17, 2011

Can I build flash application that connects to database? (MySQL) For example: Photo Gallery that brings me the photos from database...

View 3 Replies

Database :: Adobe Flex With Accessing Database For Mobile Web?

Sep 26, 2011

Here is the issue: a client wants his entire equipment inventory accessible by persons navigating to his jquery mobile site. The inventory that exists on the desktop site was, as I understood, built with Flex. Is it possible to access this database for the jquery mobile site? I believe it is. I was then given this information from someone in the know:

Database:
mlxx.db.xxxxxxx.hostedresource.com
login: mxxx

[code]...

View 1 Replies

Database :: Is It Possible To Create A Database Driven Website With Flash?

Oct 26, 2006

Is it possible to create a database driven website using these alone? Or do i need to learn any other technology? If i do then what should i learn? I know j2se for the desktop and oracle SQL/MySQL i finally got the feeling that i need to learn PHP anyway along with css and javascript. So it is fine. Also another query. Which CMS should i consider? Wordpress or Joomla?

View 1 Replies

.net :: Use IDE Or Not While Learning A New Language And Framework

Dec 2, 2010

Sorry if this has been discussed somewhere else on stackoverflow (I could not find it), or if it is not a "programming" question (more like a discussion). Is it good to avoid using an IDE (Flash Builder, Visual Studio...) while first learning a new framework or language?

[Code]...

View 5 Replies

ActionScript 2.0 :: Start Learning To Use XML?

Jul 26, 2006

I've been Actionscripting for quite a while now, and a lot of the sources I see and books I read talk about something called XML. I understand that its a formatting language used to communicated with servers, and the syntax looks like html.

I have a few books on AS, but I don't really get the XML stuff. Is the idea that I use an XML segment of code in my Flash to import in a document to flash at runtime? Or is it that I can load variables from an external document? I don't have my own server but I do have the ability to upload files to servers, so I could probably make a file that can communicate with an SWF, and I'm told XML is the way...

So does anyone know a good way to learn about XML, and what is actually is and can do?

View 4 Replies

ActionScript 3.0 :: Learning About Scope And Packages

Jul 15, 2009

I have made a script, and now has come the point when I need to use removechild. Whenever I try this I get an error. After looking at the problem, I think I need to learn more about scope and packages. I think if I put everything in the correct scope, I will be able to use the removechild command. I tried to make all my vars public, so that removechild would work, however I got an error that anything public needs to be in a package. I tried to add the package part to my script, but got the error that packages cant be nested. I tried some other things and still no luck, just more errors.

So, if anyone could point me to a tutorial, or recommend a book or something, that will help teach me about scope and packages, Or if you are feeling patient and generous, and you think you could explain this problem to a 5 year old, please explain it to me the way you would to said 5 year old. If you maybe think you can help me out on the script, it can be found here: [URL]

View 14 Replies

Flash :: Good Books For Learning It?

Jul 26, 2009

I'm trying to learn how to use flash, and there's only so much I can learn on my own. I looked up some books on various websites, but I don't know which would be the "best" to use for someone completely new to the program.

View 2 Replies

Best Book For Web Developer Learning Flash

Sep 2, 2009

I've gotten far on my own just using online tutorials and dinking around in Flash on my own but my boss(es) are starting to ask for more complex stuff that I simply can't learn by just piecing together my Flash education.I know there's many, many books out there that will teach you Flash but can anyone recommend any particular one(s) that are more concentrated in creating Web elements as opposed to game or animation development?

View 2 Replies

Professional :: Button In Learning Interaction

Apr 13, 2011

I have created a Flash file with 4 "Fill in the Blank" questions (from the Learning Interactions continued within Flash CS3) at the end. I'm then using the swf file in two different ways. One way simply loads the swf file onto a 'stand-alone' page on my website and it works perfectly.The other way I want to use it is integrated into a more complicated website where I have a Flash File into which various swf files are loaded when needed. In this version the "Control Button" doesn't change to "Check Answer" and "Reset" as it should and the whole question doesn't work. The working version is at url..Select "4 For You to Try" to go directly to Quiz Questions.The non-working version is at url...Go to "Extras" in Menu and select Naming Alkane Isomers, then "4 For You to Try" again.

View 7 Replies

Flash :: Learning Programming For PHP Websites?

Oct 25, 2009

Any pointers where i could start learning flash programming. Also i would be really grateful if you could point me to place where i could get free templates for the programming

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved