Ah right I see. Not sure would be good to see, think you're almost there!
On Mon, Dec 7, 2009 at 10:49 AM, doug livesey <[email protected]> wrote: > Cheers -- the issue is not that I think the outputting of models as JSON is > complex, though, it's that I haven't created the models & the controllers to > create & administrate them, yet! :) > > 2009/12/7 Rob Hayward <[email protected]> > > I used this at the weekend: >> >> Quick and dirty >> def get_some_tweets >> @tweets = @tweets.from('someone') >> render :json => @tweets >> end >> >> On Mon, Dec 7, 2009 at 10:43 AM, doug livesey <[email protected]> wrote: >> >>> I have some static JSON files that I want to get served up in a hurry. >>> Eventually, I'll have them be generated & cache them once a day, but I >>> need to get the service up there in a hurry, so am going to just create the >>> files & have them served up. >>> Should I call something like: >>> render( :file => "/path/to/file.json", :layout => false, :status => :ok >>> ) >>> >>> Or is there a better way? >>> Can't believe I've never had to do this before! >>> Cheers, >>> Doug. >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "NWRUG" group. >>> To post to this group, send email to [email protected]. >>> To unsubscribe from this group, send email to >>> [email protected]<nwrug-members%[email protected]> >>> . >>> For more options, visit this group at >>> http://groups.google.com/group/nwrug-members?hl=en. >>> >> >> >> >> -- >> Rob Hayward >> Freelance Front End Web Developer >> http://www.robhayward.co.uk >> 07595 453 949 >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "NWRUG" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]<nwrug-members%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/nwrug-members?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "NWRUG" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<nwrug-members%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/nwrug-members?hl=en. > -- Rob Hayward Freelance Front End Web Developer http://www.robhayward.co.uk 07595 453 949 -- You received this message because you are subscribed to the Google Groups "NWRUG" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nwrug-members?hl=en.
