Skip to content

Commit a10859d

Browse files
committed
Update docs
1 parent 5419f97 commit a10859d

File tree

2 files changed

+2
-17
lines changed

2 files changed

+2
-17
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ flowchart TD
4646
linkStyle 0 stroke:#757575
4747
```
4848

49-
49+
.
5050

5151

5252

fullstack/lib/fullstack_web/live/chat/chat_live.ex

+1-16
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ defmodule FullstackWeb.ChatLive do
6666
value={@text_value}
6767
phx-mounted={JS.focus()}
6868
placeholder="Say something!"
69+
autocomplete="off"
6970
/>
7071
</.simple_form>
7172
</section>
@@ -209,22 +210,6 @@ defmodule FullstackWeb.ChatLive do
209210
|> Enum.count()
210211
end
211212

212-
defp get_form(params, action \\ :subimt) do
213-
params
214-
|> get_changeset()
215-
|> Map.put(:action, action)
216-
|> to_form(as: :form)
217-
end
218-
219-
defp get_changeset(params) do
220-
data = %{}
221-
types = %{question: :string}
222-
223-
{data, types}
224-
|> Ecto.Changeset.cast(params, Map.keys(types))
225-
|> Ecto.Changeset.validate_required([:question])
226-
end
227-
228213
defp save_message(message) do
229214
Cachex.transaction!(@cache, ["chat"], fn cache ->
230215
messages =

0 commit comments

Comments
 (0)