Displaying 20 results from an estimated 10000 matches similar to: "MVC Philosophy"
2006 Apr 24
4
Problem with the image
Hi there,
A little problem has come up in my application.
I want a logo to be displayed right at the top of my main page, and it
is not working.
Instead, it gives me an image thumbnail which shows that the image is at
the right place but not displayed.
If somebody could help.
Thanks.
--
Posted via http://www.ruby-forum.com/.
2009 Feb 02
1
Thumbnailer for Windows apps?
This only just occured to me, but I think it might be a good idea...
There are thumbnailer applications out there for the strangest formats now (like NDS files) next to most file browsers auto-generating thumbnails for images and keeping it in ~/.thumbnails. I was wondering how feasible it is to have Windows app's icons extracted and used as a thumbnail for these apps though. Makes apps easy
2005 Dec 20
12
How to model "Expense Report" in Rails MVC
1st: I am a newbie to Rails & to pure OO.
Q: I want to use rails for creating a "master-detail" form. page layout
will allow users to type in an "expense report header" and as many
"expense report lines" as they need to. I understand how to wrap the
final submit action using "transaction" to ensure the inserts to the
database happen within the same
2008 Jun 30
1
javascript onclick for thumbnails
Hi,
i was struggling for a function where only 1 thumbnail should be active
and others inactive when clicked on the particular thumbnail.
code:
1. view:
2. <script type="javascript">
3. function PlayVideo_options(videoFile, id) {
4. document.getElementById(id).className = ''video_option
active_video'';
5. }
6. </script>
7.
8.
2006 Mar 29
4
Directory Listing outside of app structure
I need to show a directory listing of a folder outside of the Rails app
structure. Moving the folder is not an option. In fact, changing
anything (including modes) is not possible for the folder.
I have working directory listing code in Ruby, but if I call chdir in
Rails to set the working directory to a folder outside the app tree,
nothing is returned to the browser. It''s fine if I
2006 Jun 24
8
How to install programs in wine?
I am a rank newbie to Linux and wine.
I am running Ubuntu Dapper on an AMD 1800 mhz machine, wine 0.9.15
Everything I have read says use the installer to load windows programs.
Where is the installer?
Thanks,
--
Ron Thompson On the Beautiful Florida Space Coast, right beside the Kennedy Space Center, USA
http://www.plansandprojects.com My hobby pages are here:
2006 Apr 17
8
file upload
This is probably me having an issue with the mvc way of living.. .I''m
used to perl/php scripting...
I''ve got a photo blog I''m making... and in past iterations of this
website, I''d just name the photos after the id of the entry. For
instance:
/photos/id.jpg
/photos/id_thumb.jpg
However, I''m having trouble finding an easy way to do this with rails.
2004 Jan 08
3
pictorG
Hi!
Attached is the current version of my image organizing program.
If you dbl-click on a thumbnail, it will show the image (1:1 zoom) in a
dialog, and eat some memory....
Gergo
--
+-[ Kontra, Gergely<kgergely@mcl.hu> PhD student Room IB113 ]---------+
| http://www.mcl.hu/~kgergely "Olyan langesz vagyok, hogy |
| Mobil:(+36 20) 356 9656 ICQ: 175564914 poroltoval
2006 Jun 08
3
MVC and Pagination
Just wondering how to best integrate with pagination and still stick to
MVC...
Say I have a Post model that has a published attribute. I want to show
all the recent published posts on a page.
My first instinct is to create a method in the Post model called recent
that does the find with proper conditions and order, but the problem I
have is how do I use that with pagination (which definitely
2006 Jun 21
0
rails MVC
Bonjour a tous,
voila j''ai quelque soucie a comprendre comment s''enchaine les appels de
la vue/controleur/model dans Rails :(
j''ai une classe qui me permet de faire la liaison entre ruby et c++ (ca
marche parfaitement) que j''ai mis ds le repertoire model (je ne l''ai pas
cree avec generate parce que je ne veux pas de BD! et j''avais
2007 Nov 05
0
Scruffy > MVC architecture?
Hi,
I am a newby in rails...and i have read that scruffy is a great tool to
create/display images.
Now i find the code below for example...
graph = Scruffy::Graph.new
graph.title = "Comparative Agent Performance"
graph.value_formatter = Scruffy::Formatters::Percentage.new(:precision
=> 0)
graph.add :stacked do |stacked|
stacked.add :bar, ''Jack'', [30, 60, 49, 29,
2006 Aug 11
3
General architechture / MVC question
Hi all,
A newbie with Ruby on Rails - and programming in general - I''m working
on a few Flash and PHP projects as well. Partly to make my work more
efficient, partly to gain a better understanding of system architecture
/ design patterns, I''ve been trying to use the MVC pattern in
database-backed Flash / Actionscript development as well.
I think / hope that I''m
2006 Aug 01
5
MVC question
Should I create a separate controller for each model or should I use 1
controller for all models?
Having 1 "admin" controller for all backend stuff seems logic to me, but
when I scaffold it rather makes 1 controller per model.
I''m fairly new to the MVC pattern, so what''s the prefered way of doing
it?
I''m also wondering if the API is up to date? When
2007 Oct 09
0
[Slightly OT] MS MVC taking slight hints from Merb
http://www.hanselman.com/blog/ScottGuMVCPresentationAndScottHaScreencastFromALTNETConference.aspx
In Scott Guthrie''s talk (about 43:30) he mentions requiring the render
call as a convention.
Interesting to see Merb influence Microsoft. :)
--
Cheers,
Kevin Williams
http://kevwil.com/
http://www.almostserio.us/
http://kevwil.jaiku.com/
2006 May 08
3
MVC newbie question
All,
Is it possible for a view to call back to a controller method? If so,
what is the syntax?
=== details
I have a list view that I want to filter out inactive rows based on
several table fields being zero, old, etc.
It would seem I should create a "filtered" method in the controller
(which I have done).
Then invoke if from the view like:
for row in @rows
continue if row.filtered
2006 May 22
1
MVC and cron jobs
I have a cronjob that runs "ruby script/runner ''Channel.preload''".
Channel is a parent model, Item is the child model (i.e., Channel
has_many :items and Item belongs_to :channel). The coupling is
minimized, the coherence looks good, but I''m not sure the model is the
right place to put this code. Is there a better place to put this
code, e.g., a component (I
2003 Nov 18
3
Samba opens many files.
Hi,
I have a dir with more than 16000 files in it.
If I klick with MS-Explorer on this Dir to see which files are in it,
smbd opens every file and so it takes some seconds to show this Dir!
(and CPU usage is at 100%).
the logfile says smbd do this for every file:
[2003/11/18 16:06:58, 2] smbd/open.c:open_file(246)
USERX opened file /path/to/file.txt read=Yes write=No (numopen=1)
Is this
2006 Mar 02
7
The no-framework PHP MVC framework
"The no-framework PHP MVC framework"
http://toys.lerdorf.com/index.php?url=archives/38-The-no-framework-PHP-MVC-framework.html
Yuck! What spaghetti code. I can''t ever imagine preferring that to
Rails.
Joe
--
Posted via http://www.ruby-forum.com/.
2009 Feb 12
4
routes
I''m trying to figure this.
in my schools controller i want to do this....
# implement a create action to create just the review for the
School...
def create_review_for_a_school
@review = Review.new
@school = School.find(params[:school_id])
@review = @school.reviews.build(params[:review])
if @review.save # The creation worked....do this
flash[:notice] =
2008 Feb 09
0
MVC interplay to query multiple models
I''m trying to track down why I''m getting close to desired output, but not
quite. It looks like the webpage sorta-kinda is grabbing the right
data. For instance, there are three Login objects which should be
showing and it looks like the show is grabbing three objects, so that
fits, to a degree. However, it''s just grabbing the hexadecimal object
id, and not