Thanks for the replies guys I understand what you are both saying about the relationships but I'm just trying to learn ruby and it was a quick mock up to try and learn about how ROR handles foreign keys etc.
Thanks.
Graham
Hi stevexff
I've actually sorted thee issue, the first parameter for the select statement should have been "movie" not "Movies".
In relation to the design the table is for a mock up of an entertainment site such as what movies are on at your local cinema.
The durations table will also be used...
Hi all,
First I'm new to ROR (stated today ) and I've googled abit to see if I could sort this out but I'm drawing a blank.
I'm using bitnami rubystack and netbeans 6.8, I have two tables movies and durations which I used netbeans to create the scaffolds for. I then edited the movies table to...
Hi Jebenson,
The code did not work as I'm sure I did not provide you with enough information sorry my fault.
The application is just one class apart from a PDU class imported as a module.
I've set the following code already within the public class declaration and I think that is where I'm...
Hi All,
I'm trying to design a sms application, I've done most of the work in that it can send sms both in plain and pdu mode but I'm stuck on one thing, getting the AT command responses once the send message button is clicked to show on a label on the application form itself.
I've written a...
Hi all,
Firstly I'm just looking for a bit of clairification regarding using MS Loopback adapter to print from a DOS based program written in Pascal on MS XP. I've read up on how to install the loopback adapter and using the net use command my questions are as follows;
1. Can use lpt2+...
Hi Hondy,
I'll have a look at the webasite thanks for the link.
I've tried using mmc but could not see anything regarding Microsoft Strong Cryptographic Provider being used for the certificate.
Thanks again,
Graham.
Hi all,
I've been asked by work to determine if the CSP of a certificate is Microsoft Strong Cryptographic Provider or not for client computers that are on workgroups not domains in order for part of our application to run.
Could any one please tell me if this can be done and how.
Many...
Hi All,
Ok I've got the results to print as I want them to using the following code
{
Scanner input = new Scanner (System.in);
int year = 0;
int indexyear = 0;
System.out.print("Enter a year: ");
year = input.nextInt();
if (year <=0)
{System.out.println("The year must be greater than...
Ok close to what I need but what I actually need is that is the user enter a year such as 1975 I need the system to print out all values that match the year and are less than the year
e.g. year entered = 1975
results
Pete[name] was born in 1974[birthyear]
Kate was born in 1960...
Yeh tom thats what I mean, but I need to use a while loop according to the course guidelines.
I'll try and use your suggestion and see what I can come up with.
Bong, Kodr thanks for the suggestions but thats way above my knowledge at the moment, but thanks for them.
Thanks again guys will get...
Hi all just started studying Java and need a little help on arrays.
I'm trying design a program that will allow a user to enter a year (an int variable) and return <=values from two external arrays based on the year.
my arrays are as follows
public static final String[] names = {...
Hmm, good ideas but its a work one so won't be opening it up as will get a slap on the wrist lol
I'll pass it onto services after the bank holiday weekend unless anyone has any other ideas??
Thanks
Graham
Hi all,
I've got a Toshiba Tecra laptop that is aboput 3 yrs old. Today its built in keyboard has started acting funny.
When I tried to logon to windows it just stayed on the login screen, nothing was working. I've noticed that when I press the Alt key the light on the Caps button comes on...
Hi thanks for the reply,
I think the problem is sorted out as she had a visus in the AVG vault and when she deleted it problem has resolved it self.
I'm visiting her next week so will check out your list and run them on her pc for her.
Thanks again for the reply
Graham
Hi all,
A friend has phoned me saying when she starts her p.c. she is getting a message saying that the Shell.exe is missing, also she is getting messages saying she is not the admin for the pc and can't perform certain actions (she is) and when she goes to start > settings Control panel is...
Hi jpadie,
I was thinking of using just one query but I've got to emulate an excel workbook that displays the data in the following way
|Trainer|Trainer|
| Date | Date |
|comment|comment|
Hence why I was using one query to select the trainer id to build one row of the table and then...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.