[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Archived threads in /s4s/ - Sh*t 4chan Says - 2777. page

This is a red board which means that it's strictly for adults (Not Safe For Work content only). If you see any illegal content, please report it.

File: 1481721244860s.jpg (5KB, 250x167px) Image search: [Google]
1481721244860s.jpg
5KB, 250x167px
Hello

I've recently taken up programming more seriously than Hello World in some common languages. I've created a web app in Ruby on Rails for training purposes but now I'd like to do the same thing with a Rails API. However I don't quite understand the concept and I don't know how to word the questions I have.
The web app approach was pretty straight forward. I used MVC pattern where controllers took the biggest hit to manipulate data and feed instance variables to the embedded ruby templates where some kind of front end framework (I used bootstrap) was used to make everything look alright.

Now my understanding is that using an API first approach (or a BaaS approach) means creating a RESTful API that responds to HTTP requests with a JSON message which is useful for portability of the project. What I don't understand is how is this API used by an application. For example when creating another web app but this time wanting to use the API, are the API and the application two different projects? How do I make API calls anyway? I want to create the entire application in rails/coffeescript. What is this pattern/architecture called? I still need to create a rails "backend" (in essence controllers) that makes calls to the API that I've created and maps responses to ruby objects to be show in the front end?

I've used simple external APIs before where I just need a URL and some kind of gem to create the request. I've never used "local" or self-made APIs before. Does the API exist in the same project as the code used to call the API and the rest of the front end etc?

TLDR: How to use a self-made rest api in rails to create a web application?

Any links on this topic very welcome

Thanks
6 posts and 2 images submitted.
>>
File: helpmepls.png (808KB, 1536x1006px) Image search: [Google]
helpmepls.png
808KB, 1536x1006px
>>4975603

did you look up what the return type of the .tostring method?
>>
>>>/g/
fuggin' nerd
>>
>>4976112
/g/entooman here
we dont want him either

File: 50a.jpg (201KB, 470x595px) Image search: [Google]
50a.jpg
201KB, 470x595px
> Open random thread.
> Reply to random post.
> Call the poster reddit.
> Start a fight.

Who /mischief/ here?
7 posts and 3 images submitted.
>>
File: 05_0415.jpg (24KB, 300x244px) Image search: [Google]
05_0415.jpg
24KB, 300x244px
>>
>>4975553
Who are you quoting? Dumb frogposter.
>>
File: 7d9be16bb.jpg (113KB, 539x480px) Image search: [Google]
7d9be16bb.jpg
113KB, 539x480px
>post frog on s4s
>collect (You)s
>actually too intelligent to post on s4s

File: 1481718782472.png (202KB, 640x477px) Image search: [Google]
1481718782472.png
202KB, 640x477px
Bune on the front page.
9 posts and 2 images submitted.
>>
>>4975529
the classic that started it all

Your fortune: Bad Luck
>>
Vintage meme.
Only war veterans remember.
>>
>>4975533 (dubdubs)
bumbig with chekc tbh

Your fortune: Outlook good

File: 1477860511139.jpg (49KB, 686x602px) Image search: [Google]
1477860511139.jpg
49KB, 686x602px
ses
9 posts and 7 images submitted.
>>
File: sess.png (24KB, 604x406px) Image search: [Google]
sess.png
24KB, 604x406px
>>4975445
Who you lookin' at, punk?
>>
File: 1454120576576.png (9KB, 630x420px) Image search: [Google]
1454120576576.png
9KB, 630x420px
>>4975457
aeeuuuhh
>>
File: 2315135135.jpg (8KB, 178x180px) Image search: [Google]
2315135135.jpg
8KB, 178x180px
>>4975445
>>4975457
>>4975459
keep hydraTED ramSES

File: chiyo01.jpg (376KB, 600x850px) Image search: [Google]
chiyo01.jpg
376KB, 600x850px
an irl anime
14 posts and 8 images submitted.
>>
>>4975419
looks even uglier than normal anime
dumb animeposter
>>
File: tumblr_n8roch8wMZ1r66h7yo8_1280.jpg (414KB, 600x800px) Image search: [Google]
tumblr_n8roch8wMZ1r66h7yo8_1280.jpg
414KB, 600x800px
>>4975425
kill le yourself
>>
File: w7Gpcezq.jpg (42KB, 400x400px) Image search: [Google]
w7Gpcezq.jpg
42KB, 400x400px
Would you a irl Karen?

File: way-to-be-nice.png (627KB, 1058x613px) Image search: [Google]
way-to-be-nice.png
627KB, 1058x613px
way to be nice

Your fortune: Godly Luck
11 posts and 8 images submitted.
>>
nice
>>
File: china cinema.webm (597KB, 700x394px) Image search: [Google]
china cinema.webm
597KB, 700x394px
>>4975313
not nice....
>>
chinatsu a shit

File: [villaging intensifies].gif (194KB, 477x456px) Image search: [Google]
[villaging intensifies].gif
194KB, 477x456px
ses

Your fortune: Reply hazy, try again
6 posts and 1 images submitted.
>>
ITT: newfigs can't #shade #fortune

Your fortune: Reply hazy, try again
>>
>>4975287
I am new

Your fortune: Good news will come to you by mail
>>
Newfag inbound

Your fortune: Bad Luck

File: you.png (7KB, 322x324px) Image search: [Google]
you.png
7KB, 322x324px
(you)s make everyone feel good ^_^. Give a (you) to the person above you itt this holiday season :^D
38 posts and 8 images submitted.
>>
>>4975037

(you)
>>
>>4975042
I love (you)
>>
>>4975046 are cute :3

File: S2Ep05_00184.png (403KB, 1024x576px) Image search: [Google]
S2Ep05_00184.png
403KB, 1024x576px
i started watching love live ironically but i think i actually like it now
15 posts and 7 images submitted.
>>
>>4974738
r u srs
>>
>>4974738
it has hot anime girls!!!!!
>>
>>4974738

>dumb animeposter

File: Gotem.jpg (65KB, 691x675px) Image search: [Google]
Gotem.jpg
65KB, 691x675px
>s4s is the worst board
20 posts and 9 images submitted.
>>
File: vabino.jpg (54KB, 368x643px) Image search: [Google]
vabino.jpg
54KB, 368x643px
if we could just get rid of the lewd posters and the traps and the dick posters and taco kid and the gore posters and the puke and shit posters we would be fine.
>>
File: Chaika Rude.jpg (159KB, 408x600px) Image search: [Google]
Chaika Rude.jpg
159KB, 408x600px
>>4974716
>>
>>4974716
le nice b8 :^)

File: 1477552189423.gif (1KB, 112x152px) Image search: [Google]
1477552189423.gif
1KB, 112x152px
ebil foote
15 posts and 7 images submitted.
>>
File: 1481404110070.gif (14KB, 395x542px) Image search: [Google]
1481404110070.gif
14KB, 395x542px
haha
>>
>>4974590
a footfag somewhere is jerking it to this
really makes you think
>>
File: 1481674540752.gif (13KB, 395x542px) Image search: [Google]
1481674540752.gif
13KB, 395x542px
>>4974618
hat is lost ;__;

File: le cartoon magic girl.png (83KB, 631x580px) Image search: [Google]
le cartoon magic girl.png
83KB, 631x580px
le cartoon magic girl
6 posts and 1 images submitted.
>>
>>4974583
le cuckquean phasmatodea
>>
magic ain't real
>>
>>4974583
its gonna get a little voyeuristic
it's gonna get a little cuckoldry
im not from round here
i am from /co/mblr

File: stop taking my ideas pls.png (271KB, 765x321px) Image search: [Google]
stop taking my ideas pls.png
271KB, 765x321px
Dubs decides my runescape name
33 posts and 6 images submitted.
>>
>>4974523
no roll threads on esfores. go back to >>>/b/
>>
>>4974525
You may be right but you didn't get dubs so h*ck off
>>
File: .jpg (11KB, 320x320px) Image search: [Google]
.jpg
11KB, 320x320px
dubs

would swaglord sticky le dab girl?
37 posts and 16 images submitted.
>>
File: The meaning of [s4s].gif (35KB, 750x1250px) Image search: [Google]
The meaning of [s4s].gif
35KB, 750x1250px
Only if I post this informative info-graphic on the nature of meme-love spirituality.

Your fortune: Excellent Luck
>>
File: 1480174285011.png (192KB, 425x480px) Image search: [Google]
1480174285011.png
192KB, 425x480px
>>4974453
oh wow thanks for the informative
>>
File: IMG_1355.jpg (127KB, 768x758px) Image search: [Google]
IMG_1355.jpg
127KB, 768x758px
>>4974453
>GIF
Is this a jumpscare?

File: 1481655522030.jpg (613KB, 2199x1709px) Image search: [Google]
1481655522030.jpg
613KB, 2199x1709px
I'm making the 12th thread about my dumb cat and literally nothing can stop me.
69 posts and 44 images submitted.
>>
swaglord left us bcause all these faggots
>>
File: IMG_5667.png (391KB, 750x568px) Image search: [Google]
IMG_5667.png
391KB, 750x568px
>>4974100
Dubs confirm
Have a Map of the Balkan front
>>
>>4974102
sipley ebin i can see my hous

Pages: [First page] [Previous page] [2767] [2768] [2769] [2770] [2771] [2772] [2773] [2774] [2775] [2776] [2777] [2778] [2779] [2780] [2781] [2782] [2783] [2784] [2785] [2786] [2787] [Next page] [Last page]

[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.