User Profile
Collapse
-
I think i should be missing 1 file in the bootable CD when u copy CD from one to other .. find other win or use the original one to install -
music only sync is one way - computer to ipod.
so use your music from your computer to sync..
or if you purchase some musics from itune store u can transfer it ..Leave a comment:
-
Error of "undefined method `each' for #<Pictograph:0x927dea0>"
hi all,
I have an error "undefined method `each' for #<Picture:0x927 dea0>"
what is that mean?
in my view
Code:<% @user.each do |p| %> <%= p.image %> <% end %>
in controller
Code:@user=picture.all( :joins => :culture, :conditions => (Album.joins(:description))).first
-
error of Unknown key(s): #<Picture:0xa4d673c>
i have this error .. when i try to take a value from other table. plus, in the terminal, it shows "select "users".* from users.
picture - album one-to-many relationship
Code:def self.pic Picture.all(joins => :album, :select => "album.image" ) end
Code:Code://controller def show @user= User.all @me
-
taking value from DB in rails
Hi, I am new in Rails, and now i have a problem to take data from one of tables in DB
This is my code:
Code://user model belongs_to season belongs_to album has_many albums #### -----> def get_pic @pic = Picture.where(:album_id => 'Album.album_id' , user.where(:culture_id => 'Culture.culture_id')).first end ### ----->
-
you have to check your spelling and desc table again .. make sure everything is correct spelling in table's structureLeave a comment:
-
Hi Frinavale,
when i print. i cannot print the div and plus.. i cannot make 2 options of printing (print whole page - print div)
please give me some advicesLeave a comment:
-
This is a css that i just update
Code:@media screen { div#print { display:block; height: 100%; width: 100%; font-family:verdana,sans-serif;font-size:14px; } h2,h1, h3,a {display: none} } @media print { div#print { display:block; height: 100%; width: 100%; div#print {font-family:times,serif;font-size:10px;} }
Leave a comment:
-
Ya, I am trying your idea as well. beside that,, i have a print function that can print whole page.. then i dont know how to add the print that can only print div..
Please help
This my css file
Code:/**print.css **/ @media screen { div.print { display:block; height: 100%; width: 100%; font-family:verdana,sans-serif;font-size:14px; } @media print
Leave a comment:
-
Print a whole page and print div content
Hi, all
I am new, I am using rails to write the application... and now I want to make a function for print the specific div in the page.
What can I do with this?
Please give me some advice.
I did try to use
Code:<a href="#" onclick="window.print();return false;"><img src ="http://png.findicons.com/files/icons/61/dragon_soft/512/printer.png" width="20"
Last edited by Frinavale; Jun 7 '11, 05:07 PM. Reason: Fixed code tags. Corrected grammar and formatted the question to use proper English. -
Error of uninitialized constant LanguageController::Languages
Hi,
I am a new comer on Ruby on Rails
I have no idea what i have made with this error
Code:def new @language = Language.new end
Code:rails generate model title:string body:string
can anyone help me
thanks -
what is the error of "uninitialized constant Object::Person (NameError)"?
Hi all,
I am new bird using Ruby, I just occur the problem "uninitiali zed constant Object::Person (NameError)"
can any experts help me?
my code is
Code:class Person def initialize(fname, lname) @fname = fname @lname = lname end def to_s "Person: #@fname #@lname" end end person = Person.new("Yen",
-
Error of DBD::SQLite::db do failed: near ",": syntax error at C:\
Hi,
I have this error when i try to insert some values into the database via perl script.
there is my code
Code:sub addWords { my $self = shift; my $wordsRef = shift; my @words = \$wordsRef; my $language = Language->new(); my $classId = undef; my $wordId = undef; if (!@words || !$language){ die "addWords invalid arguments."; }
-
Error Can't use string ("Test") as an ARRAY ref while "strict refs" in use
Hi guys,
I have an error "Can't use string ("Test") as an ARRAY ref while "strict refs" in use ~~~"
I am trying to add word into the database, and then it gives me this error. please help ,,
Code:sub addWords { my $self = shift; my $wordsRef = shift; my @words = @$wordsRef; my $language = shift; my $wordId; if (!@words ||
-
but i have to disconnect the db. so how can i do if i want to do it
because my db locate outside of the sub..Leave a comment:
-
how to fix error attempt to prepare on inactive database handle in SQLite
Code:sub languages{ my $self = shift; if (!$self->{LANGUAGE}) { my @language = (); my $statement = $db1->prepare("select Id, Name, syllableData from language"); $statement->execute(); while(my @array = $statement->fetchrow_array()){ my ($id , $name, $syllableData) = @array; push (@language, $object); } $statement->finish();
-
yes. I did not c before i asked u again .. anyway .. thank you a lot about your help //
Cheer .. Master of Perl/~~~
ThanksLeave a comment:
-
thank you very much my master of Perl scriot
Can I have anther question for u?
do you know how can i count the matching word in the string
such as I have dic~tum~st
how can i count how much time that i match it..Leave a comment:
-
can you give me an example please..
I am a new in Perl so there are something that I may not understand all..
ThanksLeave a comment:
-
How to count matching sign in string in Perl?
Do you know there is any ways to count the matching time
Dic~tum~st
I want to count the time that "~" sign appear..
thank so very much
No activity results to display
Show More
Leave a comment: